Bug 1891999 - Storage efficiency card showing wrong compression ratio
Summary: Storage efficiency card showing wrong compression ratio
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Storage Plugin
Version: 4.6
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.7.0
Assignee: Ankush Behl
QA Contact: Shay Rozen
Depends On:
Blocks: 1893015
TreeView+ depends on / blocked
Reported: 2020-10-27 20:24 UTC by Kanika Murarka
Modified: 2021-02-24 15:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-02-24 15:28:35 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift console pull 6989 0 None closed Bug 1891999: Fix compression card metrics for Persitent dashboard 2021-02-08 10:51:01 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:29:09 UTC

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):

How reproducible:

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

   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.


Note You need to log in before you can comment on or make changes to this bug.