Apply neutron database migration
Apply neutron database migration procedure: http://docs.openstack.org/developer/neutron/devref/upgrade.html#server-upgrade Change-Id: Id03e6cdd822bb8bd3d70ae1a1f70ccd9aba830ff Implements: blueprint apply-service-upgrade-procedure
This commit is contained in:
parent
a29a5ad919
commit
da209cc181
@ -6,3 +6,17 @@ if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||
neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Migrate database and exit if KOLLA_UPGRADE variable is set. This catches all cases
|
||||
# of the KOLLA_UPGRADE variable being set, including empty.
|
||||
if [[ "${!KOLLA_UPGRADE[@]}" ]]; then
|
||||
if [[ "${!NEUTRON_DB_EXPAND[@]}" ]]; then
|
||||
echo "Expanding database"
|
||||
neutron-db-manage upgrade --expand
|
||||
fi
|
||||
if [[ "${!NEUTRON_DB_CONTRACT[@]}" ]]; then
|
||||
echo "Contracting database"
|
||||
neutron-db-manage upgrade --contract
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user