[Bug 1497024] Re: release upgrades should jump over unsupported releases

Brian Murray brian at ubuntu.com
Fri Oct 2 16:56:53 UTC 2015


Mathew - that's an interesting idea I had not considered. It makes sense
if we are skipping versions for stable releases to also skip versions
for development releases. Having said that though, the code in update-
manager parses the meta-release files to determine which release to
upgrade.  As an example here is the meta-release-development entry for
utopic.

Dist: utopic
Name: Utopic Unicorn
Version: 14.10
Date: Thu, 23 Oct 2014 14:10:00 UTC
Supported: 0
Description: This is the 14.10 release
Release-File: http://archive.ubuntu.com/ubuntu/dists/utopic/Release
ReleaseNotes: http://changelogs.ubuntu.com/EOLReleaseAnnouncement
UpgradeTool: http://archive.ubuntu.com/ubuntu/dists/utopic/main/dist-upgrader-all/current/utopic.tar.gz
UpgradeToolSignature: http://archive.ubuntu.com/ubuntu/dists/utopic/main/dist-upgrader-all/current/utopic.tar.gz.gpg

We currently just check the date and supported status to determine to
which release to upgrade, as the meta release files don't really contain
information about whether or not a release is obsolete. Thinking about
it more though, if we are running with the -d switch we could check to
see if the release date is greater than today. There should probably be
a fudge factor of a day though as otherwise people may not be able to
upgrade on release day.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1497024

Title:
  release upgrades should jump over unsupported releases

Status in ubuntu-release-upgrader package in Ubuntu:
  New
Status in update-manager package in Ubuntu:
  Fix Released
Status in ubuntu-release-upgrader source package in Trusty:
  Invalid
Status in update-manager source package in Trusty:
  Fix Committed
Status in ubuntu-release-upgrader source package in Vivid:
  Fix Committed
Status in update-manager source package in Vivid:
  Fix Committed

Bug description:
  [Impact]

  Currently, users of 14.04 LTS with /etc/update-manager/release-
  upgrades's prompt set to normal are offered to upgrade to the
  unsupported release 14.10. In the past when 13.04 became unsupported
  before 12.10 we offered upgrades from 12.10 to 13.10. Skipping an
  unsupported release also puts us in a better position to ensure LTS to
  LTS upgrades work. Subsequently, update-manager and ubuntu-release-
  upgrader should be modified so that users can upgrade from 14.04 to
  15.04.

  [Test Case]

  There isn't a great test case for the Vivid update-manager change as
  the change will only have an effect when W is unsupported. Having said
  that I did add a test to update-manager which verifies the logic of
  the change. Additionally, it would be good to ensure an offer to
  upgrade to Wily is given when running 'do-release-upgrade -d'.

  [Regression Potential]

  If the patch is incorrect upgrades to the development release of
  Ubuntu won't be offered. There is a test for that and running 'do-
  release-upgrade -d' on Vivid will prove that it works.

  The changes to update-manager will be generic enough to work going
  forward, but the ubuntu-release-upgrader changes may require regular
  updates as a release becomes End of Life.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1497024/+subscriptions



More information about the foundations-bugs mailing list