From 7385814da8e6be5c718e4897d05a12b8924ac757 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 8 Jan 2024 08:57:39 +0100 Subject: [PATCH 1/3] images: Move ubuntu-stable to noble devel series The current devel series will become 24.04 LTS, thus a major/important release again. Let's avoid repeating a regression catastrophe like 23.10 mantic, and start testing on it early, so that we have a chance to fix up everything by the final release. Disable -proposed for noble, as that has all the broken bits. Add message filters for AppArmor regressions, and copy naughties which now apply to 24.04. --- images/scripts/debian.setup | 3 ++- images/scripts/ubuntu-stable.bootstrap | 5 +++++ machine/machine_core/machine.py | 4 ++++ .../5106-journalctl-since-until-behaviour-change | 5 +++++ .../5106-journalctl-since-until-behaviour-change-2 | 4 ++++ naughty/ubuntu-stable/5364-apparmor-sysfs-zoned | 1 + naughty/ubuntu-stable/5419-w-segfault | 7 +++++++ naughty/ubuntu-stable/5419-w-segfault-2 | 8 ++++++++ naughty/ubuntu-stable/5874-lvconvert-hangs-in-kernel | 6 ++++++ 9 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 naughty/ubuntu-stable/5106-journalctl-since-until-behaviour-change create mode 100644 naughty/ubuntu-stable/5106-journalctl-since-until-behaviour-change-2 create mode 100644 naughty/ubuntu-stable/5364-apparmor-sysfs-zoned create mode 100644 naughty/ubuntu-stable/5419-w-segfault create mode 100644 naughty/ubuntu-stable/5419-w-segfault-2 create mode 100644 naughty/ubuntu-stable/5874-lvconvert-hangs-in-kernel diff --git a/images/scripts/debian.setup b/images/scripts/debian.setup index f07139b633..7fffeb48be 100755 --- a/images/scripts/debian.setup +++ b/images/scripts/debian.setup @@ -138,7 +138,8 @@ Pin-Priority: 10 EOF fi -if [ "${IMAGE#ubuntu}" != "$IMAGE" ]; then +# HACK while ubuntu-stable == current noble devel: don't enable -proposed, that's broken by definition +if [ "${IMAGE#ubuntu}" != "$IMAGE" ] && [ "$RELEASE" != "noble" ]; then echo "deb http://archive.ubuntu.com/ubuntu ${RELEASE}-proposed main restricted universe" > /etc/apt/sources.list.d/proposed.list cat < /etc/apt/preferences.d/all-proposed Package: * diff --git a/images/scripts/ubuntu-stable.bootstrap b/images/scripts/ubuntu-stable.bootstrap index cea62ba87c..62aca966d8 100755 --- a/images/scripts/ubuntu-stable.bootstrap +++ b/images/scripts/ubuntu-stable.bootstrap @@ -15,4 +15,9 @@ fi # release name is the last part of the URL rel=${rel##*/} +# noble will become 24.04 LTS, so let's test it before the release so that we can fix issues in time +if [ "$rel" = "mantic" ]; then + rel="noble" +fi + exec $(dirname $0)/lib/cloudimage.bootstrap "$1" "https://cloud-images.ubuntu.com/daily/server/$rel/current/$rel-server-cloudimg-amd64.img" diff --git a/machine/machine_core/machine.py b/machine/machine_core/machine.py index 30f89b4e5f..401f4c772b 100644 --- a/machine/machine_core/machine.py +++ b/machine/machine_core/machine.py @@ -230,6 +230,10 @@ def allowed_messages(self): ) allowed.append("Error importing insights.client.*newest.egg: No module named 'insights'") + if self.image == "ubuntu-stable": + # https://launchpad.net/bugs/2056739 + allowed.append('audit.* apparmor="DENIED".* name="/etc/gnutls/config".*') + return allowed def get_admin_group(self): diff --git a/naughty/ubuntu-stable/5106-journalctl-since-until-behaviour-change b/naughty/ubuntu-stable/5106-journalctl-since-until-behaviour-change new file mode 100644 index 0000000000..0ad6bd5474 --- /dev/null +++ b/naughty/ubuntu-stable/5106-journalctl-since-until-behaviour-change @@ -0,0 +1,5 @@ +Traceback (most recent call last): + File "*", line *, in testEvents +* +testlib.Error: timeout +wait_js_cond(ph_is_present(".cockpit-log-message:contains('Created slice cockpittest.slice.')")): Uncaught (in promise) Error: condition did not become true diff --git a/naughty/ubuntu-stable/5106-journalctl-since-until-behaviour-change-2 b/naughty/ubuntu-stable/5106-journalctl-since-until-behaviour-change-2 new file mode 100644 index 0000000000..1f00de07a1 --- /dev/null +++ b/naughty/ubuntu-stable/5106-journalctl-since-until-behaviour-change-2 @@ -0,0 +1,4 @@ +Traceback (most recent call last): + File "*", line *, in testRebootAndTime +* + *"January 1, 2037"*"check-journal"*"BEFORE BOOT"* condition did not become true diff --git a/naughty/ubuntu-stable/5364-apparmor-sysfs-zoned b/naughty/ubuntu-stable/5364-apparmor-sysfs-zoned new file mode 100644 index 0000000000..57916cc8b4 --- /dev/null +++ b/naughty/ubuntu-stable/5364-apparmor-sysfs-zoned @@ -0,0 +1 @@ +apparmor="DENIED" operation="open" class="file" profile="libvirt*" name="/sys/*/queue/zoned" * comm="qemu-system-x86" requested_mask="r" denied_mask="r" diff --git a/naughty/ubuntu-stable/5419-w-segfault b/naughty/ubuntu-stable/5419-w-segfault new file mode 100644 index 0000000000..be9d3b3d7f --- /dev/null +++ b/naughty/ubuntu-stable/5419-w-segfault @@ -0,0 +1,7 @@ +warning: Unexpected error when getting logged in accounts* +* +Traceback (most recent call last): + File "test/verify/check-users", line *, in testUserPasswords + b.wait_visible("#account-groups-helper") +* +testlib.Error: timeout diff --git a/naughty/ubuntu-stable/5419-w-segfault-2 b/naughty/ubuntu-stable/5419-w-segfault-2 new file mode 100644 index 0000000000..66cab4ae36 --- /dev/null +++ b/naughty/ubuntu-stable/5419-w-segfault-2 @@ -0,0 +1,8 @@ +warning: Unexpected error when getting logged in accounts* +* +Traceback (most recent call last): + File "test/verify/check-users", line *, in testGroups + selectGroupFromMenu("testgroup0", enabled=True) + File "test/verify/check-users", line *, in selectGroupFromMenu +* +testlib.Error: timeout diff --git a/naughty/ubuntu-stable/5874-lvconvert-hangs-in-kernel b/naughty/ubuntu-stable/5874-lvconvert-hangs-in-kernel new file mode 100644 index 0000000000..75d67baa9e --- /dev/null +++ b/naughty/ubuntu-stable/5874-lvconvert-hangs-in-kernel @@ -0,0 +1,6 @@ +[<0>] md_stop+* +* +[<0>] dev_suspend+* +* + File "check-storage-lvm2", line *, in testRaidRepair + self.dialog_wait_close() # wait for repair to finish From 982b10890ecc703bba6cb2e4a8e13427024446b7 Mon Sep 17 00:00:00 2001 From: Cockpituous Date: Mon, 11 Mar 2024 07:44:39 +0000 Subject: [PATCH 2/3] images: Update ubuntu-stable image --- images/ubuntu-stable | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/ubuntu-stable b/images/ubuntu-stable index fc3c9e1253..31cde9a829 120000 --- a/images/ubuntu-stable +++ b/images/ubuntu-stable @@ -1 +1 @@ -ubuntu-stable-f2b0d828b8543391925eb91720b55e51332afbfb043474d0dfe4b592964776da.qcow2 \ No newline at end of file +ubuntu-stable-7eb33de1d77eaa7d8e60f879730b50dc19b3c20f20435a9c017fa1ef26f45cb0.qcow2 \ No newline at end of file From a6612112aab0efacdde4e1b268ac1af64bbaa1de Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 11 Mar 2024 16:04:38 +0100 Subject: [PATCH 3/3] naughty: Add ubuntu-stable pattern for rsyslog AppArmor regression Known issue #6064 Downstream report: https://launchpad.net/bugs/2056768 --- naughty/ubuntu-stable/6064-apparmor-ryslog-systemd-sessions | 1 + 1 file changed, 1 insertion(+) create mode 100644 naughty/ubuntu-stable/6064-apparmor-ryslog-systemd-sessions diff --git a/naughty/ubuntu-stable/6064-apparmor-ryslog-systemd-sessions b/naughty/ubuntu-stable/6064-apparmor-ryslog-systemd-sessions new file mode 100644 index 0000000000..7ab26a8d5e --- /dev/null +++ b/naughty/ubuntu-stable/6064-apparmor-ryslog-systemd-sessions @@ -0,0 +1 @@ +apparmor="DENIED" operation="open" class="file" profile="rsyslogd" name="/run/systemd/sessions/" * requested_mask="r" denied_mask="r"