Bug 1687965

Summary: [GUI] submitting of 'create cluster' form get stuck when full domain names are used
Product: Red Hat Enterprise Linux 8 Reporter: Miroslav Lisik <mlisik>
Component: pcsAssignee: Ivan Devat <idevat>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: high Docs Contact:
Priority: high    
Version: 8.0CC: cfeist, cluster-maint, idevat, mmazoure, omular, tojeline, toneata
Target Milestone: rcKeywords: ZStream
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcs-0.10.1-6.el8 Doc Type: Bug Fix
Doc Text:
Cause: WebUI code contained error that didn't allow to setup cluster when full domanin names were used. Consequence: A user could not setup cluster when full domanin names were used. Fix: The error in webUI was fixed. Result: A user can setup cluster when full domanin names are used.
Story Points: ---
Clone Of:
: 1690304 (view as bug list) Environment:
Last Closed: 2019-11-05 20:40:02 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: 1682129    
Bug Blocks: 1690304    
Attachments:
Description Flags
proposed fix none

Description Miroslav Lisik 2019-03-12 18:51:20 UTC
Description of problem:
Submitting of "create cluster" form get stuck when full domain names are used.

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

How reproducible:
always

Steps to Reproduce:

1. click on "Create New" on the manage page
2. fill the cluster name and 2 node names with full domain names

Cluster Name: HAcluster
Node1: virt-151.cluster-qe.lab.eng.brq.redhat.com
Node2: virt-152.cluster-qe.lab.eng.brq.redhat.com
 
3. click on "Go to advanced settings"
4. click on "Add link".
5. click Back.
6. click "Go to advanced settings"
7. click "Create cluster"



Actual results:


Submitting of "create cluster" form get stuck.

Javascript exception from a console:

Uncaught Error: Syntax error, unrecognized expression: [data-transport-addr-host=virt-151.cluster-qe.lab.eng.brq.redhat.com]
    at Function.st.error (jquery-1.9.1.min.js:4)
    at ft (jquery-1.9.1.min.js:4)
    at Function.st [as find] (jquery-1.9.1.min.js:4)
    at init.find (jquery-1.9.1.min.js:4)
    at cluster-setup.js:85
    at Array.map (<anonymous>)
    at Object.clusterSetup.link.detail.refreshNodesNames (cluster-setup.js:83)
    at HTMLDivElement.<anonymous> (cluster-setup.js:514)
    at Function.each (jquery-1.9.1.min.js:3)
    at init.each (jquery-1.9.1.min.js:3)

Expected results:

A "create cluster" form is successfully submitted and cluster is created.

Additional info:

Comment 2 Ivan Devat 2019-03-21 14:41:01 UTC
Created attachment 1546535 [details]
proposed fix

Comment 3 Ivan Devat 2019-03-29 07:06:50 UTC
Reverting last changes (wrong bz).

Comment 4 Ondrej Mular 2019-05-02 12:45:46 UTC
After fix:
[root@rhel81-node1 ~]# rpm -q pcs
pcs-0.10.1-6.el8.x86_64

> It is possible to create a cluster using web UI following steps described in comment 0

Comment 8 errata-xmlrpc 2019-11-05 20:40:02 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/RHEA-2019:3311