dragonflow/devstack/df-ext-services.sh
Yuli dfe0ee6495 Start etcd and ovs services when doing stack rejoin
Closes-Bug: #1510812
Change-Id: Ic76a70776fcb65db265a2b005ef0faa95d56e8ed
2015-11-24 11:44:34 +02:00

22 lines
443 B
Bash
Executable File

#!/usr/bin/env bash
# Detect path for this script file
DF_DIR=$(cd $(dirname "$0") && pwd)
# Main include for all openstack functions
source openrc
# Include other dragonflow scripts
source $DF_DIR/settings
source $DF_DIR/plugin.sh
if ! nb_db_driver_status_server; then
# make sure the db is stopped
nb_db_driver_stop_server
echo "Going to start db"
nb_db_driver_start_server
fi
# Start ovs db and etcd/ramcloud
start_ovs