Merge "Only run rolling upgrade for neutron, vpnaas, fwaas"

This commit is contained in:
Zuul 2018-07-19 19:59:11 +00:00 committed by Gerrit Code Review
commit 4628a42fde
1 changed files with 8 additions and 2 deletions

View File

@ -22,12 +22,18 @@ fi
# of the KOLLA_UPGRADE variable being set, including empty.
if [[ "${!KOLLA_UPGRADE[@]}" ]]; then
if [[ "${!NEUTRON_DB_EXPAND[@]}" ]]; then
DB_ACTION="--expand"
echo "Expanding database"
neutron-db-manage upgrade --expand
fi
if [[ "${!NEUTRON_DB_CONTRACT[@]}" ]]; then
DB_ACTION="--contract"
echo "Contracting database"
neutron-db-manage upgrade --contract
fi
if [[ "${!NEUTRON_ROLLING_UPGRADE_SERVICES[@]}" ]]; then
for service in ${NEUTRON_ROLLING_UPGRADE_SERVICES}; do
neutron-db-manage --subproject $service upgrade $DB_ACTION
done
fi
exit 0
fi