Merge autopkgtest-cloud:suppoted-esm into autopkgtest-cloud:master

Proposed by Brian Murray
Status: Rejected
Rejected by: Brian Murray
Proposed branch: 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
Ubuntu Release Team Pending
Review via email: mp+427329@code.launchpad.net

Description of the change

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.
Revision history for this message
Brian Murray (brian-murray) wrote :

We might not actually need the trusty images - I need to confirm with security.

Revision history for this message
Brian Murray (brian-murray) wrote :

Actually (again) this won't work because interim releases don't show up with "--supported-esm".

[ 3:25PM 10661 ] [ bdmurray@impulse:/srv/vms ]
 $ faketime '2022-07-01 00:00:00' distro-info --supported
bionic
focal
impish
jammy
kinetic
[ 3:26PM 10662 ] [ bdmurray@impulse:/srv/vms ]
 $ faketime '2022-07-01 00:00:00' distro-info --supported-esm
trusty
xenial
bionic
focal
jammy

Revision history for this message
Paride Legovini (paride) wrote :

I can't push on top of the suppoted-esm branch; I'm going to create a separate MP.

Revision history for this message
Brian Murray (brian-murray) wrote :

This was rejected in favor of Paride's branch.

Unmerged commits

f69c1f9... by Brian Murray

Create images for trusty and xenial too

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --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
2index 77df329..b634f5c 100644
3--- a/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/armhf-lxd-cluster-template.userdata.in.unused
4+++ b/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/armhf-lxd-cluster-template.userdata.in.unused
5@@ -51,7 +51,7 @@ write_files:
6 # development release
7 37 2 * * * MIRROR=http://ftpmaster.internal/ubuntu/ ~/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$(distro-info --devel)/armhf
8 # stable releases
9- 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; done
10+ 1 0 * * 0 for r in $(distro-info --supported-esm | grep -v $(distro-info --devel)); do MIRROR=http://ftpmaster.internal/ubuntu/ ~/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$r/armhf; done
11 {%- endif %}
12
13 - path: /var/tmp/setup/lxd-init
14@@ -121,7 +121,7 @@ write_files:
15 systemctl start snap.lxd.daemon.unix.socket snap.lxd.daemon.service
16 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
17 {%- if role == 'bootstrap' or role == 'leader' %}
18- for r in $(distro-info --supported); do /home/ubuntu/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$r/armhf; done
19+ for r in $(distro-info --supported-esm); do /home/ubuntu/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$r/armhf; done
20 {%- endif %}
21 echo "Finished building - rebooting so changed kernel command line comes into effect..."
22 reboot
23diff --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
24index b05bc6e..2be3617 100644
25--- a/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/armhf-lxd.userdata
26+++ b/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/tools/armhf-lxd.userdata
27@@ -48,7 +48,7 @@ write_files:
28 # development release
29 37 2 * * * MIRROR=http://ftpmaster.internal/ubuntu/ ~/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$(distro-info --devel)/armhf
30 # stable releases
31- 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; done
32+ 1 0 * * 0 for r in $(distro-info --supported-esm | grep -v $(distro-info --devel)); do MIRROR=http://ftpmaster.internal/ubuntu/ ~/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$r/armhf; done
33
34 - path: /var/tmp/setup/lxd-init
35 content: |
36@@ -100,7 +100,7 @@ write_files:
37 systemctl stop snap.lxd.daemon.unix.socket snap.lxd.daemon.service || true
38 systemctl start snap.lxd.daemon.unix.socket snap.lxd.daemon.service
39 lxd init --preseed < /var/tmp/setup/lxd-init
40- for r in $(distro-info --supported); do /home/ubuntu/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$r/armhf; done
41+ for r in $(distro-info --supported-esm); do /home/ubuntu/autopkgtest/tools/autopkgtest-build-lxd images:ubuntu/$r/armhf; done
42 echo "Finished building - rebooting so changed kernel command line comes into effect..."
43 reboot
44
45diff --git a/lxc-slave-admin/setup-adt-lxc.commands b/lxc-slave-admin/setup-adt-lxc.commands
46index 1ffc100..3067578 100644
47--- a/lxc-slave-admin/setup-adt-lxc.commands
48+++ b/lxc-slave-admin/setup-adt-lxc.commands
49@@ -6,7 +6,7 @@ sudo apt-get update
50 sudo apt-get install -y distro-info
51
52 LXCPATH=/data/lxc
53-RELEASES=$(distro-info --supported)
54+RELEASES=$(distro-info --supported-esm)
55 ARCH=$(dpkg --print-architecture)
56 if [ "$ARCH" = s390x ]; then
57 RELEASES=$(echo "$RELEASES" | grep -Ev 'precise|trusty')

Subscribers

People subscribed via source and target branches