Bug 1547704

Summary: Incorrect size of the brick in the generated gdeploy config file
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: rhhiAssignee: Sahina Bose <sabose>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhhiv-1.5CC: rhs-bugs
Target Milestone: ---   
Target Release: RHHI-V 1.5   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: cockpit-ovirt-0.11.17-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1547705 (view as bug list) Environment:
Last Closed: 2018-11-08 05:37:26 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: 1547705    
Bug Blocks: 1520836    

Description SATHEESARAN 2018-02-21 18:59:26 UTC
Description of problem:
-----------------------
When user inputs the size of the bricks as 'X' GB, the logical size of the VDO volume as made available in the generated gdeploy config file is just 'X' which creates VDO volume with logical size 'X' MB

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
cockpit-ovirt-0.11.11

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

Steps to Reproduce:
-------------------
1. Start RHHI installation from cockpit, by selecting 'Hosted Engine with Gluster'
2. While on the 'bricks' tab, provide the size of the brick
3. Enable dedupe and compression on all the bricks from the same device
4. Observe the generated gdeploy config file

Actual results:
---------------
generated gdeploy config file has the size in numeral without proper units, so VDO cli creates VDO volume takes it as MB by default

Expected results:
-----------------
The unit 'G' should be suffixed to the computed logical size


Additional info:
----------------
<actual_gdeploy_conf>
[vdo]
action=create
devices=sdb
names=vdovol_sdb
logicalsize=2000
</actual_gdeploy_conf>

<expected_gdeploy_conf>
[vdo]
action=create
devices=sdb
names=vdovol_sdb
logicalsize=2000G
</expected_gdeploy_conf>

Comment 1 SATHEESARAN 2018-04-30 09:36:24 UTC
This dependent bug is already marked verified. Moving this bug to ON_QA with the fixed-in-version from the dependent bug

Comment 5 SATHEESARAN 2018-04-30 09:37:10 UTC
Tested with cockpit-ovirt-dashboard-0.11.23

The logical size of the VDO volume has 'G' suffix

Comment 7 errata-xmlrpc 2018-11-08 05:37:26 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-2018:3523