devstack: do not run update-db on a compute node

When the devstack plugin is run, but q-scv is not
enabled (like on a compute node), we should not
run bgpvpn-db-manage.
Change-Id: I92893b7848cf92d1ab9a476469efdc30928e6bb1
This commit is contained in:
Thomas Morin
2015年06月15日 18:09:01 +02:00
parent 07ddf66b2f
commit 63cd3d5ee6

View File

@@ -10,7 +10,9 @@ if [[ "1ドル" == "source" ]]; then
elif [[ "1ドル" == "stack" && "2ドル" == "install" ]]; then
setup_develop $NETWORKING_BGPVPN_DIR
elif [[ "1ドル" == "stack" && "2ドル" == "post-config" ]]; then
bgpvpn-db-manage --config-file $NEUTRON_CONF --config-file /$Q_PLUGIN_CONF_FILE upgrade head
if is_service_enabled q-svc; then
bgpvpn-db-manage --config-file $NEUTRON_CONF --config-file /$Q_PLUGIN_CONF_FILE upgrade head
fi
fi
if [[ "1ドル" == "unstack" ]]; then
#no-op
Reference in New Issue
openstack/networking-bgpvpn
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.