Finishes dpdk post install 99/16299/2
authorTim Rozet <trozet@redhat.com>
Sat, 2 Jul 2016 03:25:26 +0000 (23:25 -0400)
committerDan Radez <dradez@redhat.com>
Tue, 5 Jul 2016 17:26:23 +0000 (17:26 +0000)
After dpdk finishes install, br-phy needs to be brought up and ovs-agent
needs to be restarted.  This cannot happen in tripleO because
os-collect-config will try to ping from dpdk interfaces to the
controller to validate network connectivity.  This doesn't work with
dpdk, so we leave br-phy down until end of deployment.

JIRA: APEX-119

Change-Id: I3d36d02b773fcbb3c5527b85fd00a2fa1b3cc25d
Signed-off-by: Tim Rozet <trozet@redhat.com>
ci/deploy.sh

index bcd8a6b..d904a6c 100755 (executable)
@@ -1096,6 +1096,16 @@ cat ~/jumphost_id_rsa.pub | ssh -T ${SSH_OPTIONS[@]} "heat-admin@\$node" 'cat >>
 done
 EOI
 
+  if [ "${deploy_options_array['dataplane']}" == 'ovs_dpdk' ]; then
+    echo -e "${blue}INFO: Bringing up br-phy and ovs-agent for dpdk compute nodes...${reset}"
+    compute_nodes=$(undercloud_connect stack "source stackrc; nova list | grep compute | wc -l")
+    i=0
+    while [ "$i" -lt "$compute_nodes" ]; do
+      overcloud_connect compute${i} "sudo ifup br-phy; sudo systemctl restart neutron-openvswitch-agent"
+      i=$((i + 1))
+    done
+  fi
+
   ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
 source overcloudrc
 set -o errexit