Bug 1209358

Summary: [New] - Incorrect disk size gets displayed in Create Brick dialog.
Product: [Retired] oVirt Reporter: RamaKasturi <knarra>
Component: ovirt-engine-webadminAssignee: Ramesh N <rnachimu>
Status: CLOSED CURRENTRELEASE QA Contact: Ramesh N <rnachimu>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6CC: bugs, ecohen, gklein, knarra, lsurette, mgoldboi, rbalakri, yeylon
Target Milestone: ---   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: gluster
Fixed In Version: ovirt-engine-3.6.0-0.0.master.20150428172821.git6090d93.el6.noarch.rpm Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-04 13:57:17 UTC Type: Bug
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: 1208125    
Bug Blocks: 1187461    
Attachments:
Description Flags
Attaching screenshot for create brick dialog none

Description RamaKasturi 2015-04-07 07:36:30 UTC
Description of problem:
User has carved out a disk using three disks say (sda,sdb and sdc). Now when user selects the device sda and click on create brick the tabular column displays the correct device and  correct size. Under the tabular column there is another size which is being displayed. UI should not be showing this size.

screenshot is attached.

Version-Release number of selected component (if applicable):
ovirt-engine-webadmin-portal-3.6.00.0.master.20150406175153.gite240701.el6.noarch

How reproducible:
Always.

Steps to Reproduce:
1. Add a RHEL7 host to rhsc.
2. Now sync all the storage devices in the host.
3. select the device which has a lock symbol to it.
4. click on the create brick link.

Actual results:
In the create brick dialog user will be able to see two sizes one is of the device which is created by using three devices/disks and another is the actual size of the disk which user has selected.

Expected results:
UI should not display the actual size of the disk if the disk is used to create another device.

Additional info:

Comment 1 RamaKasturi 2015-04-07 07:37:44 UTC
Created attachment 1011634 [details]
Attaching screenshot for create brick dialog

Comment 2 Ramesh N 2015-04-14 06:22:24 UTC
We are displaying the size of the brick under the device list in create brick pop up. It helps in cases like when multiple devices are selected to create brick. For example if we select following three devices,

sda with size 50GB
sdb with size 200GB
sdc with size 250GB

Final size of the brick will be approximately 500 GB. It will displayed below the device list. 

Do u want to remove this size field? 

Note: Size was showing wrong information in case of devices with lock selected in storage devices list. It will fixed with fix for https://bugzilla.redhat.com/1208125.

Comment 3 RamaKasturi 2015-04-14 06:43:28 UTC
I do not want the size field to be removed from the dialog. Instead i did not want the size to be shown when user tries to create a brick on the device which is already used.

As you said this bug https://bugzilla.redhat.com/1208125 should fix this issue.

Comment 4 Ramesh N 2015-04-20 06:17:53 UTC
Dependent bug  https://bugzilla.redhat.com/1208125 moved to Modified

Comment 5 RamaKasturi 2015-05-04 06:09:49 UTC
Verified and works fine with build ovirt-engine-3.6.0-0.0.master.20150429182702.git939c2e8.el6.noarch.

With the fix in https://bugzilla.redhat.com/show_bug.cgi?id=1208125, only the devices which are selected by the user gets displayed and not all the available devices. So the size is been displayed correctly.

Comment 6 Sandro Bonazzola 2015-11-04 13:57:17 UTC
oVirt 3.6.0 has been released on November 4th, 2015 and should fix this issue.
If problems still persist, please open a new BZ and reference this one.