From 7d53e2e0960d7c0f06f9e1f03f7baa261f2b1c15 Mon Sep 17 00:00:00 2001 From: Feng Pan Date: Fri, 9 Sep 2016 14:32:43 -0400 Subject: [PATCH] Update flavors to use hugepage for fdio/ovs-dpdk scenarios JIRA: APEX-258 Change-Id: Ia055f317147cc63b479cf1dbc1a85f05acc0726a Signed-off-by: Feng Pan (cherry picked from commit a715ec7cd3677b22c6961342491d61637a487586) --- lib/post-install-functions.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.16.6