neutron-server rolling upgrade fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Fix Released
|
High
|
Mark Goddard | ||
Stein |
Fix Released
|
High
|
Mark Goddard |
Bug Description
Please note that this bug spans kolla and kolla-ansible projects, atleast as far as we've been able to investigate.
When upgrading neutron-server from 7.0.0 to 8.0.0.0b1 with kolla-ansible the task "Running Neutron database contract container" in kolla-ansible/
argument --subproject: Invalid String(
The above task uses the bundled kolla_docker module which sends an NEUTRON_
The neutron_
neutron_
In the neutron-server container there's an extend_start.sh script that will be executed when starting the container, that script have the following logic to loop through that list above:
if [[ "${!KOLLA_
if [[ "${!NEUTRON_
echo "Expanding database"
fi
if [[ "${!NEUTRON_
echo "Contracting database"
fi
if [[ "${!NEUTRON_
for service in ${NEUTRON_
done
fi
exit 0
fi
That for-loop runs neutron-db-manage upgrade on each service using the provided env variable which contains extra square brackets that originates from the neutron_
neutron-db-manage --subproject ['neutron', upgrade --contract
neutron-db-manage --subproject 'neutron-fwaas', upgrade --contract
neutron-db-manage --subproject 'neutron-vpnaas'] upgrade --contract
Another important note here is that the bug does not propagate any errors and crashes the Docker container, which would have notified Ansible when executing the role. Basically it silently fails within the container and exits with an exit code of 0.
Running the commands manually within the neutron_server container with the correctly formatted subproject names obviously worked.
Related commits that added the changes that causes this bug (from Github):
https:/
https:/
description: | updated |
tags: | added: neutron-server |
tags: | added: neutron |
description: | updated |
description: | updated |
description: | updated |
no longer affects: | kolla |
Changed in kolla-ansible: | |
status: | Fix Committed → Fix Released |
Hi, what distro you running. Might be a difference between ubuntu and centos bash? Havent seen those errors with centos.
Regards