canonical-ubuntu-qa team mailing list archive
-
canonical-ubuntu-qa team
-
Mailing list archive
-
Message #04969
[Bug 2052639] Re: deb822 sources are not supported (was: cannot create a local noble lxd runner)
Performing further verification on Jammy.
We will start by reproducing the bug for Noble and Oracular images.
$ apt policy autopkgtest
autopkgtest:
Installed: 5.32ubuntu3~22.04.1
Candidate: 5.32ubuntu3~22.04.1
Version table:
5.37ubuntu3~22.04.1 400
400 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages
400 http://archive.ubuntu.com/ubuntu jammy-proposed/main i386 Packages
*** 5.32ubuntu3~22.04.1 500
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
100 /var/lib/dpkg/status
5.20 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu jammy/main i386 Packages
First we reproduce the bug for a Noble image:
$ autopkgtest-buildvm-ubuntu-cloud -a amd64 -r noble
Downloading https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img...
582.6/585.5 MB (100%)
Download successful.
Resizing image, adding 20G...
Image resized.
Building seed image...
Booting image to run cloud-init...
qemu-system-x86_64: -drive index=1,file=/tmp/autopkgtest-buildvm-ubuntu-cloudofybbc2_/autopkgtest.seed,format=raw,if=virtio,discard=unmap,readonly: warning: short-form boolean option 'readonly' deprecated
Please use readonly=on instead
Moving image into final destination ./autopkgtest-noble-amd64.img
$ autopkgtest -BU gzip -- qemu -c 1 --ram 1024 autopkgtest-noble-amd64.img
autopkgtest [15:09:22]: starting date and time: 2024-07-26 15:09:22-0700
autopkgtest [15:09:22]: version 5.32ubuntu3~22.04.1
autopkgtest [15:09:22]: host autopkgtest-sru-jammy-amd64; command line: /usr/bin/autopkgtest -BU gzip -- qemu -c 1 --ram 1024 autopkgtest-noble-amd64.img
autopkgtest [15:09:54]: testbed dpkg architecture: amd64
autopkgtest [15:09:54]: testbed apt version: 2.7.14build2
autopkgtest [15:09:54]: @@@@@@@@@@@@@@@@@@@@ test bed setup
(truncated for brevity)
autopkgtest [15:10:23]: testbed running kernel: Linux 6.8.0-39-generic #39-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 21:49:14 UTC 2024
autopkgtest [15:10:23]: @@@@@@@@@@@@@@@@@@@@ apt-source gzip
blame: gzip
badpkg: apt-cache showsrc didn't succeed: E: You must put some 'deb-src' URIs in your sources.list
autopkgtest [15:10:23]: ERROR: erroneous package: apt-cache showsrc
didn't succeed: E: You must put some 'deb-src' URIs in your sources.list
So the bug is replicated. Now we reproduce it for an Oracular image:
$ autopkgtest-buildvm-ubuntu-cloud -a amd64 -r oracular
Downloading https://cloud-images.ubuntu.com/oracular/current/oracular-server-cloudimg-amd64.img...
494.9/497.4 MB (100%)
Download successful.
Resizing image, adding 20G...
Image resized.
Building seed image...
Booting image to run cloud-init...
qemu-system-x86_64: -drive index=1,file=/tmp/autopkgtest-buildvm-ubuntu-cloudv0213a3p/autopkgtest.seed,format=raw,if=virtio,discard=unmap,readonly: warning: short-form boolean option 'readonly' deprecated
Please use readonly=on instead
Moving image into final destination ./autopkgtest-oracular-amd64.img
$ autopkgtest -BU gzip -- qemu -c 1 --ram 1024 autopkgtest-oracular-amd64.img
autopkgtest [15:22:12]: starting date and time: 2024-07-26 15:22:12-0700
autopkgtest [15:22:12]: version 5.32ubuntu3~22.04.1
autopkgtest [15:22:12]: host autopkgtest-sru-jammy-amd64; command line: /usr/bin/autopkgtest -BU gzip -- qemu -c 1 --ram 1024 autopkgtest-oracular-amd64.img
autopkgtest [15:22:35]: testbed dpkg architecture: amd64
autopkgtest [15:22:35]: testbed apt version: 2.9.6
autopkgtest [15:22:35]: @@@@@@@@@@@@@@@@@@@@ test bed setup
(truncated for brevity)
autopkgtest [15:23:15]: rebooting testbed after setup commands that affected boot
autopkgtest [15:23:45]: testbed running kernel: Linux 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024
autopkgtest [15:23:49]: @@@@@@@@@@@@@@@@@@@@ apt-source gzip
blame: gzip
badpkg: apt-cache showsrc didn't succeed: E: You must put some 'deb-src' URIs in your sources.list
autopkgtest [15:23:49]: ERROR: erroneous package: apt-cache showsrc
didn't succeed: E: You must put some 'deb-src' URIs in your sources.list
So the bug is replicated for both Noble and Oracular.
Now we verify the fix:
$ apt policy autopkgtest
autopkgtest:
Installed: 5.37ubuntu3~22.04.1
Candidate: 5.37ubuntu3~22.04.1
Version table:
*** 5.37ubuntu3~22.04.1 400
400 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages
400 http://archive.ubuntu.com/ubuntu jammy-proposed/main i386 Packages
100 /var/lib/dpkg/status
5.32ubuntu3~22.04.1 500
500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
5.20 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu jammy/main i386 Packages
First we will rebuild the Noble image and rerun the test:
autopkgtest-buildvm-ubuntu-cloud -a amd64 -r noble
Downloading https://cloud-images.ubuntu.com/minimal/daily/noble/current/noble-minimal-cloudimg-amd64.img...
238.7/239.9 MB (100%)
Download successful.
Resizing image, adding 20G...
Image resized.
Building seed image...
Booting image to run cloud-init...
Moving image into final destination ./autopkgtest-noble-amd64.img
uralt@autopkgtest-sru-jammy-amd64:~$ autopkgtest -BU gzip -- qemu -c 1 --ram 1024 autopkgtest-noble-amd64.img
autopkgtest [15:38:38]: starting date and time: 2024-07-26 15:38:38-0700
autopkgtest [15:38:38]: version 5.37ubuntu3~22.04.1
autopkgtest [15:38:38]: host autopkgtest-sru-jammy-amd64; command line: /usr/bin/autopkgtest -BU gzip -- qemu -c 1 --ram 1024 autopkgtest-noble-amd64.img
autopkgtest [15:38:56]: testbed dpkg architecture: amd64
autopkgtest [15:38:56]: testbed apt version: 2.7.14build2
autopkgtest [15:38:56]: @@@@@@@@@@@@@@@@@@@@ test bed setup
(truncated for brevity)
autopkgtest [15:39:13]: test simple-gzip: - - - - - - - - - - results - - - - - - - - - -
simple-gzip PASS
autopkgtest [15:39:14]: @@@@@@@@@@@@@@@@@@@@ summary
simple-gzip PASS
So we have verified the fix for Noble.
Now we rebuild the Oracular image and rerun the tests:
$ autopkgtest-buildvm-ubuntu-cloud -a amd64 -r oracular
Downloading https://cloud-images.ubuntu.com/minimal/daily/oracular/current/oracular-minimal-cloudimg-amd64.img...
239.3/240.5 MB (100%)
Download successful.
Resizing image, adding 20G...
Image resized.
Building seed image...
Booting image to run cloud-init...
Moving image into final destination ./autopkgtest-oracular-amd64.img
$ autopkgtest -BU gzip -- qemu -c 1 --ram 1024 autopkgtest-oracular-amd64.img
autopkgtest [15:43:07]: starting date and time: 2024-07-26 15:43:07-0700
autopkgtest [15:43:07]: version 5.37ubuntu3~22.04.1
autopkgtest [15:43:07]: host autopkgtest-sru-jammy-amd64; command line: /usr/bin/autopkgtest -BU gzip -- qemu -c 1 --ram 1024 autopkgtest-oracular-amd64.img
autopkgtest [15:43:25]: testbed dpkg architecture: amd64
autopkgtest [15:43:25]: testbed apt version: 2.9.6
autopkgtest [15:43:25]: @@@@@@@@@@@@@@@@@@@@ test bed setup
(truncated for brevity)
autopkgtest [15:43:40]: test simple-gzip: -----------------------]
autopkgtest [15:43:41]: test simple-gzip: - - - - - - - - - - results - - - - - - - - - -
simple-gzip PASS
autopkgtest [15:43:41]: @@@@@@@@@@@@@@@@@@@@ summary
simple-gzip PASS
So images built with the new version of autopkgtest will successfully
run tests.
This concludes the verification for Jammy.
--
You received this bug notification because you are a member of
Canonical's Ubuntu QA, which is subscribed to autopkgtest in Ubuntu.
https://bugs.launchpad.net/bugs/2052639
Title:
deb822 sources are not supported (was: cannot create a local noble lxd
runner)
Status in autopkgtest package in Ubuntu:
Fix Released
Status in autopkgtest source package in Jammy:
Fix Committed
Bug description:
[Impact]
Noble was the first Ubuntu release that introduced deb822 only sources. However,
this required support for that in autopkgtest.
[Test case]
$ autopkgtest-build-lxd ubuntu-daily:oracular
$ autopkgtest-buildvm-ubuntu-cloud -a amd64 -r noble
$ autopkgtest-buildvm-ubuntu-cloud -a amd64 -r oracular
[Fix]
https://salsa.debian.org/ci-team/autopkgtest/-/merge_requests/287
This was release in autopkgtest 5.34, currently in the process of being SRU'd to
Jammy in bug #2071609.
[Regression potential]
The current SRU has a lot of unrelated changes. While this increases the
chances of regression, this also come with a broader test suite, increasing test
coverage, and so regressions should only happen in corner-cases, hopefully less
important as the current lack of deb822 feature.
[Original bug report]
Hi there,
On current mantic, I cannot use autopkgtest-build-lxd to create a
noble LXD runner:
$ autopkgtest-build-lxd ubuntu-daily:noble
Detected local apt proxy, using http://10.235.222.1:3142 as container proxy
Creating autopkgtest-prepare-nDq
Starting autopkgtest-prepare-nDq
Created symlink /etc/systemd/system/serial-getty@getty.service → /dev/null.
Container finished booting. Distribution Ubuntu, release noble, architecture amd64
Running setup script /usr/share/autopkgtest/setup-commands/setup-testbed...
awk: fatal: cannot open file `/etc/apt/sources.list' for reading: No such file or directory
sh: Attempting to set up Debian/Ubuntu apt sources automatically
Failed to auto-detect apt mirror; set $MIRROR explicitly
I'm guessing this is related to deb822?
ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: autopkgtest 5.28ubuntu1 [modified: usr/bin/autopkgtest-build-lxd]
ProcVersionSignature: Ubuntu 6.5.0-15.15-generic 6.5.3
Uname: Linux 6.5.0-15-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: GNOME
Date: Wed Feb 7 15:33:18 2024
InstallationDate: Installed on 2021-07-05 (947 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
PackageArchitecture: all
ProcEnviron:
LANG=fr_FR.UTF-8
PATH=(custom, no user)
SHELL=/usr/bin/zsh
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
SourcePackage: autopkgtest
UpgradeStatus: Upgraded to mantic on 2023-09-13 (147 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/2052639/+subscriptions
References