Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1447435

Summary: Provide information about why metrics could not be collected.
Product: OpenShift Container Platform Reporter: Matt Wringe <mwringe>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED CANTFIX QA Contact: XiaochuanWang <xiaocwan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.5.1CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-10 12:05:15 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:

Description Matt Wringe 2017-05-02 19:00:47 UTC
Description of problem:
Currently if there is a problem gathering metrics, such as the issue with the ad blockers, we don't get a very useful error message.

Its just something like:

"Metrics are not available.

An error occurred getting metrics for container hawkular-metrics from https://hawkular-metrics.example.com/hawkular/metrics."

When users open bugs about this problem with metrics, we then need to explain to them how to get to their browser's console and to check what the real issue is.

If we could get a more detailed error message when metrics cannot be gathered, it would help to more quickly determine what the problem is.

Comment 1 Jessica Forrester 2017-05-02 19:43:34 UTC
Not sure what you are suggesting, if knew more information about why it was failing then we could show a better error message.  I believe in a lot of these cases we just get a status code 0 which is the terrible catch all.

Comment 2 Samuel Padgett 2017-05-02 19:45:56 UTC
We get HTTP status code 0, which can mean a lot of things. It might mean you have no internet connectivity, or it might mean the certificate is not valid. I don't think there's a way for us to know.

Comment 3 Samuel Padgett 2017-05-10 12:05:15 UTC
Here is the problem we're facing:

http://stackoverflow.com/questions/872206/http-status-code-0-what-does-this-mean-for-fetch-or-xmlhttprequest#answer-14507670

http://stackoverflow.com/questions/3825581/does-an-http-status-code-of-0-have-any-meaning/26451773#26451773

Unfortunately, there's no additional information we can give when we see status code 0.