Bug 1743455 - console get error on polling promethus data against proxy enablement cluster
Summary: console get error on polling promethus data against proxy enablement cluster
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.2.0
Assignee: Jakub Hadvig
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-20 03:04 UTC by shahan
Modified: 2019-10-16 06:37 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-16 06:36:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
proxy (180.06 KB, image/png)
2019-08-20 03:04 UTC, shahan
no flags Details
502 Bad Gateway for Alerts/Silences (163.92 KB, image/png)
2019-08-20 03:25 UTC, Junqi Zhao
no flags Details
access log (8.42 KB, text/plain)
2019-08-20 03:41 UTC, Junqi Zhao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:2922 0 None None None 2019-10-16 06:37:22 UTC

Description shahan 2019-08-20 03:04:20 UTC
Created attachment 1605937 [details]
proxy

Description of problem:
 console get error on polling promethus data against proxy enablement cluster

Version-Release number of selected component (if applicable):
4.2.0-0.nightly-2019-08-18-054211

How reproducible:
Always

Steps to Reproduce:
1. create resources under a project
2.Check workload->pod page, project->detail page, compute->node page
3.

Actual results:
All chart shows 'no datapoints found' and promethus query request got 502 502 Bad Gateway

Expected results:
should polling promethus data as expected.

Additional info:
see attachment

Comment 1 Junqi Zhao 2019-08-20 03:25:01 UTC
Created attachment 1605938 [details]
502 Bad Gateway for Alerts/Silences

same "502 Bad Gateway" to list Alerts/Silences

Comment 4 Junqi Zhao 2019-08-20 03:41:00 UTC
Created attachment 1605943 [details]
access log

"prometheus-k8s.openshift-monitoring.svc:9091" and "prometheus-k8s.openshift-monitoring.svc:9092" are accessed via the proxy

Comment 5 Samuel Padgett 2019-08-20 13:27:48 UTC
We need to make sure no services are accessed through the proxy, only the OAuth server.

Comment 6 Samuel Padgett 2019-08-21 16:19:56 UTC
See also https://github.com/openshift/console/issues/2435

Comment 7 Samuel Padgett 2019-08-21 19:03:24 UTC
https://github.com/openshift/cluster-network-operator/pull/295 adds `.svc` to the no proxy list, which should address this problem.

Comment 9 shahan 2019-08-23 05:38:14 UTC
Now console can poll data from promethus service on clusters with proxy
Verified this bug
4.2.0-0.nightly-2019-08-23-004712

Comment 10 errata-xmlrpc 2019-10-16 06:36: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, 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-2019:2922


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