Bug 1420437
| Summary: | cli: automatic CIB upgrade missing for "pcs constraint location add ... resource-discovery=..." | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Radek Steiger <rsteiger> | ||||
| Component: | pcs | Assignee: | Tomas Jelinek <tojeline> | ||||
| Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.3 | CC: | cfeist, cluster-maint, idevat, omular, tojeline | ||||
| Target Milestone: | rc | Keywords: | EasyFix | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | pcs-0.9.160-1.el7 | Doc Type: | Bug Fix | ||||
| Doc Text: |
Cause:
The user specifies a resource-discovery option when creating a location constraint.
Consequence:
Pcs exits with an error and the constraint is not created.
Fix:
Automatically upgrade CIB schema version when the resource-discovery option has been used.
Result:
The location constraint gets created.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-04-10 15:37:49 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
Radek Steiger
2017-02-08 16:11:37 UTC
We will add CIB upgrade check to that function with respect to rsc-pattern as a part of bz1362493 patch. So we can fix this in the same time. Created attachment 1321014 [details]
proposed fix
After Fix:
[vm-rhel72-1 ~] $ rpm -q pcs
pcs-0.9.160-1.el7.x86_64
[vm-rhel72-1 ~] $ cat cib-empty.xml
<cib epoch="557" num_updates="122" admin_epoch="0" validate-with="pacemaker-1.2" crm_feature_set="3.0.12" update-origin="rh7-3" update-client="crmd" cib-last-written="Thu Aug 23 16:49:17 2012" have-quorum="0" dc-uuid="2">
<configuration>
<crm_config/>
<nodes>
</nodes>
<resources/>
<constraints/>
</configuration>
<status/>
</cib>
[vm-rhel72-1 ~] $ pcs resource create MyDummy ocf:heartbeat:Dummy -f cib-empty.xml
[vm-rhel72-1 ~] $ pcs constraint location add MyLoc MyDummy vm-rhel72-1 100 resource-discovery=exclusive -f cib-empty.xml
Cluster CIB has been upgraded to latest version
[vm-rhel72-1 ~] $ echo $?
0
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://access.redhat.com/errata/RHBA-2018:0866 |