Bug 2091487

Summary: [Hybrid Console] Multicluster dashboard is not displaying any metrics
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: gowtham <gshanmug>
Component: management-consoleAssignee: gowtham <gshanmug>
Status: CLOSED ERRATA QA Contact: kmanohar
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.11CC: ebenahar, jefbrown, kramdoss, madam, muagarwa, nthomas, ocs-bugs, odf-bz-bot
Target Milestone: ---   
Target Release: ODF 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.11.0-89 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-24 13:54:05 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: 2099808    
Bug Blocks:    

Description gowtham 2022-05-30 05:42:56 UTC
Description of problem (please be detailed as possible and provide log
snippets):

The Hub cluster does not display any metrics under the multicluster cluster monitoring dashboard on the hybrid console.


Version of all relevant components (if applicable):

Hub:
  OCP         4.11.0-0.nightly-2022-05-25-193227
  ACM         2.5(pre-release)
  ODF-MCO     4.11 build '4.11.0-80

Managed Cluster:
  OCP              4.11.0-0.nightly-2022-05-25-193227
  ODF-Operator     4.11 build '4.11.0-80



Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?


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


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?
100%

Can this issue reproduce from the UI?
100%

If this is a regression, please provide more details to justify this:


Steps to Reproduce:
On Hub:
1. Create one or more OCP setups with OCP 4.11.
2. Install ACM 2.5 pre-release downstream operator by following: 
    https://github.com/stolostron/deploy
3. Enable feature gate to convert OCP console to hybrid console:
    https://gist.github.com/TheRealJon/921905a74329891e1f2153a2d57aa44d#enable-the-tech-preview-feature-gate
4. Install ODF-Multicluster-Orchestrator operator of 4.11 version.
5. Enable the Plugin option while installing ODF-MCO.
6. Enable observability on ACM. (https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.4/html/observability/observing-environments-intro#enable-observability) (1.2. Enable observability service)
7. Whitelist ODF metrics on hub cluster as per Link (1.3.3. Adding custom metrics), 
Use the below YAML to whitelist the ODF metrics.

oc apply -f yaml-file-name.yaml

```
kind: ConfigMap
apiVersion: v1
metadata:
  name: observability-metrics-custom-allowlist
  Namespace: open-cluster-management-observability
data:
  metrics_list.yaml: |
    names:
      - odf_system_health_status
      - odf_system_map
      - odf_system_raw_capacity_total_bytes
      - odf_system_raw_capacity_used_bytes
    matches:
      - __name__="csv_succeeded",exported_namespace="openshift-storage",name=~"odf-operator.*"

```
8. Once observability-metrics-custom-allowlist YAML is created, ACM will started collecting the whitelisted ODF metrics from all the managed clusters.
9. Got to "All Cluster"  view from hybrid console dropdown.
10. Got to "Data Services" -> "Storage System", Dashboard won't display any metrics.


On Managed Clusters:
1. Create one or more OCP setups with OCP 4.11.
2. Install 4.11 ODF-Operator 
3. Create StorageSystem of OCS type.




Actual results:
The multicluster dashboard is not displaying any metrics

Expected results:
Once observability is enabled on ACM and ODF metrics are whitlisted then the multicluster dashboard should display the metrics.

Additional info:

Comment 13 errata-xmlrpc 2022-08-24 13:54:05 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 (Important: Red Hat OpenShift Data Foundation 4.11.0 security, enhancement, & bugfix 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-2022:6156