Browse code

Initialize neutron service db with neutron

Partially-Implements: blueprint services-split
Change-Id: I407a4bb3c60ab6a491669b4ddd16aee1239808f1

Doug Wiegley authored on 2014/12/16 03:23:20
Showing 1 changed files
... ...
@@ -595,6 +595,16 @@ function init_neutron {
595 595
     recreate_database $Q_DB_NAME utf8
596 596
     # Run Neutron db migrations
597 597
     $NEUTRON_BIN_DIR/neutron-db-manage --config-file $NEUTRON_CONF --config-file /$Q_PLUGIN_CONF_FILE upgrade head
598
+    for svc in fwaas lbaas vpnaas; do
599
+        if [ "$svc" = "vpnaas" ]; then
600
+            q_svc="q-vpn"
601
+        else
602
+            q_svc="q-$svc"
603
+        fi
604
+        if is_service_enabled $q_svc; then
605
+            $NEUTRON_BIN_DIR/neutron-db-manage --service $svc --config-file $NEUTRON_CONF --config-file /$Q_PLUGIN_CONF_FILE upgrade head
606
+        fi
607
+    done
598 608
 }
599 609
 
600 610
 # install_neutron() - Collect source and prepare