From ebacb943ea465a23261b9da780b99a6d66739e35 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Thu, 8 Apr 2010 18:15:57 +0200
Subject: [PATCH] Make watcher request the max coverage

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daemons/ganeti-watcher b/daemons/ganeti-watcher
index 034cc97bc..1f82db8b9 100755
--- a/daemons/ganeti-watcher
+++ b/daemons/ganeti-watcher
@@ -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
-- 
GitLab