.. since the communication takes place on non-master nodes.

This ensures the client properly retries if there is a communication
failure.

Signed-off-by: Petr Pudlak <[email protected]>
---
 lib/backend.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/backend.py b/lib/backend.py
index 402aae1..3564b8f 100644
--- a/lib/backend.py
+++ b/lib/backend.py
@@ -2237,7 +2237,8 @@ def ModifyInstanceMetadata(metadata):
       raise errors.HypervisorError("Failed to start metadata daemon")
 
   def _Connect():
-    return transport.Transport(pathutils.SOCKET_DIR + "/ganeti-metad")
+    return transport.Transport(pathutils.SOCKET_DIR + "/ganeti-metad",
+                               allow_non_master=True)
 
   retries = 5
 
-- 
2.4.3.573.g4eafbef

Reply via email to