Bug 1896458
Summary: | Default rules with node attributes expressions can be created but are not in effect | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Michal Mazourek <mmazoure> | ||||
Component: | pcs | Assignee: | Tomas Jelinek <tojeline> | ||||
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 8.4 | CC: | cfeist, cluster-maint, idevat, mlisik, mpospisi, omular, tojeline | ||||
Target Milestone: | rc | Keywords: | Triaged | ||||
Target Release: | 8.5 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | pcs-0.10.8-2.el8 | Doc Type: | Bug Fix | ||||
Doc Text: |
Cause:
User creates a resource defaults set with a rule and uses node attribute expressions in the rule.
Consequence:
The rule does not work as expected, since node attribute expressions are not actually supported for resource defaults.
Fix:
Check that node attribute expressions are not used in resource defaults.
Result:
Pcs exits with an error when node attribute expressions are used in a rule for resource defaults.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2021-11-09 17:33:51 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
Michal Mazourek
2020-11-10 15:48:48 UTC
Created attachment 1756379 [details]
proposed fix + tests
Test:
# pcs resource defaults set create rule resource ocf:heartbeat:Dummy and defined test_attr
Error: Keywords 'defined', 'not_defined', 'eq', 'ne', 'gte', 'gt', 'lte' and 'lt' cannot be used in a rule in this command
Error: Errors have occurred, therefore pcs is unable to continue
Test: [root@r8-node-01 ~]# rpm -q pcs pcs-0.10.8-2.el8.x86_64 [root@r8-node-01 ~]# pcs resource defaults set create rule resource ocf:heartbeat:Dummy and defined test_attr Error: Keywords 'defined', 'not_defined', 'eq', 'ne', 'gte', 'gt', 'lte' and 'lt' cannot be used in a rule in this command Error: Errors have occurred, therefore pcs is unable to continue 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 (Low: pcs security, bug fix, and enhancement update), 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://access.redhat.com/errata/RHSA-2021:4142 |