diff options
author | Feng Pan <fpan@redhat.com> | 2016-09-09 14:32:43 -0400 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2016-09-10 02:57:22 +0000 |
commit | 7d53e2e0960d7c0f06f9e1f03f7baa261f2b1c15 (patch) | |
tree | e983393dd02300ddf6d106f81a82f6aebe0ec26e /lib | |
parent | c77e001c8334e48520fca2cf17c72b4aa044f84c (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>
(cherry picked from commit a715ec7cd3677b22c6961342491d61637a487586)
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/post-install-functions.sh | 7 |
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 |