Incompatible version formats

Bug #1516975 reported by Jacek Nykis
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Wishlist
Unassigned

Bug Description

After juju upgrade I wanted to upgrade my agents. I checked juju version like this:
$ juju --version
1.24.4-trusty-amd64

And tried using that as argument to "juju upgrade-juju" which failed:
$ juju upgrade-juju --version 1.24.4-trusty-amd64
error: invalid version "1.24.4-trusty-amd64"

To get it to work I had to remove "-trusty-amd64" from the version number.

Can juju version format be unified across all commands?

Revision history for this message
Dimiter Naydenov (dimitern) wrote :

The version you pass to upgrade-juju is a version number, not a tools binary version (which includes the arch and series). It is documented as such in $ juju upgrade-juju --help.

Specifying arch and series is actually wrong, as the environment might have machines running other arch/series, but the same version number.

Changed in juju-core:
status: New → Invalid
Revision history for this message
Jacek Nykis (jacekn) wrote :

Maybe upgrade-juju can be improved to print warning, ignore arch and series and carry on? From user's perspective it will "Just Work" and warning message will tell them what is the correct version format upgrade-juju expects.

If that is not possible maybe the error message can be improved to suggest version to use?

Changed in juju-core:
status: Invalid → New
Revision history for this message
Cheryl Jennings (cherylj) wrote :

It would improve usability to have juju extract the version number from the string. Adding as a wish list item.

Changed in juju-core:
status: New → Triaged
importance: Undecided → Wishlist
affects: juju-core → juju
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
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.