Bug 1840158
| Summary: | [GUI] Colocation constraint can't be added [rhel-8.2.0.z] | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | RHEL Program Management Team <pgm-rhel-tools> | ||||||
| Component: | pcs | Assignee: | Ivan Devat <idevat> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | high | ||||||||
| Version: | 8.0 | CC: | cfeist, cluster-maint, idevat, mlisik, mmazoure, mpospisi, omular, tojeline | ||||||
| Target Milestone: | rc | Keywords: | EasyFix, Regression, ZStream | ||||||
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | pcs-0.10.4-6.el8_2.1 | Doc Type: | Bug Fix | ||||||
| Doc Text: |
Cause:
Web ui backend internally uses syntax of a command `pcs constraint colocation add` that is not supported yet.
Consequence:
Adding a colocation constraint from the web ui always fails.
Fix:
Web ui backend has been fixed to use current syntax of command `pcs constraint colocation add`.
Result:
Adding a colocation constraint from the web ui succeeds.
|
Story Points: | --- | ||||||
| Clone Of: | 1832973 | Environment: | |||||||
| Last Closed: | 2020-06-10 14:35:03 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Bug Depends On: | 1832973 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
Test:
[root@virt-123 ~]# rpm -q pcs
pcs-0.10.4-6.el8_2.1.x86_64
1. Create 2 Dummy resources in GUI (e.g. c1, c2)
2. Go to the resource details form and add a Colocation constraint
* click on resource c2 => Resource Colocation Preferences =>
fill 'Resource' (c1), => click 'Add' button
3. Result: Colocation constraint is created and 'Resource Colocation Preferences' updated
Created attachment 1693099 [details]
test output
Automated web UI test 'pcsd_resource' was run to verify this issue.
[root@virt-174 ~]# rpm -q pcs
pcs-0.10.4-6.el8_2.1.x86_64
## test output snippet
{...}
[pcsd_resource] STEP 1 : login
[pcsd_resource] user : " hacluster "
[pcsd_resource] password : " password "
[pcsd_resource] OK: logged in as hacluster
[pcsd_resource] INFO: stopping JS updater
[pcsd_resource] STEP 2 : add_cluster
[pcsd_resource] comment : " Try adding the cluster into GUI, but don't fail if at already exists. "
[pcsd_resource] clustername : " STSRHTS17546 "
[pcsd_resource] node : " virt-175 "
[pcsd_resource] user : " hacluster "
[pcsd_resource] password : " password "
[pcsd_resource] INFO: waiting for ajax
[pcsd_resource] OK: cluster 'STSRHTS17546' added
{...}
[pcsd_resource] STEP 92 : add_resource
[pcsd_resource] resource-type : " ocf:heartbeat:Dummy "
[pcsd_resource] resource-name : " dummy2 "
[pcsd_resource] INFO: disabling tooltips (selenium bug)
[pcsd_resource] OK: resource 'dummy2' exists
[pcsd_resource] STEP 93 : add_resource
[pcsd_resource] resource-type : " ocf:heartbeat:Dummy "
[pcsd_resource] resource-name : " dummy3 "
[pcsd_resource] OK: resource 'dummy3' exists
{...}
[pcsd_resource] STEP 96 : add_location
[pcsd_resource] resource-name : " dummy2 "
[pcsd_resource] node : " virt-175 "
[pcsd_resource] score : " INFINITY "
[pcsd_resource] INFO: waiting for ajax
[pcsd_resource] OK: Location constraint exists: virt-175 INFINITY
[pcsd_resource] STEP 97 : add_colocation
[pcsd_resource] resource-name : " dummy2 "
[pcsd_resource] relative : " dummy3 "
[pcsd_resource] colocate : " together "
[pcsd_resource] score : " 500 "
[pcsd_resource] OK: Colocation constraint exists
[pcsd_resource] STEP 98 : check_resource_loc
[pcsd_resource] resource-name : " dummy3 "
[pcsd_resource] node : " virt-175 "
[pcsd_resource] INFO: waiting for ajax
[pcsd_resource] OK: resource dummy3 is running
[pcsd_resource] OK: resource dummy3 is running on: virt-175
{...}
------------------- Summary ---------------------
Testcase Result
-------- ------
generic_setup PASS
setup-noclvmd-noalerts PASS
pcsd_setup PASS
pcsd_resource PASS
=================================================
The rest of the test output is attached.
Marking as VERIFIED in pcs-0.10.4-6.el8_2.1
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/RHSA-2020:2462 |
Created attachment 1692968 [details] proposed fix