Descriptioncmd/juju: upgrade-juju minor version upgrades
This changes a few things needed to fix lp:1233451:
* --dev flag is removed, as the logic changed, see
below;
* default behavior, when --version is not specified
now tries to upgrade to the *next* stable (major.minor+2)
version first, failing that will try the most recent
*current* version;
* development flags in the environment config, or the
client's development version is not used to decide
whether to pick a development version for upgrade:
the only way to upgrade to a development version now
is by using --version only (even if the current one
is dev);
* improved tests, removed the (not redundant) public
storage, as it's not used anymore;
* explicit --version overrides the behavior described
above and effectively forces and upgrade to the given
version, regardless if it's supported (no warning).
* when changing the agent-version in the environment,
the new SetEnvironAgentVersion is used, to ensure
all agents are running the same version first, so
that partial upgrades will be detected and reported.
All this is needed to ensure we can do proper upgrades
to the next/current supported version properly and is
required before we can convert upgrade-juju to use the API.
https://code.launchpad.net/~dimitern/juju-core/201-lp-1233451-minor-version-upgrades/+merge/194822
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 24
Patch Set 2 : cmd/juju: upgrade-juju minor version upgrades #
Total comments: 10
Patch Set 3 : cmd/juju: upgrade-juju minor version upgrades #
Total comments: 8
Patch Set 4 : cmd/juju: upgrade-juju minor version upgrades #
MessagesTotal messages: 8
|