Bug 1893798

Summary: Lots of error messages starting with "get namespace to enqueue Alertmanager instances failed" in the logs of prometheus-operator
Product: OpenShift Container Platform Reporter: Simon Pasquier <spasquie>
Component: MonitoringAssignee: Damien Grisonnet <dgrisonn>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: low Docs Contact:
Priority: low    
Version: 4.7CC: alegrand, anpicker, erooth, kakkoyun, lcosic, pkrupa, surbania
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:29:19 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
prometheus-operator container logs none

Description Simon Pasquier 2020-11-02 16:13:24 UTC
Description of problem:
On startup, the prometheus operator logs a lot of error messages like "get namespace to enqueue Alertmanager instances failed: ...".

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

How reproducible:
Always

Steps to Reproduce:
1. Look at the prometheus-operator logs in openshift-monitoring namespace.

Actual results:
Lots of error logs.

Expected results:
No error.

Additional info:
Fixed upstream in https://github.com/prometheus-operator/prometheus-operator/pull/3641..

Comment 1 Simon Pasquier 2020-11-06 13:48:21 UTC
The fix is available in v0.43.1 (and later).

Comment 4 Junqi Zhao 2020-11-30 03:59:15 UTC
Created attachment 1734720 [details]
prometheus-operator container logs

"get namespace to enqueue Alertmanager instances failed" for all namespaces in prometheus-operator logs

Comment 8 Junqi Zhao 2020-12-14 03:41:41 UTC
issue is fixed
4.7.0-0.nightly-2020-12-13-202314
Prometheus Operator version="(version=0.44.1
# oc -n openshift-monitoring logs $(oc -n openshift-monitoring get po | grep prometheus-operator | awk '{print $1}') -c prometheus-operator | grep "get namespace to enqueue Alertmanager instances failed"
no result

Comment 12 errata-xmlrpc 2021-02-24 15:29:19 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), 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/RHSA-2020:5633