Initializing a distroseries that doesn't use the parent's archindep arch will fail

Bug #869221 reported by Julian Edwards
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Raphaël Badin

Bug Description

Traceback (most recent call last):
  File "/srv/launchpad.net/production/launchpad-rev-14085.1/lib/lp/services/job/runner.py", line 217, in runJob
    job.run()
  File "/srv/launchpad.net/production/launchpad-rev-14085.1/lib/lp/soyuz/model/initializedistroseriesjob.py", line 198, in run
    ids.initialize()
  File "/srv/launchpad.net/production/launchpad-rev-14085.1/lib/lp/soyuz/scripts/initialize_distroseries.py", line 243, in initialize
    self._copy_architectures()
  File "/srv/launchpad.net/production/launchpad-rev-14085.1/lib/lp/soyuz/scripts/initialize_distroseries.py", line 354, in _copy_architectures
    self.derivation_parents[0].nominatedarchindep.architecturetag]
  File "/srv/launchpad.net/production/launchpad-rev-14085.1/lib/lp/registry/model/distroseries.py", line 350, in __getitem__
    return self.getDistroArchSeries(archtag)
  File "/srv/launchpad.net/production/launchpad-rev-14085.1/lib/lp/registry/model/distroseries.py", line 364, in getDistroArchSeries
    archtag, self.distribution.name, self.name))
NotFoundError: u'Unknown architecture i386 for ubuntu-leb oneiric'

We need to force the user to specify a different architecture if the parents archindep arch is not being copied.

Related branches

Changed in launchpad:
status: New → Triaged
importance: Undecided → Critical
tags: added: derivation
Raphaël Badin (rvb)
Changed in launchpad:
assignee: nobody → Raphaël Victor Badin (rvb)
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Just tried to create a derived series by selecting just ARM and I got:
"The distroseries has no architectures selected to build architecture independent binaries."

So it seems that the fix is in place at least. In my case I guess the only way would be to also require the series to be built with i386 and armel.

Revision history for this message
Raphaël Badin (rvb) wrote :

A fifth branch is coming up to allow you to force the architecture used for arch indep packages. Right now, it's picked up from the parents'.

Revision history for this message
Julian Edwards (julian-edwards) wrote : Re: [Bug 869221] Re: Initializing a distroseries that doesn't use the parent's archindep arch will fail

On Monday 17 October 2011 01:42:57 you wrote:
> Just tried to create a derived series by selecting just ARM and I got:
> "The distroseries has no architectures selected to build architecture
> independent binaries."
>
> So it seems that the fix is in place at least. In my case I guess the
> only way would be to also require the series to be built with i386 and
> armel.

The fix is not completely in place yet, please don't initialise. Also, you
may have noticed that it failed because it went over the 4 hour transaction
limit. I think this is because you selected no packagesets and we've not
catered for that scenario performance-wise. I'll talk to you about this when
you are online.

Raphaël Badin (rvb)
tags: removed: qa-ok
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Raphaël Badin (rvb)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
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.