<div dir="ltr">SGTM too. It should always have worked like this -- rerunning all our upgrade steps every time is *crazy*.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 3:19 AM, David Cheney <span dir="ltr"><<a href="mailto:david.cheney@canonical.com" target="_blank">david.cheney@canonical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">SGTM.<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Aug 6, 2014 at 11:10 AM, Menno Smits <<a href="mailto:menno.smits@canonical.com">menno.smits@canonical.com</a>> wrote:<br>
> Right now, a Juju machine agent is in "upgrade mode" from the moment it<br>
> starts until the upgrade-steps worker is finished. During this period API<br>
> logins are heavily restricted and most of the agent's workers don't start<br>
> until upgrade mode stops.<br>
><br>
> This happens even when there is no upgrade to perform. The upgrade-steps<br>
> worker always runs at machine agent startup and upgrade mode is in force<br>
> until it finishes.<br>
><br>
> Upgrade mode is typically short-lived (say 10 seconds) but if something is<br>
> wrong (e.g. mongo issues) the upgrade-steps worker may take longer or not<br>
> finish resulting in the user seeing lots of "upgrade in progress" messages<br>
> from the client and in the logs.<br>
> This is particularly confusing when a user hasn't even requested an upgrade<br>
> themselves.<br>
><br>
> I would like to change the machine agent so that upgrade mode is only<br>
> entered if the version in agent.conf is different from the running software<br>
> version. This would mean that upgrade mode is only entered if there is an<br>
> actual upgrade to perform.<br>
><br>
> The version in agent.conf is only updated after a successful upgrade so it<br>
> is the right thing to use to determine if upgrade mode should be entered.<br>
><br>
> The current behaviour means that the (idempotent) upgrade steps for the<br>
> current version are always run each time the machine agent starts. If the<br>
> change I'm proposing is implemented this will no longer happen. Does this<br>
> seem like a problem to anyone? For instance, do we rely on the upgrade steps<br>
> for the current version being run after bootstrap?<br>
><br>
> The ticket for this work is at: <a href="https://bugs.launchpad.net/bugs/1350111" target="_blank">https://bugs.launchpad.net/bugs/1350111</a><br>
><br>
> Cheers,<br>
> Menno<br>
><br>
><br>
><br>
</div></div><span class="HOEnZb"><font color="#888888">> --<br>
> Juju-dev mailing list<br>
> <a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
> Modify settings or unsubscribe at:<br>
> <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
><br>
<br>
--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
</font></span></blockquote></div><br></div>