Bug 998970
Summary: | pcs resource group remove <group_name> does not remove group resources | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | michal novacek <mnovacek> |
Component: | pcs | Assignee: | Chris Feist <cfeist> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 6.5 | CC: | cluster-maint, fdinitto, rsteiger |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | pcs-0.9.74-1.el6 | Doc Type: | Bug Fix |
Doc Text: |
Cause: Attempting to remove a group containing resources
Consequence: Group was removed, but resources remained
Fix: 'pcs resource delete <groupname>' now properly deletes a group and the resources it contains
Result: Groups and their resources can be removed with one command.
|
Story Points: | --- |
Clone Of: | 998964 | Environment: | |
Last Closed: | 2013-11-21 11:52:43 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: | 998964 | ||
Bug Blocks: |
Description
michal novacek
2013-08-20 12:51:58 UTC
Before fix: [root@rh7-1 test]# pcs -f /tmp/test.xml resource create A Dummy --group MyGroup [root@rh7-1 test]# pcs -f /tmp/test.xml resource create B Dummy --group MyGroup [root@rh7-1 test]# pcs -f /tmp/test.xml resource Resource Group: MyGroup A (ocf::heartbeat:Dummy): Stopped B (ocf::heartbeat:Dummy): Stopped [root@rh7-1 test]# pcs -f /tmp/test.xml resource delete MyGroup Error: MyGroup is not a resource (it can be removed with 'resource group remove MyGroup') After fix: [root@ask-03 ~]# pcs -f /tmp/test.xml resource create A Dummy --group MyGroup [root@ask-03 ~]# pcs -f /tmp/test.xml resource create B Dummy --group MyGroup [root@ask-03 ~]# pcs -f /tmp/test.xml resource Resource Group: MyGroup A (ocf::heartbeat:Dummy): Stopped B (ocf::heartbeat:Dummy): Stopped [root@ask-03 ~]# pcs -f /tmp/test.xml resource delete MyGroup Removing group: MyGroup (and all resources within group) Deleting Resource - A Deleting Resource (and group) - B [root@ask-03 ~]# pcs -f /tmp/test.xml resource NO resources configured [root@ask-03 ~]# rpm -q pcs pcs-0.9.74-1.el6.noarch 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 |