UC22 armhf Raspi images are failing to build

Bug #1969979 reported by William Wilson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-image (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

 * With the current version of snapd vendored in ubuntu-image,
   UC22 armhf+raspi image builds fail with the following error:

```
   mv: cannot stat '/tmp/ubuntu-image-824a59fe-574a-4d00-8669-f16d22bbe23e/unpack/system-seed/systems/20220422/kernel/dtbs/broadcom/*': No such file or directory
```

[Test Plan]

 * Download the Raspberry Pi UC22 armhf edge model assertion

 * Run the command: `ubuntu-image snap <path/to/model/assertion>`

 * Observe the error listed above

 * Install ubuntu-image from jammy-proposed

 * Run the same `ubuntu-image` command again

 * Observe an image is successfully created

[Where problems could occur]

 * This will be solved by vendoring a newer version of snapd.
   Any undetected bugs in snapd could cause regressions here.

Changed in ubuntu-image (Ubuntu):
milestone: none → jammy-updates
description: updated
description: updated
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello William, or anyone else affected,

Accepted ubuntu-image into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntu-image/2.2+22.04ubuntu3 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-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. 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 ubuntu-image (Ubuntu Jammy):
status: New → Fix Committed
tags: added: verification-needed verification-needed-jammy
Revision history for this message
William Wilson (jawn-smith) wrote :

The verification has passed for jammy:

```
jawn-smith@desktop:~/utils/raspberry-pi-scripts$ apt-cache policy ubuntu-image
ubuntu-image:
  Installed: 2.2+22.04ubuntu2
  Candidate: 2.2+22.04ubuntu3
  Version table:
     2.2+22.04ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages
 *** 2.2+22.04ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
jawn-smith@desktop:~/utils/raspberry-pi-scripts$ ubuntu-image snap ubuntu-core-22-armhf+raspi.model-assertion
WARNING: proceeding to download snaps ignoring validations, this default will change in the future. For now use --validation=enforce for validations to be taken into account, pass instead --validation=ignore to preserve current behavior going forward
Fetching snapd
Fetching pi-kernel
Fetching core22
Fetching pi
Error: Error preparing image: cannot extract recovery system kernel assets: cannot move RPi dtbs to /tmp/ubuntu-image-42adc97c-e0a0-49db-aea6-641a7b06a2a3/unpack/system-seed/systems/20220425/kernel:
mv: cannot stat '/tmp/ubuntu-image-42adc97c-e0a0-49db-aea6-641a7b06a2a3/unpack/system-seed/systems/20220425/kernel/dtbs/broadcom/*': No such file or directory

jawn-smith@desktop:~/utils/raspberry-pi-scripts$ sudo apt install ubuntu-image
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-gnomebluetooth-1.0 libicu67 libpython3.9 libpython3.9-minimal libpython3.9-stdlib
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  ubuntu-image
1 upgraded, 0 newly installed, 0 to remove and 44 not upgraded.
Need to get 4,286 kB of archives.
After this operation, 69.6 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu jammy-proposed/main amd64 ubuntu-image amd64 2.2+22.04ubuntu3 [4,286 kB]
Fetched 4,286 kB in 1s (7,926 kB/s)
The system does not support apt-btrfs-snapshot
Requesting to save current system state
Successfully saved as "autozsys_e186h6"
(Reading database ... 547206 files and directories currently installed.)
Preparing to unpack .../ubuntu-image_2.2+22.04ubuntu3_amd64.deb ...
Unpacking ubuntu-image (2.2+22.04ubuntu3) over (2.2+22.04ubuntu2) ...
Setting up ubuntu-image (2.2+22.04ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...
ZSys is adding automatic system snapshot to GRUB menu
jawn-smith@desktop:~/utils/raspberry-pi-scripts$ ubuntu-image snap ubuntu-core-22-armhf+raspi.model-assertion
WARNING: proceeding to download snaps ignoring validations, this default will change in the future. For now use --validation=enforce for validations to be taken into account, pass instead --validation=ignore to preserve current behavior going forward
Fetching snapd
Fetching pi-kernel
Fetching core22
Fetching pi
jawn-smith@desktop:~/utils/raspberry-pi-scripts$ echo $?
0
jawn-smith@desktop:~/utils/raspberry-pi-scripts$ ls pi.img
pi.img
```

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

This bug was fixed in the package ubuntu-image - 2.2+22.04ubuntu3

---------------
ubuntu-image (2.2+22.04ubuntu3) jammy; urgency=medium

  [ William 'jawn-smith' Wilson ]
  * Add lintian overrides for test files

  [ Maciej Borzecki ]
  * Pull in a newer snapd version and load snaps from all modes (LP: #1969979)

 -- William 'jawn-smith' Wilson <email address hidden> Wed, 13 Apr 2022 16:28:11 -0500

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

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.