| 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: | pcs | Assignee: | Tomas Jelinek <tojeline> | ||||
| Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.3 | CC: | 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: | |||||
| Attachments: |
|
||||||
|
Description
Radek Steiger
2016-10-26 07:58:04 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.
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 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 |