upgrade fails if no explicit version is specified

Bug #1447899 reported by Ian Booth
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Jesse Meek
1.24
Fix Released
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)
Changed in juju-core:
assignee: nobody → Jesse Meek (waigani)
Jesse Meek (waigani)
Changed in juju-core:
status: Triaged → In Progress
Revision history for this message
Jesse Meek (waigani) wrote :
Jesse Meek (waigani)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
tags: added: docteam
Revision history for this message
Mario Splivalo (mariosplivalo) wrote :

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

Revision history for this message
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  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.