Bug 1690850

Summary: [cockpit] Brick size is incorrect after user modifies the volume from arbiter to pure replica.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Mugdha Soni <musoni>
Component: rhhiAssignee: Parth Dhanjal <dparth>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: high    
Version: rhhiv-1.6CC: godas, rhs-bugs
Target Milestone: ---   
Target Release: RHHI-V 1.8   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: cockpit-ovirt-0.14.3-1.el8ev Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1690880 (view as bug list) Environment:
Last Closed: 2020-08-04 14:50:55 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: 1690880    
Bug Blocks: 1779975    
Attachments:
Description Flags
Arbiter screenshot none

Description Mugdha Soni 2019-03-20 10:51:28 UTC
Created attachment 1546004 [details]
Arbiter screenshot

Description of problem:
------------------------
If the user has the arbiter-replicate volume and later modifies it to pure replicate then the LV size in the third host picks up the default size and not the previous modified size by the user .


Version-Release number of selected component :
-----------------------------------------------
glusterfs-server-3.12.2-47.el7rhgs
gluster-ansible-repositories-1.0-1.el7rhgs.noarch
gluster-ansible-maintenance-1.0.1-1.el7rhgs.noarch
gluster-ansible-features-1.0.4-5.el7rhgs.noarch
gluster-ansible-cluster-1.0-1.el7rhgs.noarch
gluster-ansible-roles-1.0.4-4.el7rhgs.noarch
gluster-ansible-infra-1.0.3-3.el7rhgs.noarch

rhvh-4.3.0.5-0.20190313


How reproducible:
-------------------
Every time


Steps to Reproduce:
--------------------
1.Log in to cockpit UI and fill in all the required parameters till volume tab. 
2.Change the LV size in bricks tab .
3.Then press the back button and and uncheck the arbiter checkbox for the volume 
  and then check the LV size for that brick on third host .

Actual results:
------------------
The LV size of the modified volume is  reflected as the default value and not a modified value by the user .


Expected results:
-------------------
The LV size of the modified volume should be the changed size from the user an d not the default size.


Additional info:
-------------------
If the user set vmstore volume as the arbiter-replicate and the change the LV size from 500GB (default) to 7126GB and then goes back and modifies the type from arbiter-replicate to pure replicate , the LV size in the third host for vmstore will be taken as the default value i.e 500GB and not the modified size.

Comment 2 SATHEESARAN 2020-03-30 14:09:20 UTC
Tested with cockpit-ovirt-dashboard-0.14.3
1. Started HC deployment with 3 nodes
2. Populate storage network and public network FQDN
3. On volumes tab, go with the default list of gluster volumes.
4. Select 'arbiter' for 'data' volume
5. Go to bricks tab, check for the size of the 'data' volume's brick on the third host.
This will be 20GB, as the volume is of type 'arbiter'
6. Go to previous tab - 'Volumes' tab and deselect 'arbiter', so volume type is replicate
7. Now proceed to 'volumes' tab and check for the size of 'data' volume's brick on third host
This size is same as the size of other bricks

Comment 5 errata-xmlrpc 2020-08-04 14:50:55 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 (RHHI for Virtualization 1.8 bug fix and enhancement update), 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-2020:3314