Bug 1899917

Summary: [day2] create volume flow from cockpit allows to select more than 3 hosts
Product: [oVirt] cockpit-ovirt Reporter: SATHEESARAN <sasundar>
Component: gluster-ansibleAssignee: Parth Dhanjal <dparth>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 0.14.13CC: bugs, dparth, godas, rhs-bugs
Target Milestone: ovirt-4.4.4Flags: pm-rhel: ovirt-4.4+
pm-rhel: planning_ack+
godas: devel_ack+
sasundar: testing_ack+
Target Release: 0.14.17   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: cockpit-ovirt-0.14.17 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1899915 Environment:
Last Closed: 2020-12-21 12:35:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Gluster RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1899915    
Attachments:
Description Flags
screenshot showing volume create allowing selection of more than 3 hosts none

Description SATHEESARAN 2020-11-20 11:21:50 UTC
+++ This bug was initially created as a clone of Bug #1899915 +++

Description of problem:
------------------------
Create volume wizard in the web console ( cockpit ) creates only 1x3 volume, but allows the user to select more than 3 hosts, which misleads the user that this wizard can be used to create Nx3 replicated volume.

So expectation here is that user should be provided with list of hosts in the cluster, but only allowed to select any 3 among the list of hosts in the cluster

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
RHVH 4.4.3 
cockpit-ovirt-dashboard-0.14.13-2

How reproducible:
------------------
Always

Steps to Reproduce:
--------------------
1. Create a 6 node RHHI-V deployment
2. Click on 'Manager Gluster' from cockpit
3. Select 6 hosts and proceed to create volume

Actual results:
---------------
cockpit crashes when moving on to 'Deploy' tab

Expected results:
-----------------
cockpit 'hosts' tab of create volume should allow selection of only 3 hosts, as creation of 1x3 is the only volume type combination supported.


Additional info:

Comment 1 SATHEESARAN 2020-11-20 11:27:00 UTC
Expectation here is 2 things:

1. Allow users to select only 3 hosts out of number of hosts listed for volume creation
2. Update the information banner below the hosts:

Current note:
Check the hosts on which the volume should be expanded. Select the hosts in a multiple of 3.

Expected note:
Check only 3 hosts on which the bricks for volume will be created.

Comment 2 SATHEESARAN 2020-11-20 12:31:02 UTC
Created attachment 1731260 [details]
screenshot showing volume create allowing selection of more than 3 hosts

screenshot showing volume create allowing selection of more than 3 hosts and incorrect note banner

Comment 3 SATHEESARAN 2020-12-16 14:06:35 UTC
Tested with cockpit-ovirt-dashboard-0.14.17 and verified that
the day2 operation of creating new gluster volume allows the user to choose
only 3 hosts even though there are more than 3 hosts in the cluster.

Comment 4 Sandro Bonazzola 2020-12-21 12:35:46 UTC
This bugzilla is included in oVirt 4.4.4 release, published on December 21st 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.4 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.