smoke-lxc autopkgtest broken in 7.4.0

Bug #1934966 reported by Christian Ehrhardt 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt
New
Unknown
libvirt (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Our least favorite (most breakage) and least useful (LXD >>> libvirt-lxc) test broke again.
It didn't show up in the sniff testing, but reliably fails on the upload of https://launchpad.net/ubuntu/+source/libvirt/7.4.0-0ubuntu1

It fails across all architectures.

...
debian/tests/smoke-lxc.xml validates
+ virsh define debian/tests/smoke-lxc.xml
+ rm -f /var/log/libvirt/lxc/sl.log
+ virsh start sl

error: Failed to start domain 'sl'
error: error from service: GDBus.Error:org.freedesktop.machine1.NoMachineForPID: PID 2167 does not belong to any known machine
+ cleanup
+ [ -z ]
+ virsh destroy sl
error: Failed to destroy domain 'sl'
error: Requested operation is not valid: domain is not running

+ true
+ virsh undefine sl
Domain 'sl' has been undefined

+ CLEANED_UP=1
autopkgtest [15:21:44]: test smoke-lxc: -----------------------]

Changed in libvirt (Ubuntu):
status: New → Triaged
tags: added: server-next update-excuse
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

ok, reproducible in local autopkgtest and only happening with 7.4.0 in proposed but not 7.0.0 in impish-release.
I'll try to debug that later on ...

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

This is a bug due to upstream and happens due to cgroup/systemd handling
 https://libvirt.org/git/?p=libvirt.git;a=commit;h=9c1693eff4
 https://bugs.archlinux.org/task/70174
 https://bugzilla.opensuse.org/show_bug.cgi?id=1183247
 https://gitlab.com/libvirt/libvirt/-/issues/182

Affects everyone.
I don't want to badtest this, not even reset as there are other tests to retain.
Instead I'll skip the test as long as systemd is <248 which is said (but not confirmed on Ubuntu) to make it work again.

That resolves it for now and if "our systemd 248" does not resolve it we can look again.
This way we best retain the coverage of the other tests.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Working
...
autopkgtest [09:37:13]: test smoke-lxc: [-----------------------
Libvirt >=7.1.0 is known to fail LXC handling with systemd <248 (issue 182) - skipping.
error: failed to get domain 'sl'

error: failed to get domain 'sl'

autopkgtest [09:37:14]: test smoke-lxc: -----------------------]
autopkgtest [09:37:15]: test smoke-lxc: - - - - - - - - - - results - - - - - - - - - -
smoke-lxc SKIP exit status 77 and marked as skippable
...
autopkgtest [09:38:22]: @@@@@@@@@@@@@@@@@@@@ summary
smoke PASS
smoke-qemu-session SKIP exit status 77 and marked as skippable
smoke-lxc SKIP exit status 77 and marked as skippable
build-test PASS

The two warnings are from the cleanup on the way out and ok.
This resolves the issue at hand.

P.S. I also pinged on the upstream bug for their awareness that this seems to affect all Distributions.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Systemd 248.3 was published into impish just now and other than on arch-linux it is not resolving the case for Ubuntu.

As I said this test is the least important and the most failing for us, I'll bump the skip to be unconditional and we will adapt once the upstream issue (which we track) is resolved.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libvirt - 7.4.0-0ubuntu3

---------------
libvirt (7.4.0-0ubuntu3) impish; urgency=medium

  * d/t/smoke-lxc: skip if cgroup v1&v2 are present (systemd 248
    was not enough)

libvirt (7.4.0-0ubuntu2) impish; urgency=medium

  * d/t/smoke-lxc: skip before systemd 248 due to a known bug (LP: #1934966)

libvirt (7.4.0-0ubuntu1) impish; urgency=medium

  * Merge v7.4.0 from upstream,
    among a lot of new features and fixes this closes a few of issues
    reported against Ubuntu
    - Toleration for qemu >=6.0 handling of props (LP: #1932264)
    - Persistent vfio-ccw device assignments (LP: #1887929)
    - Drop patches that are upstream in v7.4.0
      - d/p/b/meson-Fix-cross-building-of-dtrace-probes.patch
      - d/p/b/apparmor-let-image-label-setting-loop-over-backing-files.patch
      - d/p/r/systemd-Revert-remote-Add-libvirtd-dependency-to-virt-gue.patch
      - d/p/u/lp-1913266-*: add vsock options to be usable with s390x
      - d/p/u/lp-1921754-*: EPYC-Rome-v2
      - d/p/u/lp-1921880-*: EPYC-Milan
    - d/libvirt-clients.install: completions no more are symlinked to vsh
    - Revert "disable firewalld support (universe dependency)"
      This does not add a runtime dependency and while firewalld isn't in
      main that way users can install and use it from universe.
      (LP: #1928113)
    - d/libvirt0.symbols: bump symbol versions for 7.4.0
    - d/rules: disable the now auto-built vstorage backend
    - not-installed: split daemon man pages are no yet installed

 -- Christian Ehrhardt <email address hidden> Thu, 08 Jul 2021 14:20:53 +0200

Changed in libvirt (Ubuntu):
status: Triaged → Fix Released
Changed in libvirt:
status: Unknown → New
Changed in libvirt:
status: New → Fix Released
Changed in libvirt:
status: Fix Released → New
Changed in libvirt:
status: New → Fix Released
Changed in libvirt:
status: Fix Released → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.