Bug 1690304

Summary: [GUI] submitting of 'create cluster' form get stuck when full domain names are used[ZStream Clone]
Product: Red Hat Enterprise Linux 8 Reporter: Oneata Mircea Teodor <toneata>
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, cluster-qe, idevat, mjuricek, mlisik, omular, tojeline, toneata
Target Milestone: rcKeywords: ZStream
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcs-0.10.1-4.el8.1 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: 1687965 Environment:
Last Closed: 2019-05-07 04:17:48 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, 1687965    
Bug Blocks:    
Attachments:
Description Flags
proposed fix none

Description Oneata Mircea Teodor 2019-03-19 09:17:15 UTC
+++ This bug was initially created as a clone of Bug #1687965 +++

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 3 Ivan Devat 2019-03-28 13:20:40 UTC
Created attachment 1549027 [details]
proposed fix

Comment 7 errata-xmlrpc 2019-05-07 04:17:48 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/RHBA-2019:0964