upgrade fails if no explicit version is specified

Bug #1447899 reported by Ian Booth on 2015-04-24
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
juju-core
High
Jesse Meek
1.24
High
Michael Foord

Bug Description

The scenario was that a user was running 1.20.14 and using a 1.22.1 client, ran upgrade-juju.
Juju claimed that "no upgrades available". However, tools were there:

$ juju metadata validate-tools
Matching Tools Versions:
- 1.22.1-trusty-amd64
- 1.22.1-trusty-arm64
- 1.22.1-trusty-armhf
- 1.22.1-trusty-i386
- 1.22.1-trusty-ppc64el
Resolve Metadata:
  source: default simplestreams
  signed: false
  indexURL: https://streams.canonical.com/juju/tools/streams/v1/index2.json
  mirrorURL: https://juju-dist.s3.amazonaws.com/tools

Explicitly specifying the version using --version worked.

It appears upgrades might still be trying to just increment the minor version by 1 when automatically figuring out what to upgrade to, instead of upgrading to the latest. There's also incorrect help text around this legacy behaviour.

Jesse Meek (waigani) on 2015-06-08
Changed in juju-core:
assignee: nobody → Jesse Meek (waigani)
Jesse Meek (waigani) on 2015-06-10
Changed in juju-core:
status: Triaged → In Progress
Jesse Meek (waigani) on 2015-06-11
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui) on 2015-08-27
Changed in juju-core:
status: Fix Committed → Fix Released
tags: added: docteam
Mario Splivalo (mariosplivalo) wrote :

FWIW, this is still an issue when upgrading to 1.24.5.

Ian Booth (wallyworld) wrote :

The fix for this issue has landed in 1.25.
Earlier releases will not have the fix.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers