summaryrefslogtreecommitdiffstats
path: root/tools/cloudify
diff options
context:
space:
mode:
authorBryan Sullivan <bryan.sullivan@att.com>2018-01-24 11:44:55 -0800
committerBryan Sullivan <bryan.sullivan@att.com>2018-01-24 11:44:55 -0800
commit05bc6725c5d09adc25495c56e54af7a7ee155e49 (patch)
tree9a37005dd8567fdcce2ef33a885e9128b8a46ac2 /tools/cloudify
parent5257b8a6f861ebd7ef08d49bb0002883e6539a29 (diff)
Update for refactored VES scripts
JIRA: MODELS-2 Change-Id: I729fb1026bf9230ee14134d4d40dfebc2488107c Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
Diffstat (limited to 'tools/cloudify')
-rw-r--r--tools/cloudify/k8s-cloudify.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/cloudify/k8s-cloudify.sh b/tools/cloudify/k8s-cloudify.sh
index d7f18ba..5b1a0f5 100644
--- a/tools/cloudify/k8s-cloudify.sh
+++ b/tools/cloudify/k8s-cloudify.sh
@@ -87,6 +87,13 @@ function prereqs() {
if [[ "$USER" == "ubuntu" ]]; then
sudo apt-get install -y virtinst qemu-kvm libguestfs-tools virtualenv git \
python-pip
+ # workaround for virsh default network inactive
+ status=$(sudo virsh net-list --all | awk '/default/ {print $2}')
+ if [[ "$status" == "inactive" ]]; then
+ sudo ifconfig virbr0 down
+ sudo brctl delbr virbr0
+ sudo virsh net-start default
+ fi
else
# installing libvirt is needed to ensure default network is pre-created
sudo yum install -y libvirt