Tests in ubuntu_lxc failed with "ERROR: Couldn't find a matching image." on X-hwe and older releases

Bug #1939537 reported by Po-Hsu Lin
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Unassigned
lxc (Ubuntu)
Invalid
Undecided
Unassigned
Bionic
Fix Released
Undecided
Andrei Gherzan

Bug Description

[ Impact ]

 * The following tests fail as they try to use inexistent LXC images:
   * lxc-test-apparmor-mount
   * lxc-test-autostart
   * lxc-test-unpriv
   * lxc-test-usernic

 * Having them fixed for the affected series (for example, Bionic) will allow us to run the LXC test suite without maintaining local changes for these tests.

[ Test Plan ]

 * Run the affected tests on an affected series (e.g. Bionic).
 * The tests should pass.

[ Where problems could occur ]

 * The regression risk is very low and the changes only affect the tests so the regression scope is minimal.

[Other info]

Original bug report:

Issue found on node onibi 4.15.0-142-generic #146~16.04.1

With bug 1916087 resolved, the following tests:
  * lxc-test-apparmor-mount
  * lxc-test-autostart
  * lxc-test-unpriv
  * lxc-test-usernic

Are now failing with:
  ERROR: Couldn't find a matching image.

This is because with lxc version 2.0.11-0ubuntu1~16.04.3 the default target release is "trusty" or the system release if supported. It will be checked with:
  ubuntu-distro-info --supported

However Xenial is an ESM series now, it won't use xenial as the target release but use trusty instead.

The attempt to download trusty image will fail with this error.

Po-Hsu Lin (cypressyew)
tags: added: ubuntu-lxc
Po-Hsu Lin (cypressyew)
tags: added: 4.15 sru-20210719 xenial
Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

Found also on xenial/linux-oracle/4.15.0-1079.87~16.04.1

tags: added: amd64 oracle
Po-Hsu Lin (cypressyew)
summary: Tests in ubuntu_lxc failed with "ERROR: Couldn't find a matching image."
- on X-hwe
+ on X-hwe and older releases
Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

Found on xenial/linux-aws/4.4.0-1132.146

tags: added: 4.4 aws sru-20210816
Revision history for this message
Luke Nowakowski-Krijger (lukenow) wrote :

Found on hirsute/linux-kvm/5.11.0-1025.28

Revision history for this message
Andrei Gherzan (agherzan) wrote :

This now fails on bionic too (linux-kvm):

SRU Cycle: 2023.04.17
Series: bionic
Package: linux-kvm
Version: 4.15.0-1140.145
Cloud: metal
Instance: crdvm4
Region: intel-sdp
Operation: sru

tags: added: sru-20230417
Changed in lxc (Ubuntu Bionic):
assignee: nobody → Andrei Gherzan (agherzan)
Revision history for this message
Andrei Gherzan (agherzan) wrote (last edit ):

I am attaching a fix for Bionic. Note that this pulls in another unapproved change from @xnox to ease merging in time for the SRU cycle.

This was checked with Stéphane Graber, who agreed to an exception of pushing a test-specific change given the SRU cycle is ending very soon, and most of the users would have switched anyway.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "lxc_3.0.3-0ubuntu1~18.04.3.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lxc (Ubuntu Bionic):
status: New → Confirmed
Changed in lxc (Ubuntu):
status: New → Confirmed
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Po-Hsu, or anyone else affected,

Accepted lxc into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/lxc/3.0.3-0ubuntu1~18.04.3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in lxc (Ubuntu Bionic):
status: Confirmed → Fix Committed
tags: added: verification-needed verification-needed-bionic
description: updated
description: updated
description: updated
Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (lxc/3.0.3-0ubuntu1~18.04.3)

All autopkgtests for the newly accepted lxc (3.0.3-0ubuntu1~18.04.3) for bionic have finished running.
The following regressions have been reported in tests triggered by the package:

lxd/3.0.3-0ubuntu1~18.04.2 (i386)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/bionic/update_excuses.html#lxc

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

autopkgteest & general usage of lxc 3.0.3-0ubuntu1~18.04.3 works with host kernels on bionic's GA kernel and on hwe v5.4 kernels now.

verification done.

tags: added: verification-done verification-done-bionic
removed: verification-needed verification-needed-bionic
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

cross test of lxd fails, but i386 is not supported under ESM and i'm not sure if i386 cross-arch autopkgtest is valid at all.

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

This bug was fixed in the package lxc - 3.0.3-0ubuntu1~18.04.3

---------------
lxc (3.0.3-0ubuntu1~18.04.3) bionic; urgency=medium

  * Fix tests issue by avoiding falling back to inexistent trusty LXC images
    and using the bionic ones (LP: #1939537)

lxc (3.0.3-0ubuntu1~18.04.2) bionic; urgency=medium

  * Cherry-pick upstream bugfixes (LP: #1848587 LP: #1886790):
    - tests: use /dev/loop-control instead of /dev/network_latency
    - This unbreaks adt-matrix / adt testing of Bionic hwe kernels

 -- Andrei Gherzan <email address hidden> Fri, 05 May 2023 14:06:12 +0200

Changed in lxc (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for lxc has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Dave Jones (waveform) wrote :

Is there anything left to do on this bug? Any further series to target for lxc, and/or anything to do with the ubuntu-kernel-tests?

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

All done, updated states and dropped sponsors subscribers

Changed in lxc (Ubuntu):
status: Confirmed → Invalid
Changed in ubuntu-kernel-tests:
status: New → Fix Released
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.