This patch fixes a little glitch where the Ganeti daemons were stopped and started unnecessarily if only the cluster certficate was renewed but nothing else.
Signed-off-by: Helga Velroyen <[email protected]> --- lib/client/gnt_cluster.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py index c56e2bb..8bd4b1e 100644 --- a/lib/client/gnt_cluster.py +++ b/lib/client/gnt_cluster.py @@ -1129,8 +1129,7 @@ def _RenewCrypto(new_cluster_cert, new_rapi_cert, # pylint: disable=R0911 _RenewClientCerts(ctx) - if new_cluster_cert or new_rapi_cert or new_spice_cert \ - or new_confd_hmac_key or new_cds: + if new_rapi_cert or new_spice_cert or new_confd_hmac_key or new_cds: RunWhileClusterStopped(ToStdout, _RenewCryptoInner) # If only node certficates are recreated, call _RenewClientCerts only. -- 2.4.3.573.g4eafbef
