Bug 902450
| Summary: | pcs update resource with operation does not work as expected | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Jaroslav Kortus <jkortus> |
| Component: | pcs | Assignee: | Chris Feist <cfeist> |
| Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.4 | CC: | aiyengar, cluster-maint, lnovich, mael.lavault, redhat-bugzilla, robert.scheck, rsteiger, slevine |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | pcs-0.9.81-1.el6 | Doc Type: | Bug Fix |
| Doc Text: |
Cause: A user created a resource with a monitor operation and then attempts to update that resources monitor operation,
Consequence: Instead of updating the monitor operation a new operation is created
Fix: pcs was updated to use an existing monitor operation when updating the resource
Result: It is now possible to update resource monitor operations (instead of just creating new monitor operations)
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-11-21 11:50: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: | |||
|
Description
Jaroslav Kortus
2013-01-21 17:31:10 UTC
Fixed upstream: https://github.com/feist/pcs/commit/6a95a470e6811be0e7ff7ca5eb9be88aeb9f3c74 https://github.com/feist/pcs/commit/0a50beea8a327c1eb8b02a0af6fc9821b4b330e6 This replaces the first monitor/start/stop/etc. operation that is found for the specified resource (or if no such operation is found it creates a new one). Are there any plans to get this fixed in RHEL 6.4? That's very unlikely as pacemaker is still techpreview in 6.4 (AFAIK). Cross-filed case 00902474 on the Red Hat customer portal. Feedback: We applied the patches from comment #2 to pcs-0.9.26-10.el6_4.1 and it now works as expected. [root@ask-02 ~]# pcs -f test.xml resource create dummystateful ocf:pacemaker:Stateful op monitor interval="30s" [root@ask-02 ~]# pcs -f test.xml rseource update dummystateful op monitor interval=19s [root@ask-02 ~]# pcs -f test.xml resource --full Resource: dummystateful (class=ocf provider=pacemaker type=Stateful) Operations: monitor interval=19s (dummystateful-monitor-interval-19s) [root@ask-02 ~]# pcs -f test.xml resource update dummystateful op monitor interval=29s [root@ask-02 ~]# pcs -f test.xml resource --full Resource: dummystateful (class=ocf provider=pacemaker type=Stateful) Operations: monitor interval=29s (dummystateful-monitor-interval-29s) [root@ask-02 ~]# It still doesn't works with pcs-0.9.26-10.el6_4.1 :s 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 |