Commit 011924bd authored by Gerard Oskamp's avatar Gerard Oskamp Committed by Helga Velroyen
Browse files

Skip offline nodes in RENEW_CRYPTO jobs



Without this fix, RENEW_CRYPTO jobs will fail with the following error
if you have at least one offline node in your cluster:

Could not create the node's (uuid 607e6982-c6b4-4197-800f-70d3e5976800)
SSL client certificate.: Node is marked offline
Signed-off-by: default avatarGerard Oskamp <gjo@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent ef8f8455
......@@ -137,6 +137,9 @@ class LUClusterRenewCrypto(NoHooksLU):
cluster.candidate_certs)
nodes = self.cfg.GetAllNodesInfo()
for (node_uuid, node_info) in nodes.items():
if node_info.offline:
feedback_fn("* Skipping offline node %s" % node_info.name)
continue
if node_uuid != master_uuid:
new_digest = CreateNewClientCert(self, node_uuid)
if node_info.master_candidate:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment