OOPS when requesting snap builds for 0ad

Bug #1983654 reported by Olivier Tilloy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Ioana Lasc
loggerhead
Fix Released
High
Ioana Lasc

Bug Description

I use https://launchpad.net/~osomon/+snap/0ad to build the snaps (i386 and amd64) published at https://snapcraft.io/0ad.
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://oops.canonical.com/?oopsid=OOPS-c1b5e389d25f17ad0ec1c22178084552.

Traceback

  KeyError: 'file_id'

    Traceback (most recent call last):
  Module lazr.jobrunner.jobrunner, line 194, in runJobHandleError
    self.runJob(job, fallback)
  Module lp.services.job.runner, line 383, in runJob
    super().runJob(IRunnableJob(job), fallback)
  Module lazr.jobrunner.jobrunner, line 162, in runJob
    job.run()
  Module lp.snappy.model.snapjob, line 379, in run
    logger=log,
  Module lp.snappy.model.snap, line 968, in requestBuildsFromJob
    getUtility(ISnapSet).getSnapcraftYaml(self)
  Module lp.snappy.model.snap, line 1880, in getSnapcraftYaml
    blob = context.getBlob(path)
  Module lp.code.model.branch, line 944, in getBlob
    for entry in inventory["filelist"]
  Module lp.code.model.branch, line 944, in <dictcomp>
    for entry in inventory["filelist"]
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

Ioana Lasc (ilasc)
Changed in launchpad:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Olivier Tilloy (osomon) wrote :

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.

Revision history for this message
Ioana Lasc (ilasc) wrote :

Thanks for the update Olivier!
This is an issue we are currently addressing, it will require Loggerhead and Launchpad changes and once done it will enable successful build requests for bzr repositories again.

Changed in launchpad:
assignee: nobody → Ioana Lasc (ilasc)
Revision history for this message
Ioana Lasc (ilasc) wrote :

The loggerhead changes now landed: https://code.launchpad.net/~ilasc/loggerhead/fix-download-links/+merge/429230

Launchpad changes are currently in progress.

Changed in launchpad:
status: Triaged → In Progress
Colin Watson (cjwatson)
Changed in loggerhead:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Ioana Lasc (ilasc)
Colin Watson (cjwatson)
Changed in launchpad:
status: In Progress → Fix Committed
Colin Watson (cjwatson)
Changed in loggerhead:
status: Fix Committed → Fix Released
Changed in launchpad:
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.