autopkgtest-build-qemu fails to build Ubuntu images

Bug #2060187 reported by Paride Legovini
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Committed
Undecided
Paride Legovini
Bionic
Won't Fix
Undecided
Unassigned
Focal
Won't Fix
Undecided
Unassigned
Jammy
New
Undecided
Unassigned
Noble
New
Undecided
Unassigned

Bug Description

Normally autopkgtest-buildvm-ubuntu-cloud is a better tool to build Ubuntu images to be used with autopkgtest-virt-qemu, however we should also be able to use autopkgtest-build-qemu, which builds an image from scratch using debootstrap. This currently fails:

- When building >= Focal images, autopkgtest-virt-qemu fails as it tries to install ifupdown on the testbed, which is not available in main (the only enabled component during debootstrap). We should stop installing ifupdown in >= Focal or more probably >= Bionic (when netplan has been made the default).

- Issues with setup-testbed installing rng-tools have been reported [1].

Note: at the moment autopkgtest-build-qemu is also failing to build noble images because the release pocket is currently missing binaries.

[1] https://salsa.debian.org/ci-team/autopkgtest/-/merge_requests/310

Paride Legovini (paride)
description: updated
Revision history for this message
Paride Legovini (paride) wrote :

The rng-tools install problem was due to a local configuration issue. Not a bug in autopkgtest

The ifupdown issue has been fixed in:

https://salsa.debian.org/ci-team/autopkgtest/-/merge_requests/315

Thanks: Christian Kastner (ckk)

Changed in autopkgtest (Ubuntu):
status: New → Fix Committed
Paride Legovini (paride)
Changed in autopkgtest (Ubuntu):
status: Fix Committed → In Progress
Revision history for this message
Tim Andersson (andersson123) wrote (last edit ):

The MR has been merged but the commit hasn't been released in Ubuntu yet. Version 5.35 in debian has the fix.

Changed in autopkgtest (Ubuntu):
status: In Progress → Fix Committed
Paride Legovini (paride)
Changed in autopkgtest (Ubuntu):
assignee: nobody → Paride Legovini (paride)
Revision history for this message
Agathe Porte (gagath) wrote :

I am also affected, cannot build an Noble Ubuntu image on Noble host using the following command:

$ sudo autopkgtest-build-qemu noble noble.img http://fr.archive.ubuntu.com/ubuntu

Error log:

2024-06-19 11:31:31 DEBUG STDOUT: Reading package lists...
2024-06-19 11:31:31 DEBUG STDOUT: Building dependency tree...
2024-06-19 11:31:31 DEBUG STDOUT: Reading state information...
2024-06-19 11:31:31 DEBUG STDOUT: Package ifupdown is not available, but is referred to by another package.
2024-06-19 11:31:31 DEBUG STDERR: E: Package 'ifupdown' has no installation candidate
2024-06-19 11:31:31 DEBUG STDOUT: This may mean that the package is missing, has been obsoleted, or
2024-06-19 11:31:31 DEBUG STDOUT: is only available from another source
2024-06-19 11:31:31 DEBUG STDOUT:

2024-06-19 11:31:31 ERROR Program failed: 100
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/vmdb/app.py", line 245, in run_steps_helper
    method(values, settings, state)
  File "/usr/lib/python3/dist-packages/vmdb/plugins/apt_plugin.py", line 48, in run
    self.install_packages(mount_point, ["eatmydata"], recommends, packages)
  File "/usr/lib/python3/dist-packages/vmdb/plugins/apt_plugin.py", line 66, in install_packages
    vmdb.runcmd_chroot(
  File "/usr/lib/python3/dist-packages/vmdb/runcmd.py", line 101, in runcmd_chroot
    return runcmd(full_argv, *argvs, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vmdb/runcmd.py", line 95, in runcmd
    raise RuncmdError("Program failed: {}".format(p.returncode))
vmdb.runcmd.RuncmdError: Program failed: 100
2024-06-19 11:31:31 ERROR RuncmdError('Program failed: 100')
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/vmdb/app.py", line 245, in run_steps_helper
    method(values, settings, state)
  File "/usr/lib/python3/dist-packages/vmdb/plugins/apt_plugin.py", line 48, in run
    self.install_packages(mount_point, ["eatmydata"], recommends, packages)
  File "/usr/lib/python3/dist-packages/vmdb/plugins/apt_plugin.py", line 66, in install_packages
    vmdb.runcmd_chroot(
  File "/usr/lib/python3/dist-packages/vmdb/runcmd.py", line 101, in runcmd_chroot
    return runcmd(full_argv, *argvs, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vmdb/runcmd.py", line 95, in runcmd
    raise RuncmdError("Program failed: {}".format(p.returncode))
vmdb.runcmd.RuncmdError: Program failed: 100

Agathe Porte (gagath)
Changed in autopkgtest (Ubuntu Bionic):
status: New → Won't Fix
Changed in autopkgtest (Ubuntu Focal):
status: New → Won't Fix
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.