Bug 886232
| Summary: | no stonith resource agents available | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | michal novacek <mnovacek> | ||||
| Component: | pcs | Assignee: | Tomas Jelinek <tojeline> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 7.1 | CC: | fdinitto, rsteiger, slevine, tojeline | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | pcs-0.9.128-1.el7 | Doc Type: | Bug Fix | ||||
| Doc Text: |
Cause:
A. User lists fence agents when no fence agents are installed.
B. User lists fence agents and specifies filter so no fence agent match the filter.
Consequence:
Pcs provides no output.
Fix:
Check for the empty fence agents list and display a message to the user.
Result:
Pcs prints message there are no fence agents available / matching the filter.
|
Story Points: | --- | ||||
| Clone Of: | |||||||
| : | 1129842 (view as bug list) | Environment: | |||||
| Last Closed: | 2015-03-05 09:18:22 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 883874, 1080147, 1129842 | ||||||
| Attachments: |
|
||||||
|
Description
michal novacek
2012-12-11 20:45:11 UTC
This means that fence-* package is not installed (most likely users wanting fence-agents or fence-virt). This might be confusing as it is not mentioned in the documentation so it should be mentioned there or it should be added as dependancy to pcs as most of the people would want fencing anyway. Right now we don't require those packages since pcs can be run on a machine that doesn't have the cluster installed (it can control remote cluster nodes). It does make sense to add an error message when they're running 'pcs stonith list' and nothing shows up (same for 'pcs resource list') Created attachment 937931 [details]
proposed fix
Test:
1. Filter fence agents using non-matching filter
[root@rh70-node1 ~]# pcs stonith list badfilter
Error: No stonith agents matching the filter.
[root@rh70-node1 ~]# echo $?
1
2. Remove fence agents
[root@rh70-node1 ~]# yum remove fence-agents-*
[root@rh70-node1 ~]# yum remove fence-virt
3. List fence agents
[root@rh70-node1 ~]# pcs stonith list
Error: No stonith agents available. Do you have fence agents installed?
[root@rh70-node1 ~]# echo $?
1
4. Filter resources using non-matching filter
[root@rh70-node1 ~]# pcs resource list badfilter
Error: No resource agents matching the filter.
[root@rh70-node1 ~]# echo $?
1
Before Fix:
[root@rh70-node1 ~]# rpm -q pcs
pcs-0.9.115-32.el7.x86_64
[root@rh70-node1 ~]# pcs stonith list badfilter
[root@rh70-node1 ~]# echo $?
0
[root@rh70-node1 ~]# yum remove fence-agents-* fence-virt
{output omitted}
[root@rh70-node1 ~]# pcs stonith list
[root@rh70-node1 ~]# echo $?
0
[root@rh70-node1 ~]# pcs resource list badfilter
[root@rh70-node1 ~]# echo $?
0
After Fix:
[root@rh70-node1 ~]# rpm -q pcs
pcs-0.9.128-1.el7.x86_64
[root@rh70-node1 ~]# pcs stonith list badfilter
Error: No stonith agents matching the filter.
[root@rh70-node1 ~]# echo $?
1
[root@rh70-node1 ~]# yum remove fence-agents-* fence-virt
{output omitted}
[root@rh70-node1 ~]# pcs stonith list
Error: No stonith agents available. Do you have fence agents installed?
[root@rh70-node1 ~]# echo $?
1
[root@rh70-node1 ~]# pcs resource list badfilter
Error: No resource agents matching the filter.
[root@rh70-node1 ~]# echo $?
1
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://rhn.redhat.com/errata/RHBA-2015-0415.html |