Merge ~paride/autopkgtest-cloud:suppoted-esm into autopkgtest-cloud:master

Proposed by Paride Legovini
Status: Merged
Merged at revision: 40d82fc8d9bb33eb2abd52fe5814b06936f11566
Proposed branch: ~paride/autopkgtest-cloud:suppoted-esm
Merge into: autopkgtest-cloud:master
Diff against target: 57 lines (+5/-5)
3 files modified
charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/armhf-lxd-cluster-template.userdata.in.unused (+2/-2)
charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/armhf-lxd.userdata (+2/-2)
lxc-slave-admin/setup-adt-lxc.commands (+1/-1)
Reviewer Review Type Date Requested Status
Brian Murray Pending
Ubuntu Release Team Pending
Review via email: mp+427725@code.launchpad.net

Commit message

Create images for all supported releases (esm and non-esm)

Description of the change

Copypasting description for https://code.launchpad.net/~ubuntu-release/autopkgtest-cloud/+git/autopkgtest-cloud/+merge/427329 (superseded by this MP).

---

This explains why when we create new lxd-armhf workers the autopkgtest-lxd-worker (controller) will end up disabling their service - it can happen when a xenial test is sent to a worker and the image doesn't exist.

ubuntu@lxd-armhf4:~$ distro-info --supported
bionic
focal
jammy
kinetic
ubuntu@lxd-armhf4:~$ distro-info --supported-esm
trusty
xenial
bionic
focal
jammy

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/armhf-lxd-cluster-template.userdata.in.unused b/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/armhf-lxd-cluster-template.userdata.in.unused
index 77df329..20cbac3 100644
--- a/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/armhf-lxd-cluster-template.userdata.in.unused
+++ b/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/armhf-lxd-cluster-template.userdata.in.unused
@@ -51,7 +51,7 @@ write_files:
51 # development release51 # development release
52 37 2 * * * MIRROR=http://ftpmaster.internal/ubuntu/ ~/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$(distro-info --devel)/armhf52 37 2 * * * MIRROR=http://ftpmaster.internal/ubuntu/ ~/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$(distro-info --devel)/armhf
53 # stable releases53 # stable releases
54 1 0 * * 0 for r in $(distro-info --supported | grep -v $(distro-info --devel)); do MIRROR=http://ftpmaster.internal/ubuntu/ ~/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$r/armhf; done54 1 0 * * 0 for r in $({ distro-info --supported; distro-info --supported-esm; } | sort -u | grep -v $(distro-info --devel)); do MIRROR=http://ftpmaster.internal/ubuntu/ ~/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$r/armhf; done
55{%- endif %}55{%- endif %}
5656
57 - path: /var/tmp/setup/lxd-init57 - path: /var/tmp/setup/lxd-init
@@ -121,7 +121,7 @@ write_files:
121 systemctl start snap.lxd.daemon.unix.socket snap.lxd.daemon.service121 systemctl start snap.lxd.daemon.unix.socket snap.lxd.daemon.service
122 python3 -c "from jinja2 import Template; import netifaces as ni; ni.ifaddresses('eth0'); ip = ni.ifaddresses('eth0')[ni.AF_INET][0]['addr']; f = open('/var/tmp/setup/lxd-init'); print(Template(f.read()).render(myip=ip))" | lxd init --preseed122 python3 -c "from jinja2 import Template; import netifaces as ni; ni.ifaddresses('eth0'); ip = ni.ifaddresses('eth0')[ni.AF_INET][0]['addr']; f = open('/var/tmp/setup/lxd-init'); print(Template(f.read()).render(myip=ip))" | lxd init --preseed
123{%- if role == 'bootstrap' or role == 'leader' %}123{%- if role == 'bootstrap' or role == 'leader' %}
124 for r in $(distro-info --supported); do /home/ubuntu/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$r/armhf; done124 for r in $({ distro-info --supported; distro-info --supported-esm; } | sort -u); do /home/ubuntu/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$r/armhf; done
125{%- endif %}125{%- endif %}
126 echo "Finished building - rebooting so changed kernel command line comes into effect..."126 echo "Finished building - rebooting so changed kernel command line comes into effect..."
127 reboot127 reboot
diff --git a/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/armhf-lxd.userdata b/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/armhf-lxd.userdata
index b05bc6e..03f1fc6 100644
--- a/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/armhf-lxd.userdata
+++ b/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/armhf-lxd.userdata
@@ -48,7 +48,7 @@ write_files:
48 # development release48 # development release
49 37 2 * * * MIRROR=http://ftpmaster.internal/ubuntu/ ~/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$(distro-info --devel)/armhf49 37 2 * * * MIRROR=http://ftpmaster.internal/ubuntu/ ~/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$(distro-info --devel)/armhf
50 # stable releases50 # stable releases
51 1 0 * * 0 for r in $(distro-info --supported | grep -v $(distro-info --devel)); do MIRROR=http://ftpmaster.internal/ubuntu/ ~/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$r/armhf; done51 1 0 * * 0 for r in $({ distro-info --supported; distro-info --supported-esm; } | sort -u | grep -v $(distro-info --devel)); do MIRROR=http://ftpmaster.internal/ubuntu/ ~/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$r/armhf; done
5252
53 - path: /var/tmp/setup/lxd-init53 - path: /var/tmp/setup/lxd-init
54 content: |54 content: |
@@ -100,7 +100,7 @@ write_files:
100 systemctl stop snap.lxd.daemon.unix.socket snap.lxd.daemon.service || true100 systemctl stop snap.lxd.daemon.unix.socket snap.lxd.daemon.service || true
101 systemctl start snap.lxd.daemon.unix.socket snap.lxd.daemon.service101 systemctl start snap.lxd.daemon.unix.socket snap.lxd.daemon.service
102 lxd init --preseed < /var/tmp/setup/lxd-init102 lxd init --preseed < /var/tmp/setup/lxd-init
103 for r in $(distro-info --supported); do /home/ubuntu/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$r/armhf; done103 for r in $({ distro-info --supported; distro-info --supported-esm; } | sort -u); do /home/ubuntu/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$r/armhf; done
104 echo "Finished building - rebooting so changed kernel command line comes into effect..."104 echo "Finished building - rebooting so changed kernel command line comes into effect..."
105 reboot105 reboot
106106
diff --git a/lxc-slave-admin/setup-adt-lxc.commands b/lxc-slave-admin/setup-adt-lxc.commands
index 1ffc100..f0a6c42 100644
--- a/lxc-slave-admin/setup-adt-lxc.commands
+++ b/lxc-slave-admin/setup-adt-lxc.commands
@@ -6,7 +6,7 @@ sudo apt-get update
6sudo apt-get install -y distro-info6sudo apt-get install -y distro-info
77
8LXCPATH=/data/lxc8LXCPATH=/data/lxc
9RELEASES=$(distro-info --supported)9RELEASES=$({ distro-info --supported; distro-info --supported-esm; } | sort -u)
10ARCH=$(dpkg --print-architecture)10ARCH=$(dpkg --print-architecture)
11if [ "$ARCH" = s390x ]; then11if [ "$ARCH" = s390x ]; then
12 RELEASES=$(echo "$RELEASES" | grep -Ev 'precise|trusty')12 RELEASES=$(echo "$RELEASES" | grep -Ev 'precise|trusty')

Subscribers

People subscribed via source and target branches