Ubuntu image builds broken for powerpc on xenial

Bug #1830823 reported by Robert C Jennings
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
livecd-rootfs (Ubuntu)
Invalid
Undecided
Unassigned
Xenial
Fix Released
Undecided
Unassigned
snapd (Ubuntu)
Invalid
Undecided
Unassigned
Xenial
Fix Released
Undecided
Unassigned
ubuntu-image (Ubuntu)
Invalid
Undecided
Unassigned
Xenial
Won't Fix
Undecided
Unassigned

Bug Description

[Impact]

Currenty powerpc image builds are failing on xenial. The main reason is that snapd now provides a powerpc 'empty' dummy package (as the architecture is not supported) but still ships regular maintainer scripts that try to do operations on installed files (which are not present due to the empty package). This basically makes the dummy snapd powerpc package uninstallable. And since launchpad-buildd pulls in snapd by default, this breaks any powerpc image builds currently.

Also, besides that, it seems that livecd-rootfs was directly depending on snapd as well. To save ourselves trouble, let's make that dependency arch-specific.

[Test Case]

Build test images on powerpc, those should now succeed.

A quick sanity run of snapd on non-powerpc architectures should also be performed, making sure that the no-change rebuild for those did not regress.

[Regression Potential]

None. This is only an arch-specific dependency change in livecd-rootfs and maintainer-script changes in snapd. It is highly unlikely that any of this could have effect in anything other than powerpc (which is not supported anyway).

The no-change rebuild of snapd might, as any rebuild, potentially regress, but the risk is very very low as the previous snapd has been built and updated recently (so not too many archive changes).

[Original Description]

livecd-rootfs is used to build our Ubuntu images and it depends on ubuntu-image. With ubuntu-image 1.7 being published to xenial-updates the diff
shows that the versioned dependency on snapd was bumped to >= 2.38; which is not satisfiable on powerpc because snapd is not buildable on powerpc with gccgo (vs golang).

This affects xenial cloud image builds.

Original description:

This commit https://git.launchpad.net/livecd-rootfs/commit/debian/control?h=ubuntu/xenial&id=b8b2e343827adb9020d5b71f232c0361bd72685f added a depends on ubuntu-image but that package is not available on xenial for powerpc. So powerpc image builds are failing. :(

Revision history for this message
Robert C Jennings (rcj) wrote :

RUN: /usr/share/launchpad-buildd/bin/in-target buildlivefs --backend=lxd --series=xenial --arch=powerpc LIVEFSBUILD-167495 --project ubuntu-cpc --datestamp 20190523 --image-format ext4
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 livecd-rootfs : Depends: ubuntu-image but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Install failed

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

That commit has been in xenial since October and is not the proximate cause of livecd-rootfs being uninstallable on powerpc. The timeline (breaking on the 23rd) DOES align with ubuntu-image 1.7 being published to xenial-updates. The diff of that ubuntu-image shows that the versioned dependency on snapd is bumped to be >= 2.38; which is not satisfiable on powerpc because snapd is not buildable on powerpc with gccgo (vs golang).

I believe this will be fixed in the next upload of snapd, which will make snapd an empty package on powerpc instead of failing to build.

affects: livecd-rootfs (Ubuntu) → ubuntu-image (Ubuntu)
affects: ubuntu-image (Ubuntu) → snapd (Ubuntu)
tags: added: id-5cedf33f9ba7dd31c0288490
Robert C Jennings (rcj)
summary: - livecd-rootfs xenial powerpc arch builds broken
+ Ubuntu image builds broken for powerpc on xenial
description: updated
Revision history for this message
Michael Vogt (mvo) wrote :

We believe this will be fixed with https://github.com/snapcore/snapd/pull/6928 - and we can cherry pick into the 2.39.1 SRU

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

In the meantime, as per Steve's valid recommendation, I'll make the snapd build dependency for 1.7 in xenial optional for powerpc.

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

Since snaps are not supported on powerpc, it also doesn't make sense to have an ubuntu-image package that depends on snapd on this architecture. It is still potentially interesting to have ubuntu-image available on all archs for the 'ubuntu-image classic' use case, so in terms of overall direction I think it's better to have ubuntu-image drop its dep on snapd on powerpc and NOT have livecd-rootfs drop its dep on ubuntu-image on powerpc, in addition to having snapd available again on powerpc as a dummy package.

It is very unlikely that we will ever SRU back to xenial any support for actual ubuntu-image classic images on powerpc, but just in case this would future-proof it.

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

marking invalid for the devel series because powerpc has been dropped as an arch post-xenial.

Changed in snapd (Ubuntu):
status: New → Invalid
Changed in ubuntu-image (Ubuntu):
status: New → Invalid
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

...actually we can't really switch the ubuntu-image dependency (it's an arch: all package, duh). But we can get rid of the ubuntu-image dep in livecd-rootfs on powerpc.

Changed in livecd-rootfs (Ubuntu):
status: New → Invalid
Changed in ubuntu-image (Ubuntu Xenial):
status: New → Won't Fix
Changed in livecd-rootfs (Ubuntu Xenial):
status: New → In Progress
description: updated
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Robert, or anyone else affected,

Accepted livecd-rootfs into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/2.408.48 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 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 livecd-rootfs (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-xenial
Revision history for this message
Steve Langasek (vorlon) wrote :

autopkgtests pass, the only delta is to drop a dependency on one architecture, considering verified.

tags: added: verification-done verification-done-xenial
removed: verification-needed verification-needed-xenial
Revision history for this message
Steve Langasek (vorlon) wrote : Update Released

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

This bug was fixed in the package livecd-rootfs - 2.408.48

---------------
livecd-rootfs (2.408.48) xenial; urgency=medium

  * Do not depend on ubuntu-image on powerpc as it is not a supported platform
    for building ubuntu-core images (and we don't build classic preinstalled
    images on xenial). (LP: #1830823)

 -- Łukasz 'sil2100' Zemczak <email address hidden> Wed, 29 May 2019 18:50:31 +0200

Changed in livecd-rootfs (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

livecd-rootfs still doesn't work on powerpc, because now that we are not depending on ubuntu-image, python3-yaml is not pulled in as an indirect dependency, leading to runtime failures.

Will reupload a further fix.

Changed in livecd-rootfs (Ubuntu Xenial):
status: Fix Released → Triaged
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Robert, or anyone else affected,

Accepted livecd-rootfs into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/2.408.49 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 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 livecd-rootfs (Ubuntu Xenial):
status: Triaged → Fix Committed
tags: added: verification-needed verification-needed-xenial
removed: verification-done verification-done-xenial
Revision history for this message
Steve Langasek (vorlon) wrote :

livecd-rootfs autopkgtests again passing.

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

This bug was fixed in the package livecd-rootfs - 2.408.49

---------------
livecd-rootfs (2.408.49) xenial; urgency=medium

  * Add explicit dependency on python3-yaml, which is used in the code but
    was previously pulled in indirectly via ubuntu-image. LP: #1830823.

 -- Steve Langasek <email address hidden> Thu, 30 May 2019 14:20:30 -0700

Changed in livecd-rootfs (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Michael Vogt (mvo) wrote :

We fixed the build of snapd on powerpc now - we build an mostly empty package there. Its in https://launchpad.net/ubuntu/xenial/+queue?queue_state=1&queue_text=snapd right now.

Revision history for this message
David Krauser (davidkrauser) wrote :

We're still seeing powerpc builds failing on xenial: https://i430477153.restricted.launchpadlibrarian.net/430477153/buildlog_ubuntu_xenial_powerpc_powerpc_
cpc_BUILDING.txt.gz?token=cXQZLr4n6nn9LNfgRxL1Q5LX0zCzhS2z

Revision history for this message
David Krauser (davidkrauser) wrote :
Revision history for this message
David Krauser (davidkrauser) wrote :

The specific error:

Setting up snapd (2.39.2) ...
md5sum: /etc/apparmor.d/usr.lib.snapd.snap-confine: No such file or directory
chmod: cannot access '/var/lib/snapd/void': No such file or directory
dpkg: error processing package snapd (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of livecd-rootfs:
 livecd-rootfs depends on snapd; however:
  Package snapd is not configured yet.

dpkg: error processing package livecd-rootfs (--configure):

description: updated
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Robert, or anyone else affected,

Accepted livecd-rootfs into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/2.408.50 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 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 livecd-rootfs (Ubuntu Xenial):
status: Fix Released → Fix Committed
tags: added: verification-needed verification-needed-xenial
removed: verification-done verification-done-xenial
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

I have just been told by Rob that powerpc builds are still failing with the new livecd-rootfs as apparently some other package still pulls in snapd. I guess we might have to fix this in snapd then.

@mvo Could you take a look and see what's up with the new dummy snapd package for powerpc?

Revision history for this message
Robert C Jennings (rcj) wrote :

If I understand launchpad-buildd[1] correctly, snapd will be installed regardless of livecd-rootfs' dependencies. The fix needs to be in snapd for powerpc on xenial. I confirmed that with a -proposed build with livecd-rootfs 2.408.50 we will still try to install snapd and fail the build as before.

[1] https://bazaar.launchpad.net/~canonical-launchpad-branches/launchpad-buildd/trunk/view/head:/lpbuildd/target/build_livefs.py#L89

tags: added: verification-failed verification-failed-xenial
removed: verification-needed verification-needed-xenial
Revision history for this message
Robert C Jennings (rcj) wrote :

I've marked this as verification failed as the build is not fixed by this change. The livecd-rootfs change looks safe enough but does not address root cause and as such we can not complete a build to verify this change doesn't break things further; all we can say is that it doesn't address root cause.

tags: added: id-5d1282825c51ad5266a3441a
tags: added: id-5d1349856ceb393262a58653
Changed in snapd (Ubuntu Xenial):
status: New → In Progress
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

I have uploaded the cherry-pick of snapd (https://github.com/snapcore/snapd/pull/7038) to xenial. I would still like to get the livecd-rootfs change released along with snapd as the snapd dependency *should* be arch-specific anyway. There is no user-impact in getting livecd-rootfs released along with snapd (it's a package only used during builds).

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

Hello Robert, or anyone else affected,

Accepted snapd into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/snapd/2.39.2ubuntu0.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 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 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 snapd (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-xenial
removed: verification-failed verification-failed-xenial
Revision history for this message
Andy Whitcroft (apw) wrote :

Hello Robert, or anyone else affected,

Accepted snapd into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/snapd/2.39.2ubuntu0.2 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 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
Łukasz Zemczak (sil2100) wrote :

Ok, finally snapd built successfully for all arches.

@rcj could you try building xenial powerpc images and seeing if snapd still fails to install properly?

I'll ask cachio or someone else from the snapd team to do a quick sanity test of the snapd rebuilt binaries on other arches to make sure there's no regressions introduced through dependencies.

Revision history for this message
Robert C Jennings (rcj) wrote :

I have built using --proposed for powerpc and amd64 using the ubuntu-cpc project. I'm marking this as verification done.

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

Ok, snapd team also ran some sanity tests on the new xenial-proposed snapd and did not encounter any issues. Let me release this early.

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

This bug was fixed in the package snapd - 2.39.2ubuntu0.2

---------------
snapd (2.39.2ubuntu0.2) xenial; urgency=medium

  * Cherry-pick pull-request 7040 fixing build-time unit-tests that started
    failing recently.

snapd (2.39.2ubuntu0.1) xenial; urgency=medium

  * Cherry-pick pull-request 7038 to make sure maintainer scripts do nothing
    on powerpc (we only ship an empty package there). (LP: #1830823)

 -- Łukasz 'sil2100' Zemczak <email address hidden> Thu, 27 Jun 2019 11:58:39 +0200

Changed in snapd (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Reminder of SRU verification policy change

Thank you for taking the time to verify this stable release fix. We have noticed that you have used the verification-done tag for marking the bug as verified and would like to point out that due to a recent change in SRU bug verification policy fixes now have to be marked with per-release tags (i.e. verification-done-$RELEASE). Please remove the verification-done tag and add one for the release you have tested the package in. Thank you!

https://wiki.ubuntu.com/StableReleaseUpdates#Verification

Robert C Jennings (rcj)
tags: added: verification-done-xenial
removed: verification-needed-done
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 2.408.50

---------------
livecd-rootfs (2.408.50) xenial; urgency=medium

  * Actually, do not depend on snapd on powerpc as well. Snaps are not
    supported on this platform at all. (LP: #1830823)

 -- Łukasz 'sil2100' Zemczak <email address hidden> Tue, 25 Jun 2019 22:54:10 +0200

Changed in livecd-rootfs (Ubuntu Xenial):
status: Fix Committed → 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.