Bug #2111827 “Deployment fails due to trailing comma in kolla-to…” : Bugs : kolla-ansible
Description:
**Bug Report**
What happened:
Deployment fails with a JSON parsing error due to an unguarded trailing comma in the config_files list in kolla-toolbox.
enable_rabbitmq is set to false
kolla_
Current Impact:
Cannot use an external rabbitmq cluster when tls is enabled
cat kolla-ansible/
{
“command”: “kolla_toolbox”,
“config_files”: [
{% if enable_rabbitmq | bool %}{
“dest”: “/var/lib/
“perm”: “0600”
},
{
“dest”: “/etc/rabbitmq/
“perm”: “0600”
},
{
“dest”: “/etc/rabbitmq/
“perm”: “0600”
}{% endif %}{% if kolla_copy_
{
“dest”: “/var/lib/
“perm”: “0600”
}{% endif %}
],
“permissions”: [
{
“path”: “/var/log/
“perm”: “0664”,
}
]
}
Steps to Reproduce:
Set enable_rabbitmq: false.
Set kolla_copy_
Run kolla-ansible deploy.
Observe the deployment failure and check the rendered kolla-toolbox.json.
**Environment**
kolla-ansible version: stable/2025.1
Read more here: Source link
