Bug 1664057

Summary: [GUI] Issues in 'create new cluster' form
Product: Red Hat Enterprise Linux 8 Reporter: Tomas Jelinek <tojeline>
Component: pcsAssignee: Ivan Devat <idevat>
Status: CLOSED CURRENTRELEASE QA Contact: cluster-qe <cluster-qe>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 8.0CC: cfeist, cluster-maint, idevat, mlisik, omular, tojeline, wchadwic
Target Milestone: rcFlags: rule-engine: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcs-0.10.1-3.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-14 00:57:05 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 Flags
proposed fix none

Description Tomas Jelinek 2019-01-07 15:42:51 UTC
Description of problem:
Several issues were found in the 'create new cluster' form in pcs web ui.


Version-Release number of selected component (if applicable):
pcs-0.10.1-2.el8


How reproducible:
always, easily


Issue 1:
* login to pcs web ui
* click 'Create New', the 'create cluster' form will be displayed
* enter cluster name and node names
* click 'Go to advanced settings'
* authenticate the nodes if necessary
* in Transport, Addresses click Add link
* click Back to get to the previous step of the form
* change node names
* click 'Go to advanced settings'
* the link(s) list old node names instead of the new ones

workaround: remove all the links and add them again


Issue 2:
* follow issue 1 to get to advanced settings
* add a link and set some link options, do not set addresses
* submit the form
* An error message says an empty address is unresolvable. Instead, an address should be filled in in the backend by default. If nodes do not have same number of addresses specified, it should be reported.

workaround: specify node addresses


Issue 3:
* follow issue 1 to get to advanced settings
* enter a not valid value, i.e. put a string where a number is expected
* submit the form
* an error is displayed
* correct the value and submit the form again
* a dialog is displayed saying the cluster was created
* the error is still displayed in the dialog, however, which is a bug

workaround: ignore the error message

Comment 2 Tomas Jelinek 2019-01-08 13:08:34 UTC
Created attachment 1519181 [details]
proposed fix

Comment 4 Ivan Devat 2019-01-14 14:07:12 UTC
After Fix:

[ant8 ~] $ rpm -q pcs
pcs-0.10.1-3.el8.x86_64

> Issue 1:
* login to pcs web ui
* click 'Create New', the 'create cluster' form will be displayed
* enter cluster name and node names
* click 'Go to advanced settings'
* authenticate the nodes if necessary
* in Transport, Addresses click Add link
  * fill addresses for nodes
* click Back to get to the previous step of the form
* change node names
  * keep some of previous names
* click 'Go to advanced settings'
* node names are updated in address section of link
  * addresses that was filled for kept nodes are still filled

> Issue 2.a:
* follow issue 1 to get to advanced settings
* add a link and set some link options, do not set addresses
* submit the form
* no error

> Issue 2.b:
* follow issue 1 to get to advanced settings
* add two links
  * set addresses but omit one in second link
  * so one node has only one address specified and the rest nodes has two adresses specified
* submit the form
* An error message says all nodes must have the same number of addresses

> Issue 3:
* follow issue 1 to get to advanced settings
* enter a not valid value, i.e. put a string where a number is expected
* submit the form
* an error is displayed
* correct the value and submit the form again
* a dialog is displayed saying the cluster was created and no error is displayed here