Bug 1877198

Summary: Query Browser: Metrics dropdown error message is not helpful when access is restricted
Product: OpenShift Container Platform Reporter: Andrew Pickering <anpicker>
Component: MonitoringAssignee: Andrew Pickering <anpicker>
Status: CLOSED ERRATA QA Contact: hongyan li <hongyli>
Severity: low Docs Contact:
Priority: low    
Version: 4.6CC: alegrand, anpicker, erooth, juzhao, kakkoyun, lcosic, mloibl, pkrupa, surbania
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:39:14 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:
Attachments:
Description Flags
error info before the fix none

Description Andrew Pickering 2020-09-09 04:33:42 UTC
The dropdown of available metrics on the query browser page shows a generic message when it fails to fetch the metrics from the Prometheus API.

A common reason for the API call failing is that the user does not have access to the API. In this case, it would be more helpful to show a message saying that.

Comment 6 Junqi Zhao 2020-09-10 02:09:23 UTC
Created attachment 1714359 [details]
error info before the fix

Comment 9 errata-xmlrpc 2020-10-27 16:39:14 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 (OpenShift Container Platform 4.6 GA Images), 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-2020:4196