Fix the communication issue between control and compute nodes 92/38392/1
authorgvrangan <venkatrangang@hcl.com>
Thu, 5 May 2016 00:38:11 +0000 (00:38 +0000)
committergvrangan <venkatrangang@hcl.com>
Thu, 5 May 2016 00:40:45 +0000 (00:40 +0000)
* The compute and control nodes are stacked in parallel resulting in the
compute nodes stacking before the control node itself, so the hypervisor-list does
not feature the compute nodes.

* This Patch disabled the firewall in control node after stacking top enable the compute nodes
  reach the required ports and the control node to recognize the other hypervisors available.

Change-Id: Ibc6736a858fcafb13fe4e6f30c076176e470614d
Signed-off-by: gvrangan <venkatrangang@hcl.com>
jjb/integration/include-raw-integration-deploy-openstack-run-test.sh

index 885936a7d657b5f43237715559a6969da61bd9a4..f573be65f395756beb5b9f6eefdb4078bb01461d 100644 (file)
@@ -377,6 +377,13 @@ done
  fi
 done
 
+#Need to disable firewalld and iptables in control node
+echo "Stop Firewall in Control Node for compute nodes to be able to reach the ports and add to hypervisor-list"
+ssh ${OPENSTACK_CONTROL_NODE_IP} "sudo systemctl stop firewalld; sudo systemctl stop iptables"
+echo "sleep for a minute and print hypervisor-list"
+sleep 60
+ssh ${OPENSTACK_CONTROL_NODE_IP} "cd /opt/stack/devstack; source openrc admin admin; nova hypervisor-list"
+
 echo "Locating test plan to use..."
 testplan_filepath="${WORKSPACE}/test/csit/testplans/${STREAMTESTPLAN}"
 if [ ! -f "${testplan_filepath}" ]; then