Bug 1179023
Summary: | pcs needs to be able to set resource-discovery option of location constraints | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Chris Feist <cfeist> |
Component: | pcs | Assignee: | Chris Feist <cfeist> |
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.1 | CC: | cluster-maint, fdinitto, lmiksik, ofamera, rsteiger, tojeline |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | pcs-0.9.137-9.el7 | Doc Type: | Bug Fix |
Doc Text: |
Cause:
User tries to create a location constraint with resource-discovery option.
Consequence:
Pcs does not create the constraint but shows an error or help instead.
Fix:
Add support for resource-discovery option.
Result:
User is able to create a location constraint with resource-discovery option.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-05 09:20:53 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
Chris Feist
2015-01-05 22:54:46 UTC
Upstream patches: https://github.com/feist/pcs/commit/fa9757a8c2eb47d4d8f56179e9ed392e3e49d9f0 https://github.com/feist/pcs/commit/07cd5b51fe4d9b23effc6d9122b0c9e59c6ae030 Before fix: [root@rh70-node1:~]# rpm -q pcs pcs-0.9.137-5.el7.x86_64 [root@rh70-node1:~]# pcs constraint location dummy rule resource-discovery=never \#uname eq rh70-node1 Error: 'resource-discovery=never #uname eq rh70-node1' is not a valid rule expression: unexpected '#uname' [root@rh70-node1:~]# pcs constraint location add test dummy rh70-node1 100 resource-discovery=never Usage: pcs constraint [constraints]... ... [root@rh70-node1:~]# pcs constraint Location Constraints: Ordering Constraints: Colocation Constraints: After fix: [root@rh70-node1:~]# rpm -q pcs pcs-0.9.137-9.el7.x86_64 [root@rh70-node1:~]# pcs constraint location dummy rule resource-discovery=never \#uname eq rh70-node1 [root@rh70-node1:~]# pcs constraint location add test dummy rh70-node1 100 resource-discovery=never [root@rh70-node1:~]# pcs constraint Location Constraints: Resource: dummy Enabled on: rh70-node1 (score:100) (resource-discovery=never) Constraint: location-dummy (resource-discovery=never) Rule: score=INFINITY Expression: #uname eq rh70-node1 Ordering Constraints: Colocation Constraints: 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-0415.html |