Use api version 1 to set image property

It looks api version 2 removed the option --property, which breaks
the functional gate. In addition, os-distro is not the right property
name. It should be os_distro instead.

Change-Id: I1607a330006ed59222a0086ccda87208360e7e60
Closes-Bug: #1470934
Closes-Bug: #1498797
This commit is contained in:
Hongbin Lu 2015-09-23 13:39:21 -04:00
parent 07ec627ca0
commit 45a7152775
1 changed files with 3 additions and 3 deletions

View File

@ -228,10 +228,10 @@ function init_magnum {
create_magnum_cache_dir
}
# magnum_register_image - Register heat image for magnum with property os-distro
# magnum_register_image - Register heat image for magnum with property os_distro
function magnum_register_image {
local magnum_image_property="--property os-distro=fedora-atomic"
openstack --os-url $GLANCE_SERVICE_PROTOCOL://$GLANCE_HOSTPORT image set $(basename "$MANGUM_GUEST_IMAGE_URL" ".qcow2") $magnum_image_property
local magnum_image_property="--property os_distro=fedora-atomic"
openstack --os-url $GLANCE_SERVICE_PROTOCOL://$GLANCE_HOSTPORT --os-image-api-version 1 image set $(basename "$MANGUM_GUEST_IMAGE_URL" ".qcow2") $magnum_image_property
}
# install_magnumclient() - Collect source and prepare