From 2f37474c27e3685bea32fc6589cf4ae558481038 Mon Sep 17 00:00:00 2001 From: xin liang Date: Mon, 21 Oct 2024 11:41:34 +0800 Subject: [PATCH] Fix: bootstrap: Remove the unnecessary check Fix issue #1587 At this point, the local node must already online, otherwise the previous init_cluster_local will raise exceptions. And this is not related to the join process. --- crmsh/bootstrap.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/crmsh/bootstrap.py b/crmsh/bootstrap.py index 3e4b6e5f8..6b24a5516 100644 --- a/crmsh/bootstrap.py +++ b/crmsh/bootstrap.py @@ -1418,13 +1418,6 @@ def init_cluster(): """ init_cluster_local() - _rc, nnodes = ShellUtils().get_stdout("crm_node -l") - nnodes = len(nnodes.splitlines()) - if nnodes < 1: - utils.fatal("No nodes found in cluster") - if nnodes > 1: - utils.fatal("Joined existing cluster - will not reconfigure.") - logger.info("Loading initial cluster configuration") crm_configure_load("update", """property cib-bootstrap-options: stonith-enabled=false