DescriptionNew FindTools API call for upgrades
The upgrade command was directly instantiating
an environ instance in order to call FindTools.
A new API call is provided to allow this to be
moved to the server side where it belongs. The
existing 1.16 compatibility code has grown a fair
bit to accommodate this change, but is being
removed after 1.18 anyway.
A consequence of this work is a change to how
upgrades internally implement --upload-tools.
There was an inconsistency in that bootstrap
and sync-tools commands used Prepare, and
upgrade used the env directly from state. Now
all 3 commands share a common implementation,
using Prepare. It is reasonable to expect that
users running juju upgradde-juju --upload-tools
will have the environ config locally.
Other work involved moving common tools test
code so it can be shared.
https://code.launchpad.net/~wallyworld/juju-core/upgrade-remove-legacy/+merge/209582
Requires: https://code.launchpad.net/~wallyworld/juju-core/enable-major-upgrades/+merge/209378
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 1
Patch Set 2 : New FindTools API call for upgrades #Patch Set 3 : New FindTools API call for upgrades #
Total comments: 9
Patch Set 4 : New FindTools API call for upgrades #Patch Set 5 : New FindTools API call for upgrades #
MessagesTotal messages: 9
|