Bug 2210944

Summary: [GSS][ceph-dashboard] Size and Provisioned columns in ceph dashboard for RBD images is labelled incorrectly
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Karun Josy <kjosy>
Component: Ceph-DashboardAssignee: Pedro González Gómez <pegonzal>
Status: CLOSED ERRATA QA Contact: Sunil Angadi <sangadi>
Severity: high Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 6.0CC: aasharma, akraj, ceph-eng-bugs, cephqe-warriors, pegonzal, sangadi, sostapov, tserlin
Target Milestone: ---   
Target Release: 6.1z2   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-17.2.6-135.el9cp Doc Type: Bug Fix
Doc Text:
.Size and provisioned column names are changed in RBD images table to avoid mismatch Previously, size and provisioned columns in RBD images table were labeled incorrectly, causing the column's name to mismatch with the data displayed. With this fix, the columns' names are changed to `Used` and `Total Used`. Column `Used` displays the disk usage for the image and `Total Used` displays the total disk usage.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-12 16:34: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:    
Bug Blocks: 2235257    

Description Karun Josy 2023-05-30 06:51:45 UTC
Created attachment 1967807 [details]
screenshot of dashboard

# Description of problem:

In CLI, PROVISIONED shows the size of the image it was created with, whereas USED shows the actual size being used

--------
# rbd du rbd/image1
NAME    PROVISIONED  USED
image1        1 GiB   0 B
--------

However, in dashboard, these values look to be interchanged

Name               image1
Pool               rbd
Size               1 GiB
Provisioned        0 B
Total provisioned  0 B


Please check the screenshot attached as well.


We need to modify the dashboard to use the correct naming convention.



# Version-Release number of selected component (if applicable):
RHCS 6
RHCS 5
RHCS 4

# How reproducible:
Always

Steps to Reproduce:
1. Create an RBD image 
2. Check its usage from CLI using "rbd du" command
3. Check its usage from Ceph dashboard; Block >> Images

Comment 1 Scott Ostapovicz 2023-07-12 13:08:56 UTC
Missed the 6.1 z1 window.  Retargeted to 6.1 z2.

Comment 2 tserlin 2023-09-06 16:45:18 UTC
We need this cherry-picked downstream to the ceph-6.1-rhel-patches branch if we want it to make it for 6.1 z2.

Thomas

Comment 9 Pedro González Gómez 2023-10-11 07:30:07 UTC
Updated doc text.

Comment 11 errata-xmlrpc 2023-10-12 16:34: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 (Moderate: Red Hat Ceph Storage 6.1 security, enhancement, and bug fix 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-2023:5693