Merge autopkgtest-cloud:blacklist-virtio-rng into autopkgtest-cloud:master

Proposed by Brian Murray
Status: Merged
Merged at revision: 1eea3b70489e319955bac483fd2c6199454e871e
Proposed branch: autopkgtest-cloud:blacklist-virtio-rng
Merge into: autopkgtest-cloud:master
Diff against target: 19 lines (+8/-0)
1 file modified
charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/worker-config-production/ (+8/-0)
Reviewer Review Type Date Requested Status
Paride Legovini (community) Approve
Ubuntu Release Team Pending
Review via email:

Description of the change

Modify /etc/default/grub so that GRUB_CMDLINE_LINUX= contains "module_blacklist=virtio_rng". This needs to be done in GRUB_CMDLINE_LINUX as GRUB_CMDLINE_LINUX_DEFAULT is later set in /etc/default/grub.d/90-autopkgtest.cfg which is created by autopkgtest.

I cowboy'ed this change on one of the cloud-worker units (autopkgtest-cloud-worker/0) and created adt/ubuntu-kinetic-amd64-server-20220912.img which has the module blacklisted.

To post a comment you must log in.
Revision history for this message
Paride Legovini (paride) wrote :

LGTM, the only comment I have is we're going to hit this again if the underlying issue (LP: #1989258) isn't fixed before LL, as the workaround is specific to kinetic. This can also be seen as a positive thing: if still not fixed in kernel we should bring the issue up again.

review: Approve

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/worker-config-production/ b/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/worker-config-production/
2index 1201fb2..b53dfac 100644
3--- a/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/worker-config-production/
4+++ b/charms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/worker-config-production/
5@@ -25,6 +25,14 @@ if [ "$(uname -m)" = aarch64 ] && ! grep -q 'GRUB_CMDLINE_LINUX.*nohz-off' /etc/
6 update-grub
7 fi
9+# work around hung tasks timeout w/ virtio_rng (LP: #1989258)
10+if grep -q kinetic /etc/lsb-release; then
11+ if [ "$(uname -m)" = x86_64 ] && ! grep -q 'GRUB_CMDLINE_LINUX=.*module_blacklist=virtio_rng' /etc/default/grub; then
12+ sed -i '/GRUB_CMDLINE_LINUX=/ s/="\(.*\)"$/="\1 module_blacklist=virtio_rng"/' /etc/default/grub
13+ update-grub
14+ fi
17 # work around broken tty on ppc64el instances (LP: #1607075)
18 if [ "$(uname -m)" = ppc64le ] && [ "$(systemctl is-active keyboard-setup.service 2>/dev/null|| true)" = failed ]; then
19 systemctl reset-failed keyboard-setup.service


People subscribed via source and target branches