Canonical repos with Suite!=Codename cannot be mirrored

Bug #1174797 reported by Dave Walker
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
debmirror (Debian)
Fix Released
Unknown
debmirror (Ubuntu)
Fix Released
Medium
David Medberry
Precise
Fix Released
Medium
David Medberry
Quantal
Fix Released
Medium
Unassigned
Raring
Fix Released
Medium
Unassigned
Saucy
Fix Released
Medium
David Medberry

Bug Description

Imported from Debian bug http://bugs.debian.org/702319:

Package: debmirror
Version: 1:2.14

In sub "name_release" Release files with "Origin: Canonical"
should be treated like those with "Origin: Ubuntu". Otherwise
mirroring of some Canonical repos is not possible.
Prominent example:
ubuntu-cloud.archive.canonical.com with dist=precise-updates/folsom

Would be glad, if this were fixed!

Thanks
Fabian

Revision history for this message
David Medberry (med) wrote :

Easiest fix is to debmirror itself and add another special case per debian bug.

Dave Walker (davewalker)
Changed in debmirror (Ubuntu Saucy):
assignee: nobody → David Medberry (med)
Changed in debmirror (Ubuntu Precise):
assignee: nobody → David Medberry (med)
Changed in debmirror (Ubuntu Saucy):
status: New → Triaged
Changed in debmirror (Ubuntu Precise):
status: New → Triaged
importance: Undecided → Medium
Changed in debmirror (Ubuntu Saucy):
importance: Undecided → Medium
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "debdiff for debmirror" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
David Medberry (med) wrote :
Revision history for this message
David Medberry (med) wrote :

Would also like to see this SRUd.

Revision history for this message
David Medberry (med) wrote :

Added a more complete description in the debian/changelog, Thanks Daviey.

 * Resolve issue of not being able to mirror apt archives with the Release
   file set as "Origin: Canonical", by adding additional special case.
   Patch courtesy of Tal Danzig. (LP: #1174797)

Revision history for this message
David Medberry (med) wrote :
Revision history for this message
David Medberry (med) wrote :

Precise SRU

[Impact]

This debmirror defect prevents users of stable releases from mirroring certain ubuntu archives to minimize their network usage. In particular, it forces users of clouds to REPEATEDLY exit the cloud at network expense to archive ubuntu-cloud.archive.canonical.com (the repository used to put newer versions of openstack on precise.)

The upload simply adds a special case for "Origin:Canonical" ubuntu archives to be treated in the same way as "Origin:Ubuntu" archives and the rest of the rules/logic remains the same.

[Test Case]

 * Reproduce:
 debmirror --debug --rsync-extra=none --host=ubuntu-cloud.archive.canonical.com --method=http --dist=precise-updates/folsom --section=main --arch=amd64,i386 --nosource --no-check-gpg DIRNAME

In the error message, a tell-tale sign of the bug is a recursive "folsom"

[Regression Potential]

 * discussion of how regressions are most likely to manifest as a result of this change.
I don't foresee a regression unless we create NEW archives under a new Origin: ThereBeDragons at which point we may end up in the same situation. The folks involved with the Origin naming are subscribed to this bug. It seems unlikely this will recur.

[Other Info]

 * Tested against the Origin:Canonical repository (works), tested against Origin: Ubuntu (didn't break), tested against Origin: Debian (didn't break)

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

This bug was fixed in the package debmirror - 1:2.14ubuntu2

---------------
debmirror (1:2.14ubuntu2) saucy; urgency=low

  * origin-canonical.patch: Resolve issue of not being able to mirror apt
    archives with the Release file set as "Origin: Canonical", by adding
    additional special case. Patch courtesy of Tal Danzig. (LP: #1174797)
 -- David Medberry <email address hidden> Tue, 30 Apr 2013 15:55:53 +0000

Changed in debmirror (Ubuntu Saucy):
status: Triaged → Fix Released
Dave Walker (davewalker)
Changed in debmirror (Ubuntu Quantal):
status: New → Triaged
Changed in debmirror (Ubuntu Raring):
status: New → Triaged
Changed in debmirror (Ubuntu Quantal):
importance: Undecided → Medium
Changed in debmirror (Ubuntu Raring):
importance: Undecided → Medium
Changed in debmirror (Debian):
importance: Undecided → Unknown
Revision history for this message
Scott Kitterman (kitterman) wrote : Please test proposed package

Hello Dave, or anyone else affected,

Accepted into raring-proposed. The package will build now and be available in a few hours in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation 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 to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in debmirror (Ubuntu Raring):
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
David Medberry (med) wrote :

Verified on raring by enabling -proposed. Verified with:
ii debmirror 1:2.14ubuntu1.2 all Debian partial mirror script, with ftp and package pool support

and verified against
ubuntu-cloud.archive.canonical.com

and

us.archive.ubuntu.com

tags: added: verification-done
removed: verification-needed
Changed in debmirror (Debian):
status: New → Fix Released
Revision history for this message
Adam Conrad (adconrad) wrote : Update Released

The verification of this Stable Release Update 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 regresssions.

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

This bug was fixed in the package debmirror - 1:2.14ubuntu1.2

---------------
debmirror (1:2.14ubuntu1.2) raring; urgency=low

  * origin-canonical.patch: Resolve issue of not being able to mirror apt
    archives with the Release file set as "Origin: Canonical", by adding
    additional special case. Patch courtesy of Tal Danzig. (LP: #1174797)
 -- David Medberry <email address hidden> Tue, 30 Apr 2013 15:55:53 +0000

Changed in debmirror (Ubuntu Raring):
status: Fix Committed → Fix Released
Revision history for this message
Adam Conrad (adconrad) wrote : Please test proposed package

Hello Dave, or anyone else affected,

Accepted debmirror into quantal-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/debmirror/1:2.14ubuntu1.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 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 to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in debmirror (Ubuntu Quantal):
status: Triaged → Fix Committed
tags: removed: verification-done
tags: added: verification-needed
Changed in debmirror (Ubuntu Precise):
status: Triaged → Fix Committed
Revision history for this message
Adam Conrad (adconrad) wrote :

Hello Dave, or anyone else affected,

Accepted debmirror into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/debmirror/1:2.10ubuntu1.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 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 to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

David Medberry (med)
tags: added: verification-done
removed: verification-needed
Revision history for this message
David Medberry (med) wrote :

Verified both precise-proposed and quantal-proposed.

Precise:
ii debmirror 1:2.10ubuntu1.1 Debian partial mirror script, with ftp and package pool support

Quantal:
ii debmirror 1:2.14ubuntu1.1 Debian partial mirror script, with ftp and package pool support

verifed by pulling:
debmirror --debug --rsync-extra=none --host=ubuntu-cloud.archive.canonical.com --method=http --dist=precise-updates/folsom --section=main --arch=amd64,i386 --nosource --no-check-gpg DIRNAME
(with broken package which didn't work and then adding -proposed and pulling with fixed package)
debmirror --debug --rsync-extra=none --host=ubuntu-cloud.archive.canonical.com --method=http --dist=precise-updates/folsom --section=main --arch=amd64,i386 --nosource --no-check-gpg DIRNAME2
(which verified and did work.)

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

This bug was fixed in the package debmirror - 1:2.10ubuntu1.1

---------------
debmirror (1:2.10ubuntu1.1) precise; urgency=low

  * origin-canonical.patch: Resolve issue of not being able to mirror apt
    archives with the Release file set as "Origin: Canonical", by adding
    additional special case. Patch courtesy of Tal Danzig. (LP: #1174797)
 -- David Medberry <email address hidden> Tue, 30 Apr 2013 15:55:53 +0000

Changed in debmirror (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package debmirror - 1:2.14ubuntu1.1

---------------
debmirror (1:2.14ubuntu1.1) quantal; urgency=low

  * origin-canonical.patch: Resolve issue of not being able to mirror apt
    archives with the Release file set as "Origin: Canonical", by adding
    additional special case. Patch courtesy of Tal Danzig. (LP: #1174797)
 -- David Medberry <email address hidden> Tue, 30 Apr 2013 15:55:53 +0000

Changed in debmirror (Ubuntu Quantal):
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.