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 1388783

Summary: [cli] a message passed from crm_report suggest using --nodes or --single-node althought these are not supported by pcs
Product: Red Hat Enterprise Linux 7 Reporter: Radek Steiger <rsteiger>
Component: pcsAssignee: Tomas Jelinek <tojeline>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.3CC: cfeist, cluster-maint, idevat, omular, tojeline
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcs-0.9.160-1.el7 Doc Type: Bug Fix
Doc Text:
Cause: User runs 'pcs cluster report' command on a host which is not in a cluster. Consequence: An error message is displayed. It advices using command line options which pcs does not support. Fix: Modify the error message from crm_report before showing it to the user. Result: An explaining error message is displayed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 15:37:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
proposed fix none

Description Radek Steiger 2016-10-26 07:58:04 UTC
> Description of problem:

Running a 'pcs cluster report' from outside a cluster result in a following error message:

[root@virt-153 ~]# pcs cluster report --from "2016-10-25 19:05:28"  mylogs
Error: virt-153:   ERROR: Cannot determine nodes; specify --nodes or --single-node

This error is passed directly from crm_report as it suggests using --nodes or --single-node which are however not supported by pcs. 

So we could either:
 - mask this specific error to not disclose such options
 - implement --nodes and --single-node into pcs and pass them as-is to crm_report


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

pcs-0.9.154-1.el6.x86_64

Note: the version used here is a RHEL 6 pcs package, but I suppose we're going to leave the fix for RHEL 7.4 / upstream as this is nothing critical.

Comment 2 Tomas Jelinek 2017-09-04 12:27:19 UTC
Created attachment 1321824 [details]
proposed fix

Before fix:
# pcs cluster report /root/report
Error: rh74-node3:  ERROR: Cannot determine nodes; specify --nodes or --single-node

# pcs cluster report /root/report
Error: rh74-node1:  ERROR: Output directory /root/report already exists, specify an alternate name with --dest



After fix:

# pcs cluster report /root/report
Error: cluster is not configured on this node

# pcs cluster report /root/report
Error: rh74-node1:  ERROR: Output directory /root/report already exists, specify an alternate name with <dest>



The error message should now state clearly what the problem is.

It was not possible to get a report from outside of a cluster due to pcs not allowing to specify --nodes or --single-node. Once we switch to the new pcs architecture, it will be possible to run commands remotely including this one.

Comment 3 Ivan Devat 2017-10-11 08:06:25 UTC
After Fix:

[vm-rhel72-1 ~] $ rpm -q pcs
pcs-0.9.160-1.el7.x86_64

[vm-rhel72-1 ~] $ mkdir report
[vm-rhel72-1 ~] $ pcs cluster report /root/report
Error: vm-rhel72-1:  Calculated node list: vm-rhel72-1 vm-rhel72-3
vm-rhel72-1:  Collecting data from vm-rhel72-1 vm-rhel72-3  (10/09/17 18:00:00 to 10/10/17 18:00:59)
vm-rhel72-1:  ERROR: Output directory /root/report already exists, specify an alternate name with <dest>

[vm-rhel72-1 ~] $ pcs cluster destroy --all
vm-rhel72-1: Stopping Cluster (pacemaker)...
vm-rhel72-3: Stopping Cluster (pacemaker)...
vm-rhel72-1: Successfully destroyed cluster
vm-rhel72-3: Successfully destroyed cluster

[vm-rhel72-1 ~] $ rm -r report
[vm-rhel72-1 ~] $ pcs cluster report /root/report
Error: cluster is not configured on this node

Comment 8 errata-xmlrpc 2018-04-10 15:37:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0866