Upgrade neutron-fwaas db during bootstrap

Closes-Bug: #1719775
Change-Id: I76803f0f81260129a242e31e81f4f956c5a44ef9
This commit is contained in:
Jeffrey Zhang
2017-09-27 12:12:40 +08:00
parent beebbda9b5
commit e945011ce8
2 changed files with 5 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'keepalived',
'net-tools',
'openstack-neutron',
'openstack-neutron-fwaas',
'openstack-neutron-lbaas',
'openstack-neutron-ml2',
'openvswitch',
@@ -53,6 +54,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'neutron-server',
'openvswitch-switch',
'python-networking-sfc',
'python-neutron-fwaas',
'python-openvswitch',
'python-oslo.vmware'
] %}

View File

@@ -3,7 +3,9 @@
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head
OTPS="--config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini"
neutron-db-manage ${OPTS} upgrade head
neutron-db-manage ${OPTS} --subproject neutron-fwaas upgrade head
exit 0
fi