Image distro not updated when magnum configured with devstack

Updated the plugin and lib script to register image with property

Change-Id: I87fe82195c8aef3935e519185f07c43f359de4b8
Closes-Bug:#1449950
This commit is contained in:
Swapnil Kulkarni 2015-04-29 11:18:04 +00:00
parent 09898d0766
commit 6b663e67fa
2 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,7 @@
# - configure_magnum # - configure_magnum
# - create_magnum_conf # - create_magnum_conf
# - init_magnum # - init_magnum
# - magnum_register_image
# - start_magnum # - start_magnum
# - stop_magnum # - stop_magnum
# - cleanup_magnum # - cleanup_magnum
@ -192,6 +193,12 @@ function init_magnum {
create_magnum_cache_dir create_magnum_cache_dir
} }
# 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
}
# install_magnumclient() - Collect source and prepare # install_magnumclient() - Collect source and prepare
function install_magnumclient { function install_magnumclient {
if use_library_from_git "python-magnumclient"; then if use_library_from_git "python-magnumclient"; then

View File

@ -44,6 +44,7 @@ if is_service_enabled m-api m-cond; then
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# Initialize magnum # Initialize magnum
init_magnum init_magnum
magnum_register_image
# Start the magnum API and magnum taskmgr components # Start the magnum API and magnum taskmgr components
echo_summary "Starting magnum" echo_summary "Starting magnum"