Bug 1031141
Summary: | pcs has strange/inconsistent behaviour and operation namings | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Robert Scheck <redhat-bugzilla> | ||||||||
Component: | pcs | Assignee: | Tomas Jelinek <tojeline> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | |||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 6.5 | CC: | cluster-maint, fdinitto, robert.scheck, rsteiger, tojeline | ||||||||
Target Milestone: | rc | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | pcs-0.9.138-1.el6 | Doc Type: | Bug Fix | ||||||||
Doc Text: |
* After the user added a duplicate resource operation, Pacemaker configuration became invalid. With this update, pcs does not add the operation and instead informs the user that the same operation already exists. (BZ#1031141)
|
Story Points: | --- | ||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2015-07-22 06:15:31 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: | |||||||||||
Attachments: |
|
Description
Robert Scheck
2013-11-15 17:18:59 UTC
Created attachment 969012 [details]
proposed fix
Created attachment 970019 [details]
fix for the original proposed fix
Created attachment 970020 [details]
proposed fix - make default resource operations unique
Before Fix: [root@rh66-node1 ~]# rpm -q pcs pcs-0.9.123-9.el6.x86_64 [root@rh66-node1:~]# pcs resource create dummy Dummy [root@rh66-node1:~]# pcs resource show dummy Resource: dummy (class=ocf provider=heartbeat type=Dummy) Operations: start interval=0s timeout=20 (dummy-start-timeout-20) stop interval=0s timeout=20 (dummy-stop-timeout-20) monitor interval=10 timeout=20 (dummy-monitor-interval-10) [root@rh66-node1:~]# pcs resource op add dummy monitor interval=10s timeout=20s [root@rh66-node1:~]# pcs resource op add dummy start interval=0s timeout=20s [root@rh66-node1:~]# pcs resource op add dummy stop interval=0s timeout=20s [root@rh66-node1:~]# pcs resource show dummy Resource: dummy (class=ocf provider=heartbeat type=Dummy) Operations: start interval=0s timeout=20 (dummy-start-timeout-20) stop interval=0s timeout=20 (dummy-stop-timeout-20) monitor interval=10 timeout=20 (dummy-monitor-interval-10) monitor interval=10s timeout=20s (dummy-name-monitor-interval-10s-timeout-20s) start interval=0s timeout=20s (dummy-name-start-interval-0s-timeout-20s) stop interval=0s timeout=20s (dummy-name-stop-interval-0s-timeout-20s) [root@rh66-node1:~]# pcs resource create dummy1 Dummy op monitor interval=10s timeout=20s [root@rh66-node1:~]# pcs resource show dummy1 Resource: dummy1 (class=ocf provider=heartbeat type=Dummy) Operations: start interval=0s timeout=20 (dummy1-start-timeout-20) stop interval=0s timeout=20 (dummy1-stop-timeout-20) monitor interval=10s timeout=20s (dummy1-monitor-interval-10s) After Fix: [root@rh66-node1:~]# rpm -q pcs pcs-0.9.138-1.el6.x86_64 [root@rh66-node1:~]# pcs resource create dummy Dummy [root@rh66-node1:~]# pcs resource show dummy Resource: dummy (class=ocf provider=heartbeat type=Dummy) Operations: start interval=0s timeout=20 (dummy-start-interval-0s) stop interval=0s timeout=20 (dummy-stop-interval-0s) monitor interval=10 timeout=20 (dummy-monitor-interval-10) [root@rh66-node1:~]# pcs resource op add dummy monitor interval=10s timeout=20s Error: operation monitor with interval 10s already specified for dummy: monitor interval=10 timeout=20 (dummy-monitor-interval-10) [root@rh66-node1:~]# echo $? 1 [root@rh66-node1:~]# pcs resource op add dummy start interval=0s timeout=20s Error: operation start with interval 0s already specified for dummy: start interval=0s timeout=20 (dummy-start-interval-0s) [root@rh66-node1:~]# echo $? 1 [root@rh66-node1:~]# pcs resource op add dummy stop interval=0s timeout=20s Error: operation stop with interval 0s already specified for dummy: stop interval=0s timeout=20 (dummy-stop-interval-0s) [root@rh66-node1:~]# echo $? 1 [root@rh66-node1:~]# pcs resource show dummy Resource: dummy (class=ocf provider=heartbeat type=Dummy) Operations: start interval=0s timeout=20 (dummy-start-interval-0s) stop interval=0s timeout=20 (dummy-stop-interval-0s) monitor interval=10 timeout=20 (dummy-monitor-interval-10) [root@rh66-node1:~]# pcs resource create dummy1 Dummy op monitor interval=10s timeout=20s [root@rh66-node1:~]# pcs resource show dummy1 Resource: dummy1 (class=ocf provider=heartbeat type=Dummy) Operations: start interval=0s timeout=20 (dummy1-start-interval-0s) stop interval=0s timeout=20 (dummy1-stop-interval-0s) monitor interval=10s timeout=20s (dummy1-monitor-interval-10s) [root@rh66-node1:~]# pcs resource create dummy2 Dummy op monitor interval=20s timeout=30s [root@rh66-node1:~]# pcs resource show dummy2 Resource: dummy2 (class=ocf provider=heartbeat type=Dummy) Operations: start interval=0s timeout=20 (dummy2-start-interval-0s) stop interval=0s timeout=20 (dummy2-stop-interval-0s) monitor interval=20s timeout=30s (dummy2-monitor-interval-20s) 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-1446.html |