diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2017-01-11 10:15:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-01-11 10:15:48 +0000 |
commit | 7c33180c2d5c1bc87c3efd80bc63b918fc546baf (patch) | |
tree | 7353fd71aff03b800b0275b23ac920485e33ad3a | |
parent | b58dd104d03db315df1d8c6607e6e8a2cf19aef5 (diff) | |
parent | d2453e6e78a3e99a9e3749b5ee94e339beee8304 (diff) |
Merge "Set flavor's page size to support dpdk enabled vms"
-rwxr-xr-x | functest/opnfv_tests/openstack/healthcheck/healthcheck.sh | 5 |
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." |