diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 740c9412d6..93606ec320 100755 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -16,15 +16,16 @@ if is_service_enabled m-api m-cond; then # add image to glance if [[ "$ENABLED_SERVICES" =~ 'm-api' ]]; then # TODO Add a "latest" link to fedora release process - ATOMIC_IMAGE_NAME=$( \ - wget --spider --level 1 \ - --recursive --accept-regex=".*qcow2" \ - "https://alt.fedoraproject.org/pub/alt/atomic/stable/Cloud-Images/x86_64/Images/" 2>&1 | \ - grep qcow2 | \ - sed 's/.*Cloud-Images\/x86_64\/Images\///' | \ - head -n 1) - echo "Atomic Image: $ATOMIC_IMAGE_NAME" - MAGNUM_GUEST_IMAGE_URL=${MAGNUM_GUEST_IMAGE_URL:-"https://download.fedoraproject.org/pub/alt/atomic/stable/Cloud-Images/x86_64/Images/$ATOMIC_IMAGE_NAME"} + # TODO(hongbin): Uncomment below when the mirror become stable + #ATOMIC_IMAGE_NAME=$( \ + # wget -qO- \ + # "https://download.fedoraproject.org/pub/alt/atomic/stable/Cloud-Images/x86_64/Images/" 2>&1 | \ + # grep qcow2 | \ + # sed 's/^.*>\(.*\)<.*$/\1/' | \ + # head -n 1 ) + #echo "Atomic Image: $ATOMIC_IMAGE_NAME" + #MAGNUM_GUEST_IMAGE_URL=${MAGNUM_GUEST_IMAGE_URL:-"https://download.fedoraproject.org/pub/alt/atomic/stable/Cloud-Images/x86_64/Images/$ATOMIC_IMAGE_NAME"} + MAGNUM_GUEST_IMAGE_URL=${MAGNUM_GUEST_IMAGE_URL:-"https://fedorapeople.org/groups/magnum/fedora-23-atomic-20160405.qcow2"} IMAGE_URLS+=",${MAGNUM_GUEST_IMAGE_URL}" fi