Bug 1639097

Summary: [3.7] server returned HTTP status 403 Forbidden for alert-proxy container endpoint
Product: OpenShift Container Platform Reporter: Junqi Zhao <juzhao>
Component: MonitoringAssignee: Paul Gier <pgier>
Status: CLOSED CURRENTRELEASE QA Contact: Junqi Zhao <juzhao>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.7.1CC: pgier
Target Milestone: ---   
Target Release: 3.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: 1638663 Environment:
Last Closed: 2019-11-21 18:37:44 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: 1638663    
Bug Blocks:    
Attachments:
Description Flags
server returned HTTP status 403 Forbidden for alert-proxy container endpoint
none
alert-proxy container endpoint is UP none

Description Junqi Zhao 2018-10-15 05:15:09 UTC
Created attachment 1493909 [details]
server returned HTTP status 403 Forbidden for alert-proxy container endpoint

+++ This bug was initially created as a clone of Bug #1638663 +++

Description of problem:
Deploy prometheus v3.9.45-1

# oc -n openshift-metrics get pod -o wide
NAME                             READY     STATUS    RESTARTS   AGE       IP               NODE
prometheus-0                     6/6       Running   0          3h        10.2.2.4         share3-wmengr76o39-master-etcd-2
prometheus-node-exporter-25v67   1/1       Running   0          3h        192.168.100.14   share3-wmengr76o39-nrri-1
prometheus-node-exporter-9v6gs   1/1       Running   0          3h        192.168.100.12   share3-wmengr76o39-master-etcd-3
prometheus-node-exporter-bkn67   1/1       Running   0          3h        192.168.100.20   share3-wmengr76o39-node-primary-3
prometheus-node-exporter-d9wfc   1/1       Running   0          3h        192.168.100.8    share3-wmengr76o39-node-primary-1
prometheus-node-exporter-fnngw   1/1       Running   0          3h        192.168.100.9    share3-wmengr76o39-nrri-2
prometheus-node-exporter-g7km9   1/1       Running   0          3h        192.168.100.4    share3-wmengr76o39-master-etcd-1
prometheus-node-exporter-jlf2v   1/1       Running   0          3h        192.168.100.16   share3-wmengr76o39-node-primary-2
prometheus-node-exporter-k986p   1/1       Running   0          3h        192.168.100.7    share3-wmengr76o39-master-etcd-2


Checked the targets, server returned HTTP status 403 Forbidden for alert-proxy container endpoint

alert-proxy container endpoint could be accssed by the following
get prometheus token first
# oc sa get-token prometheus -n openshift-metrics

# oc -n openshift-metrics rsh prometheus-0
sh-4.2$ curl -k -H "Authorization: Bearer ${prometheus_token}" curl -k https://10.2.2.4:9443/metrics
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0
go_gc_duration_seconds{quantile="0.25"} 0
go_gc_duration_seconds{quantile="0.5"} 0
go_gc_duration_seconds{quantile="0.75"} 0
go_gc_duration_seconds{quantile="1"} 0
go_gc_duration_seconds_sum 0
go_gc_duration_seconds_count 0
# HELP go_goroutines Number of goroutines that currently exist.
................................................................................


Version-Release number of selected component (if applicable):
prometheus v3.9.45-1

How reproducible:
Always

Steps to Reproduce:
1. Deploy prometheus v3.9.45-1 and check /targets page
2.
3.

Actual results:
server returned HTTP status 403 Forbidden for alert-proxy container endpoint

Expected results:
endpoints should are in UP state

Additional info:

Comment 1 Junqi Zhao 2018-10-15 05:16:04 UTC
prometheus version: v3.7.68-1

Comment 2 Paul Gier 2018-10-17 16:14:43 UTC
Fixed by PR: https://github.com/openshift/openshift-ansible/pull/10428

Comment 3 Paul Gier 2018-11-02 14:43:21 UTC
Fixed in 3.7.70.

Comment 4 Junqi Zhao 2018-11-05 02:45:50 UTC
Issue is fixed, alert-proxy container endpoint is UP now
openshift-ansible:openshift-ansible-3.7.71-1

Comment 5 Junqi Zhao 2018-11-05 02:46:26 UTC
Created attachment 1501595 [details]
alert-proxy container endpoint is UP