Bug 920767
| Summary: | pcs won't manage or unmanage resource groups | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Michael Young <m.a.young> |
| Component: | pcs | Assignee: | Chris Feist <cfeist> |
| Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.4 | CC: | cluster-maint, lnovich, rsteiger, slevine |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | pcs-0.9.77-1.el6 | Doc Type: | Bug Fix |
| Doc Text: |
Cause: pcs would not allow users to unmanage entire resource groups
Consequence: resource groups could not be unmanaged (or managed).
Fix: support was added in pcs to manage or unmanage resource groups
Result: users can now unmanage/manage entire groups of resources
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-11-21 11:52:05 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: | |||
|
Description
Michael Young
2013-03-12 17:12:49 UTC
Yes, this definitely should be in pcs. I've fixed it upstream here: https://github.com/feist/pcs/commit/29f557da1e3ab4761b93a31fcfc0454991750956 As a temporary workaround you can use the following command to set a group unmanaged: crm_resource --resource <Name of your group> --set-parameter is-managed --meta --parameter-value false And to mark a group managed: crm_resource --resource <Name of your group> --delete-parameter is-managed --meta [root@ask-02 ~]# pcs -f test.xml resource create Test Dummy --group Test-Group
[root@ask-02 ~]# pcs -f test.xml resource
Resource Group: Test-Group
Test (ocf::heartbeat:Dummy): Stopped
[root@ask-02 ~]# pcs -f test.xml resource unmanage Test-Group
[root@ask-02 ~]# pcs -f test.xml resource
Resource Group: Test-Group
Test (ocf::heartbeat:Dummy): Stopped (unmanaged)
I talked with Andrew and we've slightly changed out pcs resource manage/unmanage work to make this work properly. So if you try to 'pcs resource manage/unmanage' a group, it will act on all the contained resources. Which is what most users should expect. So you can unmanage a group and then manage just one of the contained resources. [root@ask-02 ~]# rpm -q pcs pcs-0.9.77-1.el6.noarch [root@ask-02 ~]# pcs -f bz920767 resource create A1 Dummy --group AG [root@ask-02 ~]# pcs -f bz920767 resource create A2 Dummy --group AG [root@ask-02 ~]# pcs -f bz920767 resource Resource Group: AG A1 (ocf::heartbeat:Dummy): Stopped A2 (ocf::heartbeat:Dummy): Stopped [root@ask-02 ~]# pcs -f bz920767 resource unmanage AG [root@ask-02 ~]# pcs -f bz920767 resource Resource Group: AG A1 (ocf::heartbeat:Dummy): Stopped (unmanaged) A2 (ocf::heartbeat:Dummy): Stopped (unmanaged) [root@ask-02 ~]# pcs -f bz920767 resource manage A2 [root@ask-02 ~]# pcs -f bz920767 resource Resource Group: AG A1 (ocf::heartbeat:Dummy): Stopped (unmanaged) A2 (ocf::heartbeat:Dummy): Stopped [root@ask-02 ~]# pcs -f bz920767 resource manage AG [root@ask-02 ~]# pcs -f bz920767 resource Resource Group: AG A1 (ocf::heartbeat:Dummy): Stopped A2 (ocf::heartbeat:Dummy): Stopped 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. http://rhn.redhat.com/errata/RHBA-2013-1633.html |