summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-06-13 10:46:25 -0400
committerFeng Pan <fpan@redhat.com>2016-06-13 13:42:53 -0400
commit3627f2a758d409785404a5f2dffd284cda9896d6 (patch)
tree8c90c0c8f479e8484964131cc1083d853f0c52bf
parent960b0a8325ecee465df3382c46b9997ad57d8800 (diff)
Add DPDK test app for ovs_dpdk deployment
JIRA: APEX-119 Change-Id: I5d677a0480b63a286a3aa0f70b99dced7e06b909 Signed-off-by: Feng Pan <fpan@redhat.com>
-rwxr-xr-xci/deploy.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh
index 50a11fb7..48e15e6b 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -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