Browse Source

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
changes/21/178621/3
Swapnil Kulkarni 6 years ago
parent
commit
6b663e67fa
2 changed files with 8 additions and 0 deletions
  1. +7
    -0
      devstack/lib/magnum
  2. +1
    -0
      devstack/plugin.sh

+ 7
- 0
devstack/lib/magnum View File

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


+ 1
- 0
devstack/plugin.sh View File

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


Loading…
Cancel
Save