bugfix: make sure ovs started 99/9099/1
authorcarey.xu <carey.xuhan@huawei.com>
Wed, 3 Feb 2016 03:17:53 +0000 (11:17 +0800)
committercarey.xu <carey.xuhan@huawei.com>
Wed, 3 Feb 2016 03:17:53 +0000 (11:17 +0800)
JIRA: COMPASS-302

Change-Id: I4df1a1fb2879aa512f4e1e2fc3517b0a273bfda8
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
deploy/prepare.sh

index 89be0e9..60657a0 100755 (executable)
@@ -42,6 +42,9 @@ function prepare_env() {
     sudo apt-get install -y --force-yes git python-dev
     sudo apt-get install -y --force-yes libxslt-dev libxml2-dev libvirt-dev build-essential qemu-utils qemu-kvm libvirt-bin virtinst libmysqld-dev
     sudo service libvirt-bin restart
+    if sudo service openvswitch-switch status|grep stop; then
+        sudo service openvswitch-switch start
+    fi
 
     # prepare work dir
     rm -rf $WORK_DIR/{installer,vm,network,iso}