Make watcher request the max coverage
authorIustin Pop <iustin@google.com>
Thu, 8 Apr 2010 16:15:57 +0000 (18:15 +0200)
committerIustin Pop <iustin@google.com>
Fri, 9 Apr 2010 07:57:05 +0000 (09:57 +0200)
Since the actions are potentially destructive, we should try to get a
consistent view of the cluster, so it's better to get the most coverage
possible.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

daemons/ganeti-watcher

index 034cc97..1f82db8 100755 (executable)
@@ -210,7 +210,7 @@ class NodeMaintenance(object):
     req = confd_client.ConfdClientRequest(type=
                                           constants.CONFD_REQ_NODE_ROLE_BYNAME,
                                           query=my_name)
-    self.confd_client.SendRequest(req, async=False)
+    self.confd_client.SendRequest(req, async=False, coverage=-1)
     timed_out, _, _ = self.confd_client.WaitForReply(req.rsalt)
     if not timed_out:
       # should have a valid response