Merge autopkgtest-cloud:series-bootstrapping into autopkgtest-cloud:master

Proposed by Steve Langasek
Status: Merged
Merged at revision: 5d852a54917f310166b8d059d91460e99fca23af
Proposed branch: autopkgtest-cloud:series-bootstrapping
Merge into: autopkgtest-cloud:master
Diff against target: 30 lines (+12/-0)
1 file modified
tools/build-adt-image-all-clouds (+12/-0)
Reviewer Review Type Date Requested Status
Iain Lane Approve
Review via email: mp+332758@code.launchpad.net

Description of the change

It seems generally useful to be able to bootstrap our autopkgtest nova images in parallel with the cloud image creation. This would let us support it explicitly.

To post a comment you must log in.
Revision history for this message
Iain Lane (laney) wrote :

Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/tools/build-adt-image-all-clouds b/tools/build-adt-image-all-clouds
index 103759b..fa26b2a 100755
--- a/tools/build-adt-image-all-clouds
+++ b/tools/build-adt-image-all-clouds
@@ -5,6 +5,12 @@ set -eu
55
6SETUP_SCRIPT="$1"6SETUP_SCRIPT="$1"
7RELEASE=${RELEASE:-$(distro-info --devel)}7RELEASE=${RELEASE:-$(distro-info --devel)}
8case $2 in
9 --bootstrap)
10 BASE_RELEASE=${BASE_RELEASE:-$(distro-info --stable)}
11 ;;
12esac
13
8ARCHES="ppc64el i386 amd64 arm64"14ARCHES="ppc64el i386 amd64 arm64"
9export MIRROR=http://ftpmaster.internal/ubuntu15export MIRROR=http://ftpmaster.internal/ubuntu
1016
@@ -21,6 +27,12 @@ do_one_cloud() {
21 IMG=$(echo "$IMGS" | grep "${RELEASE}-daily-${arch}" | tail -n1 | awk '{print $2}')27 IMG=$(echo "$IMGS" | grep "${RELEASE}-daily-${arch}" | tail -n1 | awk '{print $2}')
22 # Fall back to previous adt image and upgrade that28 # Fall back to previous adt image and upgrade that
23 [ -n "$IMG" ] || IMG=$(echo "$IMGS" | grep "${RELEASE}-adt-${arch}" | tail -n1 | awk '{print $2}')29 [ -n "$IMG" ] || IMG=$(echo "$IMGS" | grep "${RELEASE}-adt-${arch}" | tail -n1 | awk '{print $2}')
30 # If we have neither, and --bootstrap is passed, fall back to the
31 # latest stable release
32 if [ -n "$BASE_RELEASE" ]; then
33 [ -n "$IMG" ] || IMG=$(echo "$IMGS" | grep "${BASE_RELEASE}-daily-${arch}" | tail -n1 | awk '{print $2}')
34 [ -n "$IMG" ] || IMG=$(echo "$IMGS" | grep "${BASE_RELEASE}-adt-${arch}" | tail -n1 | awk '{print $2}')
35 fi
24 [ -n "$IMG" ] || continue36 [ -n "$IMG" ] || continue
25 echo "$(date -R) $arch: using image $IMG"37 echo "$(date -R) $arch: using image $IMG"
26 $(dirname $0)/create-nova-image-new-release $RELEASE $IMG testbed-`hostname` "$SETUP_SCRIPT"38 $(dirname $0)/create-nova-image-new-release $RELEASE $IMG testbed-`hostname` "$SETUP_SCRIPT"

Subscribers

People subscribed via source and target branches