Skip to content

Commit

Permalink
Fix: bootstrap: Remove the unnecessary check
Browse files Browse the repository at this point in the history
Fix issue ClusterLabs#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.
  • Loading branch information
liangxin1300 committed Oct 21, 2024
1 parent 0573690 commit 2f37474
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions crmsh/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f37474

Please sign in to comment.