OOPS when requesting snap builds for 0ad
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Ioana Lasc | ||
loggerhead |
Fix Released
|
High
|
Ioana Lasc |
Bug Description
I use https:/
Today after I got a notification that the snap contains stage packages affected by a CVE, I requested a rebuild, and the build requests are consistently failing with the "('file_id')" message.
One of the associated OOPSes is https:/
Traceback
KeyError: 'file_id'
Traceback (most recent call last):
Module lazr.jobrunner.
self.
Module lp.services.
super(
Module lazr.jobrunner.
job.run()
Module lp.snappy.
logger=log,
Module lp.snappy.
getUtility(
Module lp.snappy.
blob = context.
Module lp.code.
for entry in inventory[
Module lp.code.
for entry in inventory[
KeyError: 'file_id'
Request Variables top
<oops-message-4293>: {'snap_name': '0ad', 'job_type': 'Request builds', 'job_id': 73087002, 'snap_owner_name': 'osomon'}
Related branches
- Colin Watson (community): Approve
- Jelmer Vernooij: Approve
-
Diff: 101 lines (+45/-5)5 files modifiedloggerhead/controllers/download_ui.py (+1/-1)
loggerhead/templates/inventory.pt (+2/-2)
loggerhead/tests/fixtures.py (+2/-2)
loggerhead/tests/test_controllers.py (+9/-0)
loggerhead/tests/test_inventory_ui.py (+31/-0)
- Colin Watson (community): Approve
-
Diff: 819 lines (+59/-420)10 files modifiedlib/lp/code/errors.py (+1/-8)
lib/lp/code/interfaces/branchhosting.py (+2/-18)
lib/lp/code/model/branch.py (+1/-62)
lib/lp/code/model/branchhosting.py (+4/-29)
lib/lp/code/model/tests/test_branch.py (+6/-149)
lib/lp/code/model/tests/test_branchhosting.py (+21/-77)
lib/lp/code/tests/helpers.py (+0/-14)
lib/lp/services/webapp/publisher.py (+1/-6)
lib/lp/snappy/browser/tests/test_snap.py (+2/-7)
lib/lp/snappy/tests/test_snap.py (+21/-50)
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in loggerhead: | |
status: | New → Fix Committed |
importance: | Undecided → High |
assignee: | nobody → Ioana Lasc (ilasc) |
Changed in launchpad: | |
status: | In Progress → Fix Committed |
Changed in loggerhead: | |
status: | Fix Committed → Fix Released |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
I have worked around the problem by exporting the bzr branch this snap was built from (lp:~osomon/+junk/0ad-snap) into a git repository (lp:~osomon/0ad/+git/0ad/+ref/stable), and created a new snap recipe that builds from that git repository (https:/ /launchpad. net/~osomon/ 0ad/+snap/ 0ad-snap).
This was a challenge on its own as git fast-import doesn't like bzr's file renaming capabilities, apparently.
I'll keep the bzr branch around, as well as the snap recipe that's linked to it, in case it is useful for the Launchpad team to investigate the problem. I suspect this might be affecting other snaps built out of bzr branches, not just that one snap.