Bug 1687562

Summary: [GUI] cannot create a cluster if knet links are not specified
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: medium Docs Contact:
Priority: high    
Version: 8.0CC: cfeist, cluster-maint, idevat, nhostako, omular, stefw, 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 without an explicit specification of knet links. Consequence: A user could not setup cluster without an explicit specification of knet links. Fix: The error in webUI was fixed. Result: A user can setup cluster without an explicit specification of knet links.
Story Points: ---
Clone Of:
: 1690290 (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: 1690290    
Attachments:
Description Flags
pcsd_virt-151.log
none
pcsd_virt-152.log
none
proposed fix none

Description Miroslav Lisik 2019-03-11 18:13:24 UTC
Created attachment 1542983 [details]
pcsd_virt-151.log

Description of problem:
Cannot create cluster with pcs GUI.

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

How reproducible:
always

Steps to Reproduce:
1. setup password for hacluster user on the host for cluster nodes
# echo password | passwd hacluster --stdin

2. Enable and start pcsd daemon
# systemctl enable pcsd
# systemctl start pcsd


3. Go to pcs GUI address: https:/<hostname>:2224/
e.g.

https://virt-151.cluster-qe.lab.eng.brq.redhat.com:2224/

4. Log in as hacluster using your password

5. On manage page click on "Create New"

6. "Create cluster" dialog pops up and fill the "Cluster name", "Node 1" and Node2" fields.
e.g.

Cluster Name: TestCluster
Node1: virt-151.cluster-qe.lab.eng.brq.redhat.com
Node2: virt-152.cluster-qe.lab.eng.brq.redhat.com

7. Click on "Create cluster" button and "Authentification of nodes" dialog pops up.

8. Check checkbox "Use same password for all nodes" and fill the password.

9. Click on "Authenticate" button.

10. "Authentication of nodes" dialog disappears and "Create cluster" dialog is still visible but "Create cluster" and "Go to advance settings" buttons are inactive.

11. Check the corosync.conf file on the nodes
# ls /etc/corosync/corosync.conf
ls: cannot access '/etc/corosync/corosync.conf': No such file or directory

Actual results:

Cluster is not created. Corosync file is not even created on the nodes.

Expected results:

Cluster is created.


Additional info:

Pcsd debug logs are attached.

There is error message in browser console:

api.js:216 Uncaught TypeError: Cannot read property 'filter' of undefined
    at api.js:216
    at Array.map (<anonymous>)
    at Object.api.clusterSetup (api.js:214)
    at Object.<anonymous> (cluster-setup.js:711)
    at Object.<anonymous> (jquery-1.9.1.min.js:3)
    at c (jquery-1.9.1.min.js:3)
    at Object.fireWith [as resolveWith] (jquery-1.9.1.min.js:3)
    at Object.i.(anonymous function) (https://virt-151.cluster-qe.lab.eng.brq.redhat.com:2224/js/jquery-1.9.1.min.js:3:9642)
    at c (jquery-1.9.1.min.js:3)
    at Object.add [as done] (jquery-1.9.1.min.js:3)

Comment 1 Miroslav Lisik 2019-03-11 18:14:15 UTC
Created attachment 1542984 [details]
pcsd_virt-152.log

Comment 2 Tomas Jelinek 2019-03-12 08:56:08 UTC
Workarounds:

A) create a cluster in GUI
* in step 7, click "Go to advance settings" instead of "Create cluster"
* once you go through nodes authentication and get to advanced setup dialog, click "Add link..."
* click "Create cluster", no need to actually fill-in anything in the form

B) create a cluster in CLI

Comment 5 Ivan Devat 2019-03-21 14:31:22 UTC
Created attachment 1546522 [details]
proposed fix

Comment 6 Ondrej Mular 2019-05-02 12:45:12 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 10 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