diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2017-03-02 10:51:10 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2017-03-02 11:25:51 +0800 |
commit | df06f21dc792b1c17219d9d9d59e29184e1868bb (patch) | |
tree | 44782ee7f40d72e5a89dfd69e827fdcc723557e7 /juju | |
parent | cce77461244bce9cd3f58c480ff895a4a9fb3837 (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')
-rwxr-xr-x | juju/juju_setup.sh | 5 |
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 |