From 88a3295751fdad3c7f27df2fa17be27c77783e40 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Fri, 26 Nov 2010 15:25:30 +0000 Subject: [PATCH] Cluster rename: skip offline nodes This only tries to upload the ssh_known_hosts_file to the online nodes, eliminating a timeout and warning for offline nodes. Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- lib/cmdlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 3f158b494..b9402d96c 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: -- GitLab