aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2016-12-27 20:51:04 +0400
committerMichael Polenchuk <mpolenchuk@mirantis.com>2016-12-27 21:10:28 +0400
commitd2453e6e78a3e99a9e3749b5ee94e339beee8304 (patch)
tree789f6c9d4d11866fd5e0a13a711002dd29db223a
parent4d8ea4bd3209398189f6e44366867c7f3362d4d5 (diff)
Set flavor's page size to support dpdk enabled vms
Set flavor's page size to ANY so libvirt driver might try to find large pages for guest RAM (either 2Mb or 1Gb), otherwise fallback to small pages. JIRA: FUNCTEST-684 Change-Id: I40f415ca9487c4f20416d45462eddc769df0cb9c Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
-rwxr-xr-xfunctest/opnfv_tests/openstack/healthcheck/healthcheck.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/functest/opnfv_tests/openstack/healthcheck/healthcheck.sh b/functest/opnfv_tests/openstack/healthcheck/healthcheck.sh
index e27cf4b4b..57aa0c707 100755
--- a/functest/opnfv_tests/openstack/healthcheck/healthcheck.sh
+++ b/functest/opnfv_tests/openstack/healthcheck/healthcheck.sh
@@ -228,10 +228,11 @@ sleep ${wait_time}
# Check if flavor exists
-if [[ -z $(nova flavor-list|grep $flavor) ]]; then
+if [[ -z $(openstack flavor list -f value -c Name | fgrep -x $flavor) ]]; then
# if given flavor doesn't exist, we create one
debug "Flavor $flavor doesn't exist. Creating a new flavor."
- nova flavor-create --is-public false ${flavor} auto 512 1 1 --is-public True
+ openstack flavor create ${flavor} --id auto --ram 512 --disk 1 --vcpus 1
+ openstack flavor set ${flavor} --property hw:mem_page_size=any
fi
debug "Using flavor $flavor to boot the instances."