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 1840156 - [GUI] Colocation constraint can't be added [rhel-8.0.0.z]
Summary: [GUI] Colocation constraint can't be added [rhel-8.0.0.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pcs
Version: 8.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 8.0
Assignee: Miroslav Lisik
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On: 1832973
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-26 13:40 UTC by RHEL Program Management Team
Modified: 2022-04-07 09:13 UTC (History)
9 users (show)

Fixed In Version: pcs-0.10.1-4.el8_0.5
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.
Clone Of: 1832973
Environment:
Last Closed: 2020-06-10 09:25:43 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
proposed fix (751 bytes, patch)
2020-05-29 14:12 UTC, Miroslav Lisik
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-44547 0 None None None 2022-04-07 09:13:27 UTC
Red Hat Product Errata RHSA-2020:2473 0 None None None 2020-06-10 09:26:01 UTC

Comment 3 Miroslav Lisik 2020-05-29 14:12:19 UTC
Created attachment 1693384 [details]
proposed fix

Comment 4 Miroslav Lisik 2020-05-29 14:16:08 UTC
Test:
[root@r80-node-01 ~]# rpm -q pcs
pcs-0.10.1-4.el8_0.5.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

Comment 8 Nina Hostakova 2020-06-08 10:59:45 UTC
BEFORE_FIX
==========
[root@virt-190 ~]# rpm -q pcs
pcs-0.10.1-4.el8.x86_64

[root@virt-190 ~]# $v -t pcsd_colocation
...
[pcsd_colocation] STEP 1 : login
[pcsd_colocation]   user :  " hacluster "
[pcsd_colocation]   password :  " password "
[pcsd_colocation]   OK: logged in as hacluster
[pcsd_colocation]   INFO: stopping JS updater
[pcsd_colocation] STEP 2 : add_cluster
[pcsd_colocation]   comment :  " Try adding the cluster into GUI, but don't fail if at already exists. "
[pcsd_colocation]   clustername :  " STSRHTS8476 "
[pcsd_colocation]   node :  " virt-192 "
[pcsd_colocation]   user :  " hacluster "
[pcsd_colocation]   password :  " password "
[pcsd_colocation]   No auth needed
[pcsd_colocation]   INFO: waiting for ajax
[pcsd_colocation]   OK: cluster 'STSRHTS8476' added
[pcsd_colocation] STEP 3 : open_cluster
[pcsd_colocation]   clustername :  " STSRHTS8476 "
[pcsd_colocation]   OK: cluster STSRHTS8476 opened
[pcsd_colocation] STEP 4 : goto_resources
[pcsd_colocation] STEP 5 : add_resource
[pcsd_colocation]   resource-type :  " ocf:heartbeat:Dummy "
[pcsd_colocation]   resource-name :  " dummy2 "
[pcsd_colocation]   INFO: disabling tooltips (selenium bug)
[pcsd_colocation]   INFO: stopping JS updater
[pcsd_colocation]   INFO: waiting for ajax
[pcsd_colocation]   INFO: waiting for ajax
[pcsd_colocation]   OK: resource 'dummy2' exists
[pcsd_colocation] STEP 6 : add_resource
[pcsd_colocation]   resource-type :  " ocf:heartbeat:Dummy "
[pcsd_colocation]   resource-name :  " dummy3 "
[pcsd_colocation]   INFO: waiting for ajax
[pcsd_colocation]   OK: resource 'dummy3' exists
[pcsd_colocation] STEP 7 : check_resource_running
[pcsd_colocation]   resource-name :  " dummy2 "
[pcsd_colocation]   OK: resource dummy2 is running
[pcsd_colocation] STEP 8 : check_resource_running
[pcsd_colocation]   resource-name :  " dummy3 "
[pcsd_colocation]   INFO: waiting for ajax
[pcsd_colocation]   OK: resource dummy3 is running
[pcsd_colocation] STEP 9 : add_location
[pcsd_colocation]   resource-name :  " dummy2 "
[pcsd_colocation]   node :  " virt-192 "
[pcsd_colocation]   score :  " INFINITY "
[pcsd_colocation]   INFO: waiting for ajax
[pcsd_colocation]   OK: Location constraint exists: virt-192 INFINITY
[pcsd_colocation] STEP 10 : add_colocation
[pcsd_colocation]   resource-name :  " dummy2 "
[pcsd_colocation]   relative :  " dummy3 "
[pcsd_colocation]   colocate :  " together "
[pcsd_colocation]   score :  " 500 "
[pcsd_colocation]   ALERT: Unable to add constraint (Bad Request)
[pcsd_colocation]
[pcsd_colocation]
[pcsd_colocation] ERROR: in add_colocation: Alert box saying "Unable to add constraint (Bad Request)
[pcsd_colocation]
[pcsd_colocation] "
[pcsd_colocation] NOTE: Page source saved as /tmp/STANDALONE_RESULTS/sel_20200608_123350.html
[pcsd_colocation] NOTE: Screenshot saved as /tmp/STANDALONE_RESULTS/sel_20200608_123350.png
<fail name="pcsd_colocation" id="pcsd_colocation" pid="25878" time="Mon Jun  8 12:33:51 2020 +0200" type="cmd" duration="519" ec="1" />
PAN2: ALL STOP!!!
------------------- Summary ---------------------
Testcase                                 Result    
--------                                 ------    
generic_setup                            PASS      
setup-noclvmd-noalerts                   PASS      
pcsd_setup                               PASS      
pcsd_colocation                          FAIL      
=================================================
Total Tests Run: 4
Total PASS:      3
Total FAIL:      1
Total TIMEOUT:   0
Total KILLED:    0
Total STOPPED:   0


AFTER_FIX
=========
[root@virt-190 ~]# rpm -q pcs
pcs-0.10.1-4.el8_0.5.x86_64

[root@virt-190 ~]# $v -t pcsd_colocation
...
[pcsd_colocation] STEP 1 : login
[pcsd_colocation]   user :  " hacluster "
[pcsd_colocation]   password :  " password "
[pcsd_colocation]   OK: logged in as hacluster
[pcsd_colocation]   INFO: stopping JS updater
[pcsd_colocation] STEP 2 : add_cluster
[pcsd_colocation]   comment :  " Try adding the cluster into GUI, but don't fail if at already exists. "
[pcsd_colocation]   clustername :  " STSRHTS8476 "
[pcsd_colocation]   node :  " virt-192 "
[pcsd_colocation]   user :  " hacluster "
[pcsd_colocation]   password :  " password "
[pcsd_colocation]   No auth needed
[pcsd_colocation]   INFO: waiting for ajax
[pcsd_colocation]   OK: cluster 'STSRHTS8476' added
[pcsd_colocation] STEP 3 : open_cluster
[pcsd_colocation]   clustername :  " STSRHTS8476 "
[pcsd_colocation]   OK: cluster STSRHTS8476 opened
[pcsd_colocation] STEP 4 : goto_resources
[pcsd_colocation] STEP 5 : add_resource
[pcsd_colocation]   resource-type :  " ocf:heartbeat:Dummy "
[pcsd_colocation]   resource-name :  " dummy2 "
[pcsd_colocation]   INFO: disabling tooltips (selenium bug)
[pcsd_colocation]   INFO: stopping JS updater
[pcsd_colocation]   INFO: waiting for ajax
[pcsd_colocation]   INFO: waiting for ajax
[pcsd_colocation]   OK: resource 'dummy2' exists
[pcsd_colocation] STEP 6 : add_resource
[pcsd_colocation]   resource-type :  " ocf:heartbeat:Dummy "
[pcsd_colocation]   resource-name :  " dummy3 "
[pcsd_colocation]   INFO: waiting for ajax
[pcsd_colocation]   OK: resource 'dummy3' exists
[pcsd_colocation] STEP 7 : check_resource_running
[pcsd_colocation]   resource-name :  " dummy2 "
[pcsd_colocation]   OK: resource dummy2 is running
[pcsd_colocation] STEP 8 : check_resource_running
[pcsd_colocation]   resource-name :  " dummy3 "
[pcsd_colocation]   INFO: waiting for ajax
[pcsd_colocation]   OK: resource dummy3 is running
[pcsd_colocation] STEP 9 : add_location
[pcsd_colocation]   resource-name :  " dummy2 "
[pcsd_colocation]   node :  " virt-192 "
[pcsd_colocation]   score :  " INFINITY "
[pcsd_colocation]   INFO: waiting for ajax
[pcsd_colocation]   OK: Location constraint exists: virt-192 INFINITY
[pcsd_colocation] STEP 10 : add_colocation
[pcsd_colocation]   resource-name :  " dummy2 "
[pcsd_colocation]   relative :  " dummy3 "
[pcsd_colocation]   colocate :  " together "
[pcsd_colocation]   score :  " 500 "
[pcsd_colocation]   OK: Colocation constraint exists
[pcsd_colocation] STEP 11 : check_resource_loc
[pcsd_colocation]   resource-name :  " dummy3 "
[pcsd_colocation]   node :  " virt-192 "
[pcsd_colocation]   INFO: waiting for ajax
[pcsd_colocation]   OK: resource dummy3 is running
[pcsd_colocation]   OK: resource dummy3 is running on: virt-192
[pcsd_colocation] 0 warning(s) issued
[pcsd_colocation] All OK
<pass name="pcsd_colocation" id="pcsd_colocation" pid="9272" time="Mon Jun  8 10:33:22 2020 +0200" type="cmd" duration="564" />
------------------- Summary ---------------------
Testcase                                 Result    
--------                                 ------    
generic_setup                            PASS      
setup-noclvmd-noalerts                   PASS      
pcsd_setup                               PASS      
pcsd_colocation                          PASS      
=================================================
Total Tests Run: 4
Total PASS:      4
Total FAIL:      0
Total TIMEOUT:   0
Total KILLED:    0
Total STOPPED:   0


Marking verified in pcs-0.10.1-4.el8_0.5.

Comment 10 errata-xmlrpc 2020-06-10 09:25:43 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://access.redhat.com/errata/RHSA-2020:2473


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