Bug 1927384

Summary: New web UI - clone and group settings are not in effect when creating new resource
Product: Red Hat Enterprise Linux 8 Reporter: Michal Mazourek <mmazoure>
Component: pcsAssignee: Ivan Devat <idevat>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: high Docs Contact: Steven J. Levine <slevine>
Priority: high    
Version: 8.4CC: cfeist, cluster-maint, idevat, kmalyjur, mlisik, mpospisi, nhostako, omular, tojeline
Target Milestone: rcKeywords: TechPreview, 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: Web ui calls bad backend url when new resource in a group/as a clone is created. Consequence: Creation resource in a group/as a clone is not possible from web ui. Fix: Web ui calls correct backend url when new resource in a group/as a clone is created. Result: It is possible to create resource in a group/as a clone.
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:
Bug Depends On:    
Bug Blocks: 1552470, 1996067, 1999014    
Attachments:
Description Flags
proposed fix none

Description Michal Mazourek 2021-02-10 16:05:25 UTC
Description of problem:
In a new resource wizard for creating new resources, there is a step "Settings", where you can specify, if the created resource should be part of a group, cloned or disabled at start. The group and clone (promotable included) options don't take effect.


Version-Release number of selected component (if applicable):
pcs-0.10.8-1.el8


How reproducible:
always


Steps to Reproduce:
- Click 'Create Resource' in 'Resources' tab in new web UI
- In step 3 "Settings", tick either 'Clone' or 'Promotable' or 'Use group' (either with 'Select existing group' or 'Create new group')
- In review step, there is correct information about the entered settings, e.g.:
Group  existing group: g1
- Create the resource (tried on ocf:heartbeat:Dummy resource type)


Actual results:
Resource is created without any problems, but the desired setting is not in effect. The problem is with the following 4 cases:
1. Resource is not cloned if 'Clone' option was ticked 
2. Resource is nor promotable or clone, if 'Promotable' option was ticked
3. Resource is not in already existing group, if 'Use group' with 'Select existing group' is selected
4. Resource is not in newly created group, if 'Use group' with 'Create new group' is selected


Expected results:
The settings options take effect


Additional info:
Also, creating group via 'Create group' is not possible with just one resource (it is created without problems with multiple resources), which doesn't seem like desired behavior, since it is possible to create group with one resource in cli.

Comment 2 Ivan Devat 2021-06-10 14:30:44 UTC
Created attachment 1789878 [details]
proposed fix

Comment 3 Miroslav Lisik 2021-06-14 14:21:36 UTC
Test:

[root@r8-node-01 ~]# rpm -q pcs
pcs-0.10.8-2.el8.x86_64

Results:
Following settings in 'Create Resource' wizard works:
* Clone
* Clone Promotable
* Group
    * Select existing group
    * Create new group

Comment 10 errata-xmlrpc 2021-11-09 17:33:51 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 (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