Bug 1434735

Summary: calculate arbiter brick size dynamically
Product: [oVirt] cockpit-ovirt Reporter: RamaKasturi <knarra>
Component: GdeployAssignee: Devyani Kota <dkota>
Status: CLOSED CURRENTRELEASE QA Contact: RamaKasturi <knarra>
Severity: high Docs Contact:
Priority: high    
Version: 0.10.7-0.0.15CC: bugs, sabose
Target Milestone: ovirt-4.1.2Flags: sabose: ovirt-4.1?
knarra: planning_ack?
rule-engine: devel_ack+
knarra: testing_ack+
Target Release: 0.10.7-0.0.18   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-23 08:10:57 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:    
Bug Blocks: 1411323, 1447919    

Description RamaKasturi 2017-03-22 09:23:48 UTC
Description of problem:
with the current version of cockpit-ovirt arbiter brick size is set to 10GB. With 10GB arbiter bricks, we can support maximum 10TB bricks with 4MB
shards(10TB/4MB *4KB = 10GB). We need to change this and do the size calculation based on the brick size .

Discussion points from vijay's email:
===================================
There is also a need to accommodate growth of data brick size. Maybe we could use this formula for determining arbiter brick size with Cockpit:

min (200 GiB, 2 * (brick-size/shard-size) * 4KB)

This uses a multiplicative factor 2 to account for future expansion in data brick size. 

Version-Release number of selected component (if applicable):
cockpit-ovirt-dashboard-0.10.7-0.0.15.el7ev.noarch

How reproducible:


Steps to Reproduce:
1. create arbiter bricks using cockpit-ovirt
2. 
3.

Actual results:
Arbiter bricks are created with a size of 10GB.

Expected results:
size of arbiter bricks should be calculated dynamically based on the formula given in the description.

Additional info:

Comment 1 RamaKasturi 2017-05-23 05:43:55 UTC
Verified with build cockpit-ovirt-dashboard-0.10.7-0.0.18.el7ev.noarch.

I see that arbiter brick size is calculated dynamically using the formula max(20GB, 2 * (bricksizeinKB)/shardsizeKB) * 4). When the  brick size is 12000GB, arbiter brick size is 24GB.