aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/healthcheck/healthcheck.sh
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-01-11 10:15:48 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-11 10:15:48 +0000
commit7c33180c2d5c1bc87c3efd80bc63b918fc546baf (patch)
tree7353fd71aff03b800b0275b23ac920485e33ad3a /functest/opnfv_tests/openstack/healthcheck/healthcheck.sh
parentb58dd104d03db315df1d8c6607e6e8a2cf19aef5 (diff)
parentd2453e6e78a3e99a9e3749b5ee94e339beee8304 (diff)
Merge "Set flavor's page size to support dpdk enabled vms"
Diffstat (limited to 'functest/opnfv_tests/openstack/healthcheck/healthcheck.sh')
-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 e27cf4b4..57aa0c70 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."