bugfix: delete extra firewalls in virtual deployment 81/35481/1
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Mon, 29 May 2017 11:11:42 +0000 (19:11 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Mon, 29 May 2017 11:11:42 +0000 (19:11 +0800)
Change-Id: I179b5aab51958c0cd4653e65bbd74df5cfd7c53e
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
ci/deploy/deploy.sh
deploy/post.sh
deploy/tempest.py

index 3118d08..050219b 100755 (executable)
@@ -369,6 +369,12 @@ fi
 echo "====== post deploy ======"
 ssh $SSH_PARAS $DAISY_IP "bash $REMOTE_SPACE/deploy/post.sh -n $NETWORK"
 
+echo "====== disable iptable rules ======"
+sudo iptables -D FORWARD -o daisy1 -j REJECT --reject-with icmp-port-unreachable
+sudo iptables -D FORWARD -i daisy1 -j REJECT --reject-with icmp-port-unreachable
+sudo iptables -D FORWARD -o daisy2 -j REJECT --reject-with icmp-port-unreachable
+sudo iptables -D FORWARD -i daisy2 -j REJECT --reject-with icmp-port-unreachable
+
 echo "====== deploy successfully ======"
 
 exit 0
index df3c280..3fae69b 100755 (executable)
@@ -46,3 +46,5 @@ do
 done
 
 python $PYTHONPATH/deploy/post/execute.py -nw $NETWORK
+openstack security group rule create --proto icmp default
+openstack security group rule create --proto tcp --dst-port 22 default
index 3510528..148e8ba 100644 (file)
@@ -217,7 +217,7 @@ def add_host_role(cluster_id, host_id, host_exp_name, host_real_name, vip):
         role_lb_update_meta = {'nodes': [host_id],
                                'cluster_id': cluster_id, 'vip': vip}
         client.roles.update(lb_role_id, **role_lb_update_meta)
-    if host_exp_name in ['computer01', 'computer02']:
+    if host_exp_name in ['computer01', 'computer02', 'computer03', 'computer04']:
         role_computer_update_meta = {'nodes': [host_id],
                                      'cluster_id': cluster_id}
         client.roles.update(computer_role_id, **role_computer_update_meta)