Set watcher pause on all nodes
authorMichael Hanselmann <hansmi@google.com>
Tue, 11 Dec 2012 15:48:03 +0000 (16:48 +0100)
committerMichael Hanselmann <hansmi@google.com>
Thu, 13 Dec 2012 11:29:45 +0000 (12:29 +0100)
commit7c4bd156f8419db3cc6d116928a49e01efa70feb
tree80b85181ba1c5ed5acdbafc1af816b56ecad8841
parent99e222b18a6f1adf01091443c493a7b7466173ce
Set watcher pause on all nodes

Instead of just setting the watcher pause file, which isn't replicated,
RPC is used to set it on all nodes (where possible). This means that
after an outage of the master node and a following master-failover, the
watcher will still be paused.

The RPC is attempted on all nodes. Errors for nodes marked offline are
ignored. All other errors are returned in the form of an exception
(there is no other option given the LUXI API).

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/server/masterd.py