SRU 1.4 tracking bug

Bug #1786229 reported by Łukasz Zemczak
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Image
Fix Released
High
Łukasz Zemczak
ubuntu-image (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Fix Released
Undecided
Unassigned
Bionic
Fix Released
Undecided
Unassigned

Bug Description

New SRU tracking bug (with exception) for ubuntu-image 1.4 in Bionic and Xenial.

See https://wiki.ubuntu.com/UbuntuImageUpdates

[Impact]

ubuntu-image 1.4 fixes some bugs and pay down some technical debt. It includes a new cross-building support for classic images, fixes some of the autopkgtest issues and adds support for new gadget.yaml stanza.

[Test Case]

Create an image using the official amd64 model assertion. Ensure that the resulting image boots to 'press enter to configure' phase. Create an ubuntu-cpc project classic image using a modified amd64 gadget tree [1] and make sure it boots.

[Regression Potential]

* ubuntu-image may not produce a bootable image

[1] For example: https://github.com/sil2100/pc-amd64-gadget

description: updated
Changed in ubuntu-image (Ubuntu):
status: New → Fix Committed
Changed in ubuntu-image (Ubuntu Xenial):
status: New → Fix Committed
Changed in ubuntu-image (Ubuntu Bionic):
status: New → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

I took a look at this today but noticed that 1.4 isn't in cosmic yet.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Łukasz, or anyone else affected,

Accepted ubuntu-image into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntu-image/1.4+18.04ubuntu2 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 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!

Changed in ubuntu-image (Ubuntu):
status: Fix Committed → Fix Released
tags: added: verification-needed verification-needed-bionic
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Łukasz, or anyone else affected,

Accepted ubuntu-image into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntu-image/1.4+16.04ubuntu2 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 and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. 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!

tags: added: verification-needed-xenial
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Upgraded ubuntu-image to version 1.4+18.04ubuntu2 from bionic-proposed, created a classic and snap-based image:

$ sudo ubuntu-image classic -s bionic -p ubuntu-cpc -w work/ -O out/ --cloud-init=user-data pc-amd64-gadget/prime/
 -> Resulted in a bootable image in out/pc.img

$ ubuntu-image snap -O out2/ pc-amd64.assertion
 -> Resulted in a bootable image in out2/pc.img

I also did a quick test to make sure the cross-compilation works and ran a build for --arch=armhf - live-build seemed to pick up the right packages. Also, after removing qemu-user-static, ubuntu-image exits with the expected error:

ERROR:ubuntu-image:Required dependency qemu-arm-static seems to be missing. Use UBUNTU_IMAGE_QEMU_USER_STATIC_PATH in case of non-standard archs or custom paths.

Verification passed.

tags: added: verification-done-bionic
removed: verification-needed-bionic
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Installed ubuntu-image version 1.4+16.04ubuntu2 from xenial-proposed in a xenial schroot, created a classic and snap-based image:

$ sudo ubuntu-image classic -s xenial -p ubuntu-cpc -w work/ -O out/ /scratch/prime/
 -> Resulted in a bootable image in out/pc.img

$ ubuntu-image snap -d -O out2/ /scratch/pc-amd64.assertion
 -> Resulted in a bootable image in out2/pc.img

Since those two test-cases are the main requirement for verification of the bug, considering verification passed.

tags: added: verification-done-xenial
removed: verification-needed-xenial
Revision history for this message
Brian Murray (brian-murray) wrote :

There's a test failure on amd64 for ubuntu-image in xenial. What's going on there?

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

This bug was fixed in the package ubuntu-image - 1.4+18.04ubuntu2

---------------
ubuntu-image (1.4+18.04ubuntu2) bionic; urgency=medium

  * Demote the qemu-user-static dependency to Suggests, modify the code to
    gracefully handle the lack of qemu binaries for cross-compilation.
    (LP:1788177)
  * Add missing information about UBUNTU_IMAGE_QEMU_USER_STATIC_PATH to the
    manpage.
  * SRU tracking number LP: #1786229

ubuntu-image (1.4+18.04ubuntu1) bionic; urgency=medium

  * Add support for classic cross-compilation, add qemu-user-static as a
    dependency. (LP:1772061)
  * Work-around the API rate limit exceeded failures from github in the
    haschangelog test case by re-writing it not to use python3-github anymore
    and instead check for the PR trivial label manually. (LP:1690081)
  * Work-around Permission denied errors printing to stderr whenever parted is
    imported, causing some of our basic autopkgtests failing. (LP:1775085)
  * Fix some coverage and autopkgtest failures per changes in the environment.
    Switch to using deb-packaged voluptuous. (LP:1782313)
  * Add the new connections: stanza to the gadget.yaml parser. (LP:1780217)
  * SRU tracking number LP: #1786229

 -- Łukasz 'sil2100' Zemczak <email address hidden> Tue, 21 Aug 2018 15:25:59 +0200

Changed in ubuntu-image (Ubuntu Bionic):
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 ubuntu-image has completed successfully and the package has now been 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
Łukasz Zemczak (sil2100) wrote :

Hey Brian! As mentioned on IRC, the amd64 ubuntu-image boot test failure is something that's been around but started popping up more frequently recently. The test was generally flaky but now it got worse. If you check the recent failures for this arch [1], you'll see that it also failed with the old ubuntu-image 1.3 version as well (for snapcraft). In theory it should pass after a few runs, but it's failing more than passing recently, so one/two re-runs doesn't even cut it.

Anyway, it doesn't seem to be related to u-i 1.4. I'll fill in a bug to investigate what changed in the world that the machine takes longer to appear.

[1] http://autopkgtest.ubuntu.com/packages/u/ubuntu-image/xenial/amd64

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

It passed after another (third) re-run. Anyway, it's worth looking into why it's failing more frequently nowadays.

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

This bug was fixed in the package ubuntu-image - 1.4+16.04ubuntu2

---------------
ubuntu-image (1.4+16.04ubuntu2) xenial; urgency=medium

  * Demote the qemu-user-static dependency to Suggests, modify the code to
    gracefully handle the lack of qemu binaries for cross-compilation.
    (LP:1788177)
  * Add missing information about UBUNTU_IMAGE_QEMU_USER_STATIC_PATH to the
    manpage.
  * SRU tracking number LP: #1786229

ubuntu-image (1.4+16.04ubuntu1) xenial; urgency=medium

  * Add support for classic cross-compilation, add qemu-user-static as a
    dependency. (LP:1772061)
  * Work-around the API rate limit exceeded failures from github in the
    haschangelog test case by re-writing it not to use python3-github anymore
    and instead check for the PR trivial label manually. (LP:1690081)
  * Work-around Permission denied errors printing to stderr whenever parted is
    imported, causing some of our basic autopkgtests failing. (LP:1775085)
  * Fix some coverage and autopkgtest failures per changes in the environment.
    Switch to using deb-packaged voluptuous. (LP:1782313)
  * Add the new connections: stanza to the gadget.yaml parser. (LP:1780217)
  * SRU tracking number LP: #1786229

 -- Łukasz 'sil2100' Zemczak <email address hidden> Tue, 21 Aug 2018 15:25:59 +0200

Changed in ubuntu-image (Ubuntu Xenial):
status: Fix Committed → Fix Released
Changed in ubuntu-image:
status: In Progress → 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.