[Maas-devel] RFC: "Serialising" power actions

Mark Shuttleworth mark at ubuntu.com
Tue Sep 23 10:05:32 UTC 2014


On 18/09/14 16:01, Gavin Panella wrote:
> On 15 September 2014 22:34, Graham Binns wrote:
> ...
>> So as it stands I'm leaning towards option #3. Questions, thoughts and
>> comments are welcome.
> During the 1.7 Feature Review call today, Kiko noted this discussion and
> brought us to a consensus:
>
> * Don't queue anything.
>
> * If there's a power command already in progress, reject the new
>   command, and return an error to the caller.
>
> This is not ideal, and that is well understood. However, it is simple
> and achievable in time for release, and provides unsurprising behaviour.
>
> Is this going to cause problems for anyone, stakeholders especially?

This is a first step to a real queue. It forces the OTHER guy to wait
and queue, but it's effectively feedback that a queue exists (without
then queueing your request).

I.e. this step:

   $ maas power-off node6
   FAILED because we are rebooting node6 for john.

Is a first step to:

  $ maas power-off node6
  DEFERRED because we are rebooting node6 for john. Then
  will power-off node6 for you.

Mark

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/maas-devel/attachments/20140923/9d366d4e/attachment.pgp>


More information about the Maas-devel mailing list