Skip to content

Exception when running crm cluster health sles16 #1974

@liangxin1300

Description

@liangxin1300

When there is a fresh environment, no cluster configured before:

 # crm cluster health sles16
------ node: localhost ------
[INFO] Checking dependency version...
[INFO] Checking used corosync features...
ERROR: cluster.health: [Errno 2] No such file or directory: '/etc/corosync/corosync.conf'
Exception in thread Thread-2:
Traceback (most recent call last):
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python3.13/threading.py", line 1043, in _bootstrap_inner
    self.run()
    ~~~~~~~~^^
  File "/usr/lib64/python3.13/threading.py", line 1043, in _bootstrap_inner
    self.run()
    ~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/crmsh/migration.py", line 253, in run
    for node in utils.list_cluster_nodes_except_me()
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/crmsh/utils.py", line 1740, in list_cluster_nodes_except_me
    raise ValueError("Failed to get node list from cluster")
ValueError: Failed to get node list from cluster
  File "/usr/lib/python3.13/site-packages/crmsh/migration.py", line 253, in run
    for node in utils.list_cluster_nodes_except_me()
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/crmsh/utils.py", line 1740, in list_cluster_nodes_except_me
    raise ValueError("Failed to get node list from cluster")
ValueError: Failed to get node list from cluster

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions