RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1179023 - pcs needs to be able to set resource-discovery option of location constraints
Summary: pcs needs to be able to set resource-discovery option of location constraints
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcs
Version: 7.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Chris Feist
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-05 22:54 UTC by Chris Feist
Modified: 2017-10-30 12:41 UTC (History)
6 users (show)

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.
Clone Of:
Environment:
Last Closed: 2015-03-05 09:20:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3227541 0 None None None 2017-10-30 12:41:01 UTC
Red Hat Product Errata RHBA-2015:0415 0 normal SHIPPED_LIVE pcs bug fix and enhancement update 2015-03-05 14:16:41 UTC

Description Chris Feist 2015-01-05 22:54:46 UTC
Description of problem:
pcs cannot currently set resource-discovery option of location constraints

Comment 2 Tomas Jelinek 2015-01-09 09:29:41 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:

Comment 6 errata-xmlrpc 2015-03-05 09:20:53 UTC
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


Note You need to log in before you can comment on or make changes to this bug.