aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/reclass/scripts/dpdk.sh
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2017-06-02 16:39:58 +0400
committerMichael Polenchuk <mpolenchuk@mirantis.com>2017-06-06 14:17:11 +0400
commitd433573b98d288feaff518dd3ac9a5b19e35f1e6 (patch)
tree0587efc8933affb7f7765dd1be5d6937c798420c /mcp/reclass/scripts/dpdk.sh
parentf19e006f84e98bdee061d79e68c316364251dcbc (diff)
[mcp] Mend dpdk scenario
Make a reboot of the compute nodes to activate hugepages support and re-apply required states then. Also align ovs lcore & pmd masks with two cpu nodes. Change-Id: I4a5defe6f08e912aba2d939ba5ba057af768a40c Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'mcp/reclass/scripts/dpdk.sh')
-rwxr-xr-xmcp/reclass/scripts/dpdk.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcp/reclass/scripts/dpdk.sh b/mcp/reclass/scripts/dpdk.sh
new file mode 100755
index 000000000..4e4cd0b2a
--- /dev/null
+++ b/mcp/reclass/scripts/dpdk.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# Enable DPDK on compute nodes
+#
+
+ssh $SSH_OPTS ubuntu@$SALT_MASTER bash -s << DPDK_INSTALL_END
+ sudo -i
+
+ salt -C 'I@nova:compute' system.reboot
+ salt -C 'I@nova:compute' test.ping
+
+ salt -C 'I@nova:compute' state.sls linux
+ salt -C 'I@nova:compute' state.sls nova,neutron
+
+ salt -C 'I@keystone:server and *01*' cmd.run ". /root/keystonercv3; nova service-list; openstack network agent list"
+DPDK_INSTALL_END