From a31b2d15e554deaa9ce22bc501531e5f48812bd9 Mon Sep 17 00:00:00 2001 From: "carey.xu" Date: Wed, 3 Feb 2016 11:17:53 +0800 Subject: bugfix: make sure ovs started JIRA: COMPASS-302 Change-Id: I4df1a1fb2879aa512f4e1e2fc3517b0a273bfda8 Signed-off-by: carey.xu --- deploy/prepare.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'deploy') diff --git a/deploy/prepare.sh b/deploy/prepare.sh index 89be0e98..60657a0c 100755 --- a/deploy/prepare.sh +++ b/deploy/prepare.sh @@ -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} -- cgit 1.2.3-korg