Add DPDK test app for ovs_dpdk deployment 65/15465/3
authorFeng Pan <fpan@redhat.com>
Mon, 13 Jun 2016 14:46:25 +0000 (10:46 -0400)
committerFeng Pan <fpan@redhat.com>
Mon, 13 Jun 2016 17:42:53 +0000 (13:42 -0400)
JIRA: APEX-119

Change-Id: I5d677a0480b63a286a3aa0f70b99dced7e06b909
Signed-off-by: Feng Pan <fpan@redhat.com>
ci/deploy.sh

index 50a11fb..48e15e6 100755 (executable)
@@ -1001,6 +1001,22 @@ if ! heat stack-list | grep CREATE_COMPLETE 1>/dev/null; then
 fi
 EOI
 
+  # Configure DPDK
+  if [ "${deploy_options_array['dataplane']}" == 'ovs_dpdk' ]; then
+    ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI || (echo "DPDK config failed, exiting..."; exit 1)
+source stackrc
+set -o errexit
+for node in \$(nova list | grep novacompute | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+"); do
+echo "Running DPDK test app on \$node"
+ssh -T ${SSH_OPTIONS[@]} "heat-admin@\$node" <<EOF
+set -o errexit
+sudo dpdk_helloworld --no-pci
+sudo dpdk_nic_bind -s
+EOF
+done
+EOI
+  fi
+
   if [ "$debug" == 'TRUE' ]; then
       ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
 source overcloudrc