Failure to build snap that runs pull-lp-source
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned | ||
2.7 |
Fix Released
|
Critical
|
Adam Collard | ||
launchpad-buildd |
Invalid
|
Critical
|
Unassigned | ||
ubuntu-dev-tools (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Incomplete
|
Undecided
|
Michael Hudson-Doyle |
Bug Description
The MAAS snap, as of 2.7 incorporates postgresql which it compiles at snap build time from the PostgreSQL source package in Xenial.
Whilst trying to release MAAS 2.7.2 RC1, I am trying to build the snap (as always) using LP builds. The package definition is at https:/
Repeated attempts to build the snap have failed recently across all architectures (2020-07-14 multiple times and 2020-07-15). The builds fall over when running `pull-lp-source postgresql-9.5 xenial` - a snippet of the logs https:/
Note that this isn't 100% reliably failing, since we did have a successful amd64 build - https:/
The snapcraft.yaml definition has not changed in this area, and is not a new behaviour (albeit that in 2.9 MAAS, we have removed the postgresql part). For ease of review - https:/
Related branches
- Dougal Matthews (community): Approve
- MAAS Lander: Approve
-
Diff: 24 lines (+5/-3)1 file modifiedsnap/snapcraft.yaml (+5/-3)
affects: | launchpad → launchpad-buildd |
Changed in launchpad-buildd: | |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in maas: | |
status: | New → Invalid |
tags: | added: fr-931 |
I don't think this is as architecture- independent as initially believed. The single amd64 failure looks like some kind of transient network breakage, while the non-amd64 failures are different and 100% consistent: judging from the traceback, pull-lp-source is successfully contacting launchpad.net, getting a redirect response, and then timing out. It makes sense that this would differ between x86 and non-x86 architectures due to the different network environments involved.
I'm suspicious that it appears that pull-lp-source isn't using the proxy, because it appears to get a redirect response without launchpad-buildd having logged the proxied request as it would normally do. By diffing build logs, I notice that successful and failing builds are using different versions of ubuntu-dev-tools (0.164 vs. 0.175~18.04.1) due to an SRU that happened in the meantime. I haven't yet managed to find an obvious cause in the diff, but that remains a possibility.