Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2065811

Summary: If pacemaker is not running, fall back to corosync.conf to get node list
Product: Red Hat Enterprise Linux 8 Reporter: Reid Wahl <nwahl>
Component: sos-collectorAssignee: Jake Hunsaker <jhunsaker>
Status: CLOSED DUPLICATE QA Contact: Upgrades and Supportability <upgrades-and-supportability>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.5CC: sbradley
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-13 14:45:25 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Reid Wahl 2022-03-18 19:21:54 UTC
Description of problem:

sos-collector gets the node list from the output of `pcs status` (should change to `crm_mon` via Bug 2065805). `pcs status` and `crm_mon` fail if pacemaker is not running on the node where the command is run. That means that using sos-collector with automatically gathered node names is impossible if the cluster is stopped on the local node.

We should fall back to corosync.conf in this case, which contains an always-visible node list.

-----

Version-Release number of selected component (if applicable):

sos-4.1-9.el8_5

-----

How reproducible:

Always

-----

Steps to Reproduce:
1. Stop the cluster on the current node.
2. Run sos collect.

-----

Actual results:

[root@fastvm-rhel-8-0-23 collector]# sos collect --batch
...
Cluster type set to Pacemaker High Availability Cluster Manager
Cluster status could not be determined. Is the cluster running on this node?

The following is a list of nodes to collect from:
	fastvm-rhel-8-0-23


Connecting to nodes...
Collection would only gather from localhost due to failure to either enumerate or connect to cluster nodes. Assuming single collection from localhost is not desired.
Aborting...

-----

Expected results:

The collector gets the full node list from corosync.conf.

-----

Additional info:

corosync.conf contains a node list in the following format:

nodelist {
    node {
        ring0_addr: node1
        name: node1
        nodeid: 1
    }

    node {
        ring0_addr: node2
        name: node2
        nodeid: 2
    }
}

The following are ignored: empty lines, lines starting with '#', and (I believe) whitespace other than line breaks after key/value pairs.

Use "name" if it is present for a node, or "ring0_addr" if "name" is not present for a node. In general, "ring0_addr" may be either a hostname or an IP address.

Comment 1 Jake Hunsaker 2022-06-13 14:45:25 UTC
This is a duplicate of 2065805 - the PR being backported with that BZ has fallback to corosync

*** This bug has been marked as a duplicate of bug 2065805 ***