determine if juju is upgrading

Menno Smits menno.smits at canonical.com
Tue Aug 5 21:55:47 UTC 2014


In recent versions of Juju (i.e. post 1.20) the "agent-state-info" field
for each machine agent in the status output will say "upgrading to
<version>" while the upgrade is in progress. This is could be used by tests
to know when the upgrade is finished.




On 6 August 2014 05:40, Horacio Duran <horacio.duran at canonical.com> wrote:

> Hey, I have been running several CI tests lately and find very often the
> following error:
> 2014-08-04 22:27:42 ERROR juju.cmd supercommand.go:323 upgrade in progress
> -
> At least when my machine is not under heavy load and I am at decent
> network reach of amazon.
> I wonder, is there a way to poll juju to know if its upgrading?
>
> I think it is a bit drastic having CI tests fail for this (unless the test
> checks is related to upgrade in some form) I believe that being able to do
> the check and have the CI test check with a timeout before proceeding with
> the rest of the tests would yield much cleaner results when we need to
> review CI runs that failed.
>
> Cheers.
> --
> Horacio.
>
> --
> Juju-dev mailing list
> Juju-dev at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20140806/fc0eb77a/attachment.html>


More information about the Juju-dev mailing list