upgrade fails if no explicit version is specified
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-
Resolve Metadata:
source: default simplestreams
signed: false
indexURL: https:/
mirrorURL: https:/
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.
Changed in juju-core: | |
assignee: | nobody → Jesse Meek (waigani) |
Changed in juju-core: | |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
tags: | added: docteam |
PR: http:// reviews. vapour. ws/r/1914/