Bug 2290863 - Capacity & Utilization cards do not incorporate custom StorageClasses (Block & file dashboard)
Summary: Capacity & Utilization cards do not incorporate custom StorageClasses (Block ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: management-console
Version: 4.15
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ODF 4.15.7
Assignee: Timothy Asir
QA Contact: Elena Bondarenko
URL:
Whiteboard:
Depends On: 2284090
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-06-07 11:46 UTC by Sanjal Katiyar
Modified: 2025-01-30 04:25 UTC (History)
8 users (show)

Fixed In Version: 4.15.7-1
Doc Type: Bug Fix
Doc Text:
.Capacity and Utilization cards do not include custom storage classes Previously, the Requested capacity and Utilization cards displayed data only for the default storage classes created by the OpenShift Container Storage operator as part of the storage system creation. These cards did not include any custom storage classes that were created later. This was due to the refactoring of the prometheus to support multiple storage clusters. With this fix, the queries are updated and the cards show the report capacity for both default and custom created storage classes.
Clone Of: 2284090
Environment:
Last Closed: 2024-10-01 07:19:35 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage odf-console pull 1451 0 None open Bug 2290863: [release-4.15] Fix dashboard queries (Inventory + Capacity + Utilization cards) 2024-08-05 10:09:30 UTC
Github red-hat-storage odf-console pull 1454 0 None open Bug 2290863: [release-4.15-compatibility] Fix dashboard queries (Inventory + Capacity + Utilization cards) 2024-07-02 12:20:50 UTC
Red Hat Product Errata RHBA-2024:7440 0 None None None 2024-10-01 07:19:39 UTC

Description Sanjal Katiyar 2024-06-07 11:46:19 UTC
+++ This bug was initially created as a clone of Bug #2284090 +++

Description of problem (please be detailed as possible and provide log
snippests):
Happens for both internal & external mode "Block & file" dashboard -
"Requested capacity" & "Utilization" (Used capacity) Cards only display data for default StorageClasses created by OCS operator (as part of StorageSystem creation). It do not include any custom StorageClasses (Ceph provisioned) which could be created by users as a day-2 operation. 

Version of all relevant components (if applicable): ODF 4.15 & ODF 4.15


Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
No (but dashboard should display complete information)


Is there any workaround available to the best of your knowledge?
No


Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?


Can this issue reproducible?
Yes

Can this issue reproduce from the UI?
Yes (ODF Block & file dashboards)

If this is a regression, please provide more details to justify this:
Yes (AFAIK earlier dashboards use to incorporate all ODF/OCS StorageClasses, default and custom).


Steps to Reproduce:
1. Deploy internal mode and external mode clusters (you can also deploy both on a same OCP, as ODF now supports multiple StorageClusters as well. Either is fine). 
2. Create some custom StorageClasses using ceph-rbd & ceph-fs provisioners.
3. Create PVC/PV using these custom and some default OCS StorageClasses.
4. Create some Pods and make sure these PVC/PV are attached/mounted to these "Running" pods (example: say we have 4 OCS StorageClasses/PVCs/PVs, we can create 4 Pods and mount each PVC to a separate Pod).
It's better if Pod can push some data to each PV, though not a hard requirement but good to do it before testing. Only hard requirement is that PVCs should be mounted, PVs should be bound and corresponding Pod should be running, otherwise "kubelet" metrics will not report this data at all.
5. Go to "Block & file" dashboard.
6. Check "Requested capacity" & "Utilization" (Used capacity) card, try different options from the dropdown.


Actual results: These cards only report capacity for the default OCS StorageClasses.


Expected results: It should report capacity for both default and custom created StorageClasses.


Additional info: PFA in the comments, this cluster had:
2 default & 1 custom "internal" PVs + PVCs, mounted to an active Pod.
1 default & 1 custom "external" PVs + PVCs, mounted to an active Pod.

1 default & 1 custom "internal" PVs + PVCs, not mounted to an active Pod.
1 default "external" PVs + PVCs, not mounted to an active Pod.

In attached screenshots we can see that,
for internal mode: Cards are only reporting 2 StorageClasses (default mounted ones), whereas it should report 3 ("2 default & 1 custom") in total.
for external mode: Cards are only reporting 1 StorageClass (default mounted), whereas it should report 2 ("1 default & 1 custom") in total.

--- Additional comment from INVALID USER on 2024-05-31 06:12:10 UTC ---

This bug having no release flag set previously, is now set with release flag 'odf‑4.16.0' to '?', and so is being proposed to be fixed at the ODF 4.16.0 release. Note that the 3 Acks (pm_ack, devel_ack, qa_ack), if any previously set while release flag was missing, have now been reset since the Acks are to be set against a release flag.

--- Additional comment from INVALID USER on 2024-05-31 06:12:10 UTC ---

The 'Target Release' is not to be set manually at the Red Hat OpenShift Data Foundation product.

The 'Target Release' will be auto set appropriately, after the 3 Acks (pm,devel,qa) are set to "+" for a specific release flag and that release flag gets auto set to "+".

--- Additional comment from Sanjal Katiyar on 2024-05-31 06:13:24 UTC ---

Internal mode cluster dashboard.

--- Additional comment from Sanjal Katiyar on 2024-05-31 06:14:26 UTC ---

External mode cluster dashboard.

--- Additional comment from INVALID USER on 2024-05-31 06:25:15 UTC ---

This BZ is being approved for ODF 4.16.0 release, upon receipt of the 3 ACKs (PM,Devel,QA) for the release flag 'odf‑4.16.0

--- Additional comment from INVALID USER on 2024-05-31 06:25:15 UTC ---

Since this bug has been approved for ODF 4.16.0 release, through release flag 'odf-4.16.0+', the Target Release is being set to 'ODF 4.16.0

Comment 6 Sanjal Katiyar 2024-06-07 11:50:37 UTC
This is a clone of https://bugzilla.redhat.com/show_bug.cgi?id=2284090 for backporting the fix to 4.15.z release...

Comment 9 Sunil Kumar Acharya 2024-09-05 19:21:00 UTC
Please backport the fix to ODF-4.15 and update the RDT flag/text appropriately.

Comment 17 errata-xmlrpc 2024-10-01 07:19: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 (Red Hat OpenShift Data Foundation 4.15.7 security 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/RHBA-2024:7440

Comment 18 Red Hat Bugzilla 2025-01-30 04:25:12 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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