DescriptionNew unit upgrader back end
A new backend for the unit agent upgrader is added.
The unit upgrader listens to the tools version recorded
against the unit's assigned machine (using a machine watcher).
If an upgrade is needed, the unit agent restarts. It no longer
downloads tools since this has already been done by the machine
agent upgrader.
The key point of this branch is to have the machine agent have
sole responsibility for listening to upgrade requests made by
the user and doing the work of downloading the tools. The unit
agent upgrader is informed when all this has been done and simply
reboots the unit agent.
This branch leaves many of the current moving parts in place.
Each unit agent still symlinks to a common tools directory using
the unit tag. The tools version being run by each unit agent is
still recorded against the unit and a user requested upgrade will
be rejected if any units are recorded as being out of date.
The unit agent upgrader still gets its cue to reboot by listening
to state (albeit to its assigned machine rather than the global
env agent version). These aspects can be refined later.
https://code.launchpad.net/~wallyworld/juju-core/simpler-unit-upgrader-2/+merge/206336
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 7
Patch Set 2 : New unit upgrader back end #
Total comments: 2
MessagesTotal messages: 5
|