canonical-ubuntu-qa team mailing list archive
-
canonical-ubuntu-qa team
-
Mailing list archive
-
Message #05111
[Bug 2076341] [NEW] autopkgtest-buildvm-ubuntu-cloud must depend on qemu-utils and qemu-system-x86
Public bug reported:
Usability of autopkgtest-buildvm-ubuntu-cloud is low, as it first pulls
a large image from the internet and then crashes on missing tools it
should have both depend on in the debian packaging and verified on
startup before doing network-heavy work:
zyga@x13:~/.spread$ sudo autopkgtest-buildvm-ubuntu-cloud -r bionic
Downloading https://cloud-images.ubuntu.com/releases/bionic/release/ubuntu-18.04-server-cloudimg-amd64.img...
403.6/405.7 MB (100%)
Download successful.
Resizing image, adding 20G...
Traceback (most recent call last):
File "/usr/bin/autopkgtest-buildvm-ubuntu-cloud", line 429, in <module>
resize_image(image, args.disk_size)
File "/usr/bin/autopkgtest-buildvm-ubuntu-cloud", line 217, in resize_image
subprocess.check_call(['qemu-img', 'resize', '-f', 'qcow2', image, '+' + size])
File "/usr/lib/python3.10/subprocess.py", line 364, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python3.10/subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'qemu-img'
Some moments later:
zyga@x13:~/.spread$ sudo autopkgtest-buildvm-ubuntu-cloud -r bionic
Downloading https://cloud-images.ubuntu.com/releases/bionic/release/ubuntu-18.04-server-cloudimg-amd64.img...
403.6/405.7 MB (100%)
Download successful.
Resizing image, adding 20G...
Image resized.
Building seed image...
Booting image to run cloud-init...
Traceback (most recent call last):
File "/usr/bin/autopkgtest-buildvm-ubuntu-cloud", line 440, in <module>
boot_image(image, seed, args.arch, args.qemu_command,
File "/usr/bin/autopkgtest-buildvm-ubuntu-cloud", line 363, in boot_image
qemu = Qemu(
File "/usr/share/autopkgtest/lib/autopkgtest_qemu.py", line 517, in __init__
self.subprocess: Optional[subprocess.Popen[bytes]] = subprocess.Popen(
File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'qemu-system-x86_64'
In both cases the rather large image was downloaded and discarded.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: autopkgtest 5.32ubuntu3~22.04.1
Uname: Linux 5.15.153.1-microsoft-standard-WSL2 x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Thu Aug 8 14:22:11 2024
PackageArchitecture: all
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: autopkgtest
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: autopkgtest (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug jammy wayland-session
--
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/2076341
Title:
autopkgtest-buildvm-ubuntu-cloud must depend on qemu-utils and qemu-
system-x86
Status in autopkgtest package in Ubuntu:
New
Bug description:
Usability of autopkgtest-buildvm-ubuntu-cloud is low, as it first
pulls a large image from the internet and then crashes on missing
tools it should have both depend on in the debian packaging and
verified on startup before doing network-heavy work:
zyga@x13:~/.spread$ sudo autopkgtest-buildvm-ubuntu-cloud -r bionic
Downloading https://cloud-images.ubuntu.com/releases/bionic/release/ubuntu-18.04-server-cloudimg-amd64.img...
403.6/405.7 MB (100%)
Download successful.
Resizing image, adding 20G...
Traceback (most recent call last):
File "/usr/bin/autopkgtest-buildvm-ubuntu-cloud", line 429, in <module>
resize_image(image, args.disk_size)
File "/usr/bin/autopkgtest-buildvm-ubuntu-cloud", line 217, in resize_image
subprocess.check_call(['qemu-img', 'resize', '-f', 'qcow2', image, '+' + size])
File "/usr/lib/python3.10/subprocess.py", line 364, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python3.10/subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'qemu-img'
Some moments later:
zyga@x13:~/.spread$ sudo autopkgtest-buildvm-ubuntu-cloud -r bionic
Downloading https://cloud-images.ubuntu.com/releases/bionic/release/ubuntu-18.04-server-cloudimg-amd64.img...
403.6/405.7 MB (100%)
Download successful.
Resizing image, adding 20G...
Image resized.
Building seed image...
Booting image to run cloud-init...
Traceback (most recent call last):
File "/usr/bin/autopkgtest-buildvm-ubuntu-cloud", line 440, in <module>
boot_image(image, seed, args.arch, args.qemu_command,
File "/usr/bin/autopkgtest-buildvm-ubuntu-cloud", line 363, in boot_image
qemu = Qemu(
File "/usr/share/autopkgtest/lib/autopkgtest_qemu.py", line 517, in __init__
self.subprocess: Optional[subprocess.Popen[bytes]] = subprocess.Popen(
File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'qemu-system-x86_64'
In both cases the rather large image was downloaded and discarded.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: autopkgtest 5.32ubuntu3~22.04.1
Uname: Linux 5.15.153.1-microsoft-standard-WSL2 x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Thu Aug 8 14:22:11 2024
PackageArchitecture: all
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: autopkgtest
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/2076341/+subscriptions
Follow ups