Bug 1375923

Summary: quota calculating is not aligned with ceph quotas
Product: Red Hat Storage Console Reporter: Martin Kudlej <mkudlej>
Component: coreAssignee: Nishanth Thomas <nthomas>
core sub component: configuration QA Contact: sds-qe-bugs
Status: CLOSED WONTFIX Docs Contact:
Severity: high    
Priority: unspecified CC: sankarshan
Version: 2   
Target Milestone: ---   
Target Release: 3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-19 05:42:12 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:

Description Martin Kudlej 2016-09-14 09:05:23 UTC
Description of problem:
Console shows quotas as percentage but Ceph has quotas as MAX available space for pool. Let me give you example.
There is cluster with 5GB available.
If user from Console UI try to set 50% quota, Console calculates it to 2.5GB and set this value to quota attribute for related pool.
Problem is if anybody change pool replication or cluster size is changed or anything else, then 50% quota is not valid anymore and this value is changed.
I think Console should use same definition of quota as Ceph and it should be size in M/G B and not %.

Version-Release number of selected component (if applicable):
ceph-ansible-1.0.5-32.el7scon.noarch
ceph-installer-1.0.14-1.el7scon.noarch
rhscon-ceph-0.0.40-1.el7scon.x86_64
rhscon-core-0.0.41-1.el7scon.x86_64
rhscon-core-selinux-0.0.41-1.el7scon.noarch
rhscon-ui-0.0.52-1.el7scon.noarch

How reproducible:
100%

Steps to Reproduce:
1. set quota to 100% at pool
2. increase replication of pool
3. wait till replication is set
4. result is that quota set to 100% is not valid anymore and number is changed. in my case it was to 120% when I've changed replication from 3 to 4.

Other reproducer can be adding new disk so cluster size is increased and pool quota in % is changed.

Actual results:
Console set quota in % and not in M/G B like Ceph does.

Expected results:
Console will set quota in M/G B like Ceph does.

Comment 3 Shubhendu Tripathi 2018-11-19 05:42:12 UTC
This product is EOL now