deal with landscape repositories during upgrade

Bug #224308 reported by Andreas Hasenack
8
Affects Status Importance Assigned to Milestone
Landscape Server
Fix Released
Medium
Unassigned
update-manager-core (Ubuntu)
Fix Released
Medium
Michael Vogt
Dapper
Invalid
Undecided
Unassigned
Hardy
Fix Released
Medium
Michael Vogt

Bug Description

Binary package hint: update-manager-core

The official Landscape repositories are considered third party ones and are disabled during a distribution upgrade.

TEST CASE:
0. install gutsy
1. add "deb http://landscape.canonical.com/packages/gutsy ./" to /etc/apt/sources.list
2. run update-manager and click on "upgrade"
3. verify that update-manager tells you that third party repository have been disabled, check /etc/apt/sources.list when the dialog is displayed and confirm that a "#" is in front of the landscape.canonical.com line
4. cancel the upgrade

5. run "update-manager --proposed" and click on "upgrade"
6. verify that no message about third party sources is displayed and check that /etc/apt/sources.list contains a "http://landscape.canonical.com/packages/hardy" line instead
7. ignore the error about the authentication failure, that is because this test here has not added the required repository key

Their format is:

deb http://landscape.canonical.com/packages/<distroname> ./

We currently support all distros from dapper to hardy, so the possibilities for sources.list entries are:
deb http://landscape.canonical.com/packages/dapper ./
deb http://landscape.canonical.com/packages/edgy ./
deb http://landscape.canonical.com/packages/feisty ./
deb http://landscape.canonical.com/packages/gutsy ./
deb http://landscape.canonical.com/packages/hardy ./

So, after a gutsy -> hardy upgrade, this line:
deb http://landscape.canonical.com/packages/gutsy ./

should be changed to:
deb http://landscape.canonical.com/packages/hardy ./

and the packages from that repo upgraded too as usual so we end up with landscape related packages built for hardy.

Revision history for this message
Michael Vogt (mvo) wrote :

This is fixed in my local bzr tree and will be part of the next upload.

Changed in update-manager-core:
assignee: nobody → mvo
importance: Undecided → Medium
status: New → Fix Committed
assignee: nobody → mvo
importance: Undecided → Medium
milestone: none → ubuntu-8.04.1
status: New → Fix Committed
Michael Vogt (mvo)
description: updated
Revision history for this message
Steve Langasek (vorlon) wrote :

accepted into hardy-proposed.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Will this updated package also be released for dapper? Can I grab it for testing from somewhere?

Changed in landscape:
importance: Undecided → Medium
milestone: none → mthood
Revision history for this message
Martin Pitt (pitti) wrote :

Hm, I created a dapper task, but on second thought, do we need that at all? I thought when you do an upgrade from release A to release B, this would first download upgrade-manager from release B instead of using the old one in A. Thus, if it is fixed in hardy, upgrades from both dapper and gutsy should work fine? Michael, can you please give your guru answer? Thanks!

Changed in update-manager-core:
status: New → Incomplete
Revision history for this message
Martin Pitt (pitti) wrote :

Although not all fixed bugs have been verified, four tests from Brian showed that update-manager is still able to upgrade from dapper and gutsy, and fixed some bugs. Due to the urgency of some bugs I have copied this to hardy-updates now.

Changed in update-manager-core:
status: Fix Committed → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

FWIW, I tested a dapper -> hardy upgrade using the "-p hardy" parameter, and the landscape bits were handled correctly.

Revision history for this message
Martin Pitt (pitti) wrote :

This was fixed in the hardy upgrader, and does not affect the upgrader in dapper.

Changed in update-manager-core:
status: Incomplete → Invalid
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Well, *shouldn't* it affect the upgrader in dapper? How else will people upgrade correctly from dapper to hardy? Using "-p hardy" seems a workaround.

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 224308] Re: deal with landscape repositories during upgrade

Andreas Hasenack [2008-05-21 14:02 -0000]:
> Well, *shouldn't* it affect the upgrader in dapper? How else will people
> upgrade correctly from dapper to hardy? Using "-p hardy" seems a
> workaround.

As far as I know, an upgrade from release A to release B uses the
update-manager from release B (i. e. A's version downloads B and runs
that). Michael, can you please confirm that?

Thanks,

Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)

Revision history for this message
Michael Vogt (mvo) wrote :

Dapper will download the upgrader from hardy to perform the upgrade. So this case should work fine now. The fix is now in hardy-updates so it is used by default.

Before it was in hardy-updates it was required to use "-p" (--proposed) to get the proposed version of the upgrade.

Cheers,
 Michael

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

The upgrade from dapper to hardy using "do-release-upgrade -d" worked just fine regarding landscape. Just "do-release-upgrade" doesn't yet recognize hardy as an upgrade, but that's a different matter that is being addressed elsewhere.

Thanks!

P.S.: am I supposed to remove the "verification-needed" tag now or is that about something else?

Changed in landscape:
status: New → Fix Released
Michael Vogt (mvo)
Changed in update-manager-core:
status: Fix Committed → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

It's happening again. This time, with hardy -> intrepid upgrade.

# do-release-upgrade -d
Checking for a new ubuntu release
Done Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'intrepid.tar.gz'
authenticate 'intrepid.tar.gz' against 'intrepid.tar.gz.gpg'

(...)
Third party sources disabled
(...)

And indeed, the landscape repository was again removed from /etc/apt/sources.list:
(...)
# deb http://staging.landscape.canonical.com/packages/hardy ./

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

My bad, this machine was using the staging repository and not the official landscape one.

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.