avoiding unnecessarily entering "upgrade mode"
Menno Smits
menno.smits at canonical.com
Mon Aug 11 01:24:34 UTC 2014
On 6 August 2014 19:09, Dimiter Naydenov <dimiter.naydenov at canonical.com>
wrote:
> > I would like to change the machine agent so that upgrade mode is
> > only entered if the version in agent.conf is different from the
> > running software version. This would mean that upgrade mode is
> > only entered if there is an actual upgrade to perform.
> If you are referring to Upgraded-To version field in agent config, I
> think this is set after the upgrade completes, so it might be
> unavailable before that.
>
I think this should be OK. The upgradedToVersion field in an agent.conf
will be set to the last version for which upgrade steps were successfully
performed. If this is the same as version.Current then we know there will
be no upgrade to perform. If they are different, or if upgradedToVersion is
not set, then we know there may be upgrade steps to perform.
Thanks,
Menno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20140811/f739d6a5/attachment.html>
More information about the Juju-dev
mailing list