This only tries to upload the ssh_known_hosts_file to the online nodes,
eliminating a timeout and warning for offline nodes.
---
 lib/cmdlib.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index 3f158b4..b9402d9 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -2548,7 +2548,7 @@ class LURenameCluster(LogicalUnit):
 
       # update the known hosts file
       ssh.WriteKnownHostsFile(self.cfg, constants.SSH_KNOWN_HOSTS_FILE)
-      node_list = self.cfg.GetNodeList()
+      node_list = self.cfg.GetOnlineNodeList()
       try:
         node_list.remove(master)
       except ValueError:
-- 
1.7.2.3

Reply via email to