Bug 1891999

Summary: Storage efficiency card showing wrong compression ratio
Product: OpenShift Container Platform Reporter: Kanika Murarka <kmurarka>
Component: Console Storage PluginAssignee: Ankush Behl <anbehl>
Status: CLOSED ERRATA QA Contact: Shay Rozen <srozen>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.6CC: aos-bugs, jespy, nthomas, srozen
Target Milestone: ---   
Target Release: 4.7.0   
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: 2021-02-24 15:28:35 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:    
Bug Blocks: 1893015    

Description Kanika Murarka 2020-10-27 20:24:08 UTC
Description of problem:
Current storage efficiency card, shows the ratio of `ceph_bluestore_bluestore_compressed_original` and `ceph_bluestore_bluestore_compressed` instead of `ceph_bluestore_bluestore_compressed_original` and `ceph_bluestore_bluestore_compressed_allocated`.`ceph_bluestore_bluestore_compressed` query tells us the new size of the data after compression and not the size required to store the compressed data, as it also depends on min_blob_size of bluestore.

Version-Release number of selected component (if applicable):
4.6

How reproducible:
2/2

Steps to Reproduce:
1. Navigate to Storage class creation view
2. Create a compressed pool and a storage class using it.
3. Attach PVC to this storage class and add some data to it.
4. Observe the Storage efficiency card and capacity breakdown card.

Actual results:
The Storage efficiency card will show high amount of efficiency, but the storage saved will be lesser.

Expected results:
Storage saved due to compression should match the ratio from storage efficiency card.

Additional info:

Comment 2 Shay Rozen 2020-11-03 17:29:11 UTC
Compression is showing 2:1 when
USED COMPR     UNDER COMPR

   8.1 GiB          16 GiB
moving to verified

Comment 6 errata-xmlrpc 2021-02-24 15:28:35 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 (Moderate: OpenShift Container Platform 4.7.0 security, 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/RHSA-2020:5633