summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-09-09 14:32:43 -0400
committerFeng Pan <fpan@redhat.com>2016-09-09 14:32:43 -0400
commita715ec7cd3677b22c6961342491d61637a487586 (patch)
treee55c5bb825e8fa2bbe26e7b89a44d3435d1eb868
parent5ac7ef296a6967f67e5d6a4a29117092c2f5dff4 (diff)
Update flavors to use hugepage for fdio/ovs-dpdk scenarios
JIRA: APEX-258 Change-Id: Ia055f317147cc63b479cf1dbc1a85f05acc0726a Signed-off-by: Feng Pan <fpan@redhat.com>
-rwxr-xr-xlib/post-install-functions.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/post-install-functions.sh b/lib/post-install-functions.sh
index a23e0877..7e7db5ca 100755
--- a/lib/post-install-functions.sh
+++ b/lib/post-install-functions.sh
@@ -110,6 +110,13 @@ swift_endpoint_id=\$(openstack endpoint list | grep swift | cut -d ' ' -f 2)
openstack endpoint delete \$swift_endpoint_id
openstack service delete \$swift_service_id
+if [ "${deploy_options_array['dataplane']}" == 'fdio' ] || [ "${deploy_options_array['dataplane']}" == 'ovs_dpdk' ]; then
+ for flavor in \$(openstack flavor list -c Name -f value); do
+ echo "INFO: Configuring \$flavor to use hugepage"
+ nova flavor-key \$flavor set hw:mem_page_size=large
+ done
+fi
+
if [ "${deploy_options_array['congress']}" == 'True' ]; then
ds_configs="--config username=\$OS_USERNAME
--config tenant_name=\$OS_TENANT_NAME