autopkgtest is failing on jammy with "no space left on device"

Bug #1958904 reported by Andrea Righi
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Fix Released
Critical
Dimitri John Ledkov
Bionic
Invalid
High
Kleber Sacilotto de Souza
Focal
Fix Released
High
Kleber Sacilotto de Souza
Impish
Fix Released
High
Kleber Sacilotto de Souza

Bug Description

[Impact]
In debian/tests/prep-image we create an image file of 1GB, but recent jammy/focal cloud images are (barely) bigger than that, for example the current one uncompressed is 1001MB...

Example of a test failure:
https://autopkgtest.ubuntu.com/results/autopkgtest-jammy/jammy/amd64/i/initramfs-tools/20220126_160323_8bcd1@/log.gz

Maybe we should consider to create image files of 2GB or even bigger, considering that we are only going to allocate the space that is actually needed, because we create the file using truncate.

[Test Plan]
Run autotestpkg tests from initramfs-tools package. The "net" test is the one that depends on the image created by 'prep-image'. The testcase should complete successfully without the temporary image running out of space.

[Where problems could occur]
The creation of a larger image for the tests could fail if the filesystem of the test system is low on disk space. However, as mentioned before, as the image file is created using 'truncate', only the necessary space needed to uncompress the cloudimg will be used on the filesystem. Apart from that, we assume that 2GB of free space should be available on every test system used for Ubuntu autopkgtest.

Revision history for this message
Andrea Righi (arighi) wrote :

debdiff in attach can help to prevent this problem from happening (bumping up image file to 2GB).

Changed in initramfs-tools (Ubuntu):
status: New → Fix Committed
importance: Undecided → Critical
assignee: nobody → Dimitri John Ledkov (xnox)
tags: added: patch
Revision history for this message
Brian Murray (brian-murray) wrote :

It looks like this also needs fixing in Focal see bug 1958690, which I've marked as a duplicate of this.

Changed in initramfs-tools (Ubuntu Focal):
status: New → Triaged
importance: Undecided → High
Changed in initramfs-tools (Ubuntu Bionic):
status: New → Triaged
importance: Undecided → High
Changed in initramfs-tools (Ubuntu Impish):
status: New → Triaged
importance: Undecided → High
Changed in initramfs-tools (Ubuntu Bionic):
assignee: nobody → Kleber Sacilotto de Souza (kleber-souza)
Changed in initramfs-tools (Ubuntu Focal):
assignee: nobody → Kleber Sacilotto de Souza (kleber-souza)
Changed in initramfs-tools (Ubuntu Impish):
assignee: nobody → Kleber Sacilotto de Souza (kleber-souza)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package initramfs-tools - 0.140ubuntu11

---------------
initramfs-tools (0.140ubuntu11) jammy; urgency=medium

  * Increase image file to 2GB in autopkgtest (LP: #1958904)

 -- Andrea Righi <email address hidden> Tue, 25 Jan 2022 15:03:39 +0000

Changed in initramfs-tools (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :

initramgs-tools in bionic doesn't have debian/tests/.

Changed in initramfs-tools (Ubuntu Bionic):
status: Triaged → Invalid
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :

debdiff for Impish (0.140ubuntu6.1). Compile-tested in my ppa and locally tested with autopkgtest.

description: updated
description: updated
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :

debdiff for Focal (0.136ubuntu6.7). Compile-tested in my ppa and locally tested with autopkgtest.

Changed in initramfs-tools (Ubuntu Focal):
status: Triaged → In Progress
Changed in initramfs-tools (Ubuntu Impish):
status: Triaged → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote :

Given that this is just a test fix I've tagged the bug block-proposed so that if the new package only contains this change it won't be pushed to -updates.

tags: added: block-proposed-focal block-proposed-impish
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

@brian-murray

Unfortunately, it would mean that kernel-teams adt-matrix would still need to be hinted, as it does strict adt test runs against each kernel flavour, against packages in updates only, and enforces that every kernel flavour is tested. However, I also think that this adt test may not be relevant, given that the kernel used in the qemu image is not actually the requested kernel flavour under test from adt-matrix point of view. I will sponsor these uploads, but i guess kernel team will still need to apply adt-matrix hints to make things nice.

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

uploaded into unapproved queue

Revision history for this message
Steve Langasek (vorlon) wrote :

Historically, we have sought to avoid publishing to -updates of SRUs that only fix autopkgtests because fixing the autopkgtests does not change the behavior of the package in a way that benefits the end user and justifies the download cost.

However, between the fact that this is initramfs-tools, and the recent changes to the behavior of proposed-migration, I think it's important that an exception be made here. The initramfs-tools package is critical to how our systems boot, and we cannot afford to have regressions in test coverage of this package. If an update to the Linux kernel has the consequence that the baseline (i.e. in -updates) for initramfs-tools has regressed, this means that any future packages which trigger initramfs-tools autopkgtests will NOT have their SRUs blocked by test failures, whether or not they have introduced further regressions in initramfs-tools.

Unless we land this package in -updates, ensuring that we have a green baseline.

tags: removed: block-proposed-focal block-proposed-impish
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Andrea, or anyone else affected,

Accepted initramfs-tools into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/initramfs-tools/0.136ubuntu6.7 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-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. 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 initramfs-tools (Ubuntu Focal):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-focal
Changed in initramfs-tools (Ubuntu Impish):
status: In Progress → Fix Committed
tags: added: verification-needed-impish
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Andrea, or anyone else affected,

Accepted initramfs-tools into impish-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/initramfs-tools/0.140ubuntu6.1 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-impish to verification-done-impish. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-impish. 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.

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

I wonder if I should have included feature backports to support compressed kernel modules & coompressed firmware files https://launchpad.net/ubuntu/+source/initramfs-tools/0.140ubuntu8

This would be actually useful, and would allow us to enable compressed kernel modules for jammy and hwe-5.15 when it lands in focal.

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

Autopkgtests completed successfully on both impish and focal.

tags: added: verification-done verification-done-focal verification-done-impish
removed: verification-needed verification-needed-focal verification-needed-impish
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package initramfs-tools - 0.140ubuntu6.1

---------------
initramfs-tools (0.140ubuntu6.1) impish; urgency=medium

  * Increase image file to 2GB in autopkgtest (LP: #1958904)

 -- Kleber Sacilotto de Souza <email address hidden> Wed, 26 Jan 2022 17:03:17 +0100

Changed in initramfs-tools (Ubuntu Impish):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for initramfs-tools 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
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package initramfs-tools - 0.136ubuntu6.7

---------------
initramfs-tools (0.136ubuntu6.7) focal; urgency=medium

  * Increase image file to 2GB in autopkgtest (LP: #1958904)

 -- Kleber Sacilotto de Souza <email address hidden> Wed, 26 Jan 2022 18:11:24 +0100

Changed in initramfs-tools (Ubuntu Focal):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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