Bug 1812097 - Discovery of Podmonitors Custom Resource across namespaces is disabled
Summary: Discovery of Podmonitors Custom Resource across namespaces is disabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.3.z
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.5.0
Assignee: Damien Grisonnet
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On:
Blocks: 1812381
TreeView+ depends on / blocked
 
Reported: 2020-03-10 14:15 UTC by Damien Grisonnet
Modified: 2020-08-04 18:04 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1812381 (view as bug list)
Environment:
Last Closed: 2020-08-04 18:04:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github coreos kube-prometheus pull 317 0 None closed Enable discovery of Podmonitors across namespaces 2020-11-03 18:57:52 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-08-04 18:04:29 UTC

Description Damien Grisonnet 2020-03-10 14:15:06 UTC
Description of problem: 

The discovery of PodMonitors Custom Resource across namespaces is disabled. This prevents us to register those CusomResources in all 4.3.z openshift clusters.

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

4.3.z

How reproducible:

This is reproducible in any openshift 4.3.z cluster.

Steps to Reproduce:

1. Create PodMonitor in a user namespace

Actual results:

Prometheus `fails` to discover/register the target in the same way as ServiceMonitor does.

Expected results:

Prometheus `should` discover/register the target.

Additional info:

Potential fix in this PR: https://github.com/coreos/kube-prometheus/pull/317

Comment 3 Sergiusz Urbaniak 2020-03-10 17:17:34 UTC
@damien: just fyi, we need to fix in 4.5.0 (master) first, then we can decide for backports. I can show you the process how it works, it is a bit involved. I suggest we backport to 4.4. as an exercise, that should be good enough :-)

Comment 4 Lili Cosic 2020-03-10 17:43:45 UTC
The fix is already in 4.4 and 4.5 https://github.com/openshift/cluster-monitoring-operator/blob/master/assets/prometheus-user-workload/prometheus.yaml#L83 

If that does not work, then its a separate bug.

Comment 5 Sergiusz Urbaniak 2020-03-11 08:14:44 UTC
In that case marking as MODIFIED for verification, I will also create a clone for 4.4 in MODIFIED state too and a 4.3 clone in POST state referencing the PR.

Comment 8 Junqi Zhao 2020-03-13 03:38:14 UTC
Tested with 4.5.0-0.nightly-2020-03-12-172608,and create PodMonitor in a user namespace, Prometheus can discover/register the target

Comment 10 errata-xmlrpc 2020-08-04 18:04:25 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.5 image release 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-2020:2409


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