Since the cluster name might be used for various purposes on nodes, we
should let all nodes "know" about a cluster rename by running the post
hook on all nodes. This will make cluster rename slightly
slower/costlier, but it is not/shouldn't be an operation that is run
very often.
---
lib/cmdlib.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index 3bb6e1a..31b9983 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -1843,7 +1843,8 @@ class LURenameCluster(LogicalUnit):
"NEW_NAME": self.op.name,
}
mn = self.cfg.GetMasterNode()
- return env, [mn], [mn]
+ all_nodes = self.cfg.GetNodeList()
+ return env, [mn], all_nodes
def CheckPrereq(self):
"""Verify that the passed name is a valid one.
--
1.6.5.7