Bug 2270645

Summary: [Ceph Dashboard] Overall performance tab not displaying graphs when anonymous_access is set to false for grafana
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vinayak Papnoi <vpapnoi>
Component: CephadmAssignee: Adam King <adking>
Status: CLOSED ERRATA QA Contact: Vinayak Papnoi <vpapnoi>
Severity: urgent Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 7.1CC: adking, akraj, ceph-eng-bugs, cephqe-warriors, tserlin, vdas
Target Milestone: ---Keywords: Regression
Target Release: 7.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-18.2.1-145.el9cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-13 14:30:09 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: 2267614, 2298578, 2298579    

Description Vinayak Papnoi 2024-03-21 08:05:41 UTC
Created attachment 2022857 [details]
Overall Performance does not display the graphs

Description of problem:

# cat /var/lib/ceph/tmp/grafana.yaml
service_type: grafana
service_name: grafana
placement:
  count: 1
spec:
  anonymous_access: false
  initial_admin_password: "testpass"
  protocol: https


When grafana is deployed using the spec file as mentioned above, the Overall Performance tabs for any service displays the message :
"Grafana Dashboard doesn't exist. Please refer to documentation on how to add dashboards to Grafana."

(see attached screenshot)


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

Ceph 7.1
18.2.1-75.el9cp

How reproducible:
Always

Steps to Reproduce:
1. On a ceph 7.1 cluster, deploy grafana using a spec file which contains the parameter "anonymous_access: false" similar to the one mentioned in the description (this parameter needs to be paired with initial_admin_password)
2. From the dashboard , try to access any Overall Performance graphs such as : Cluster > OSDs > Overall Performance


Actual results:

The Overall Performance tab displays a message mentioned in the description.

Expected results:

The Overall Performance tab must display the appropriate graphs for the services.

Additional info:

The parameter "anonymous_access" was introduces with bug 2079815

With a default deployment for grafana where "anonymous_access" was set to True , the graphs were being displayed properly.
If the spec file as mentioned in the description is used for grafana deployment, the graphs are displayed properly when accessed from the grafana api URL.

Comment 11 errata-xmlrpc 2024-06-13 14:30:09 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 (Critical: Red Hat Ceph Storage 7.1 security, enhancements, 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-2024:3925