Bug 1079032
Summary: | Unable to add '<action name="stop" timeout="10m" />' child element to a <vm .../> service using 'ccs' | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Madison Kelly <mkelly> | |
Component: | ricci | Assignee: | Chris Feist <cfeist> | |
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 6.5 | CC: | cluster-maint, fdinitto, rsteiger, tlavigne | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | ccs-0.16.2-80.el6.x86_64 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1212516 (view as bug list) | Environment: | ||
Last Closed: | 2015-07-22 07:33: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: | ||||
Bug Blocks: | 1212516 |
Description
Madison Kelly
2014-03-20 19:28:06 UTC
Please ignore the rgmanager component of this bug. I will open a new bug for that. rgmanager section now here: https://bugzilla.redhat.com/show_bug.cgi?id=1079039 Fixed upstream here: https://github.com/feist/ccs/commit/10e7b6aedd41c59fee5416baa37c45c2f70fdb72 Before Fix: [root@ask-03 ~]# rpm -q ccs ccs-0.16.2-75.el6.x86_64 [root@ask-03 ~]# ccs -f test.conf --createcluster test_cluster [root@ask-03 ~]# ccs -f test.conf --addvm my_vm [root@ask-03 ~]# ccs -f test.conf --addaction my_vm stop timeout=10m Usage: ccs [OPTION]... Cluster configuration system. .... After Fix: [root@ask-02 ~]# rpm -q ccs ccs-0.16.2-77.el6.x86_64 [root@ask-02 ~]# ccs -f test.conf --createcluster test_cluster [root@ask-02 ~]# ccs -f test.conf --addvm my_vm [root@ask-02 ~]# ccs -f test.conf --addaction my_vm stop timeout=10m [root@ask-02 ~]# cat test.conf <cluster config_version="3" name="test_cluster"> <fence_daemon/> <clusternodes/> <cman/> <fencedevices/> <rm> <failoverdomains/> <resources/> <vm name="my_vm"> <action name="stop" timeout="10m"/> </vm> </rm> </cluster> [root@ask-02 ~]# ccs -h | grep '[add|rm]vm' --addvm <virtual machine name> [vm options] ... --rmvm <virtual machine name> [root@ask-02 ~]# ccs -f test.conf --rmaction my_vm [root@ask-02 ~]# cat test.conf <cluster config_version="4" name="test_cluster"> <fence_daemon/> <clusternodes/> <cman/> <fencedevices/> <rm> <failoverdomains/> <resources/> <vm name="my_vm"> </vm> </rm> </cluster> Updated fix not allowing duplicate actions for the same resource here: https://github.com/feist/ccs/commit/62bd05fdbbef0edd55968bdef767cdc81c6c506d Before Fix: [root@host-620 ~]# rpm -q ccs ccs-0.16.2-79.el6.x86_64 [root@host-620 ~]# ccs -f test.conf --createcluster test [root@host-620 ~]# ccs -f test.conf --addvm vmname1 [root@host-620 ~]# ccs -f test.conf --addaction vmname1 start timeout=5m [root@host-620 ~]# ccs -f test.conf --addaction vmname1 start timeout=5m [root@host-620 ~]# ccs -f test.conf --addaction vmname1 start timeout=5m [root@host-620 ~]# ccs -f test.conf --lsservices resources: virtual machines: vm: name=vmname1 action: name=start, timeout=5m action: name=start, timeout=5m action: name=start, timeout=5m After Fix: [root@host-620 ~]# rpm -q ccs ccs-0.16.2-80.el6.x86_64 [root@host-620 ~]# ccs -f test.conf --createcluster test [root@host-620 ~]# ccs -f test.conf --addvm vmname1 [root@host-620 ~]# ccs -f test.conf --addaction vmname1 start timeout=5m [root@host-620 ~]# ccs -f test.conf --addaction vmname1 start timeout=5m Error: 'start' action already exists for 'vmname1' [root@host-620 ~]# ccs -f test.conf --addaction vmname1 start timeout=5m Error: 'start' action already exists for 'vmname1' [root@host-620 ~]# ccs -f test.conf --lsservices resources: virtual machines: vm: name=vmname1 action: name=start, timeout=5m 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-1405.html |