summaryrefslogtreecommitdiffstats
path: root/juju/juju_setup.sh
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-03-02 10:51:10 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2017-03-02 11:25:51 +0800
commitdf06f21dc792b1c17219d9d9d59e29184e1868bb (patch)
tree44782ee7f40d72e5a89dfd69e827fdcc723557e7 /juju/juju_setup.sh
parentcce77461244bce9cd3f58c480ff895a4a9fb3837 (diff)
fix no precise image bug
1. add precise image name 2. release caches before install open-o and before install juju 3. remove known_hosts on jump host Change-Id: I7d1957c53c1b957718622d3f90c2a86966f1ec23 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'juju/juju_setup.sh')
-rwxr-xr-xjuju/juju_setup.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/juju/juju_setup.sh b/juju/juju_setup.sh
index d52b47f..e37eb1f 100755
--- a/juju/juju_setup.sh
+++ b/juju/juju_setup.sh
@@ -65,6 +65,11 @@ function juju_prepare()
--remote-ip-prefix 0.0.0.0/0 $default_secgroup_id
fi
+ if [[ ! $(neutron security-group-rule-list | grep default | grep "icmp") ]]; then
+ neutron security-group-rule-create --direction egress --protocol icmp \
+ --remote-ip-prefix 0.0.0.0/0 $default_secgroup_id
+ fi
+
if [[ ! $(neutron security-group-rule-list | grep default | grep "tcp") ]]; then
neutron security-group-rule-create --direction ingress --protocol tcp \
--remote-ip-prefix 0.0.0.0/0 $default_secgroup_id