Bug 1879495 - [4.6] namespace \“openshift-user-workload-monitoring\” does not exist”
Summary: [4.6] namespace \“openshift-user-workload-monitoring\” does not exist”
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.6
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.8.0
Assignee: Filip Petkovski
QA Contact: Junqi Zhao
URL:
Whiteboard:
: 1958016 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-16 12:17 UTC by Junqi Zhao
Modified: 2021-07-27 22:33 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 22:33:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
prometheus-operator container logs (118.83 KB, text/plain)
2020-09-16 12:17 UTC, Junqi Zhao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-monitoring-operator pull 1187 0 None open Bug 1879495: jsonnet: update prometheus-operator to 0.48 2021-06-02 14:00:56 UTC
Github openshift prometheus-operator pull 122 0 None open Bug 1879495: Bump to 0.48 2021-06-02 11:43:06 UTC
Github prometheus-operator prometheus-operator pull 3992 0 None closed pkg/prometheus: fix watched namespaces for configmaps 2021-04-29 13:48:57 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 22:33:45 UTC

Description Junqi Zhao 2020-09-16 12:17:10 UTC
Created attachment 1715072 [details]
prometheus-operator container logs

Created attachment 1715072 [details]
prometheus-operator container logs

Description of problem:
# oc -n openshift-monitoring logs $(oc -n openshift-monitoring get po | grep prometheus-operator | awk '{print $1}') -c prometheus-operator | grep "openshift-user-workload-monitoring"
level=error ts=2020-09-16T05:24:25.618881767Z caller=operator.go:952 component=prometheusoperator msg="get namespace to enqueue Prometheus instances failed: namespace \"openshift-user-workload-monitoring\" does not exist"
level=error ts=2020-09-16T07:01:04.049813581Z caller=operator.go:952 component=prometheusoperator msg="get namespace to enqueue Prometheus instances failed: namespace \"openshift-user-workload-monitoring\" does not exist"
level=error ts=2020-09-16T09:13:41.562393113Z caller=operator.go:952 component=prometheusoperator msg="get namespace to enqueue Prometheus instances failed: namespace \"openshift-user-workload-monitoring\" does not exist"
level=error ts=2020-09-16T09:21:52.139920279Z caller=operator.go:952 component=prometheusoperator msg="get namespace to enqueue Prometheus instances failed: namespace \"openshift-user-workload-monitoring\" does not exist"


Version-Release number of selected component (if applicable):
4.6.0-0.nightly-2020-09-15-171211
Prometheus Operator version '0.40.0'

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
container logs see the attached file

Comment 1 Pawel Krupa 2020-09-16 13:25:19 UTC
Namespace should be created by CVO was it? I am trying to figure out if this is on monitoring side or on CVO.

Comment 2 Junqi Zhao 2020-09-16 13:36:48 UTC
(In reply to Pawel Krupa from comment #1)
> Namespace should be created by CVO was it? I am trying to figure out if this
> is on monitoring side or on CVO.

should be handled by prometheus-operator, since we have bug 1806541 which happened in 4.3, and was fixed in previous 4.6 build, but it happen again

Comment 4 Sergiusz Urbaniak 2020-09-24 12:48:41 UTC
@junqi please retest :)

Comment 5 Junqi Zhao 2020-09-30 08:53:31 UTC
tested with 4.6.0-0.nightly-2020-09-29-170625
# oc -n openshift-monitoring logs $(oc -n openshift-monitoring get po | grep prometheus-operator | awk '{print $1}') -c prometheus-operator | grep "openshift-user-workload-monitoring" | tail -n 5
level=error ts=2020-09-30T08:13:38.48645366Z caller=operator.go:939 component=prometheusoperator msg="get namespace to enqueue Prometheus instances failed: namespace \"openshift-user-workload-monitoring\" does not exist"
level=error ts=2020-09-30T08:27:56.503909871Z caller=operator.go:939 component=prometheusoperator msg="get namespace to enqueue Prometheus instances failed: namespace \"openshift-user-workload-monitoring\" does not exist"
level=error ts=2020-09-30T08:28:39.318274231Z caller=operator.go:939 component=prometheusoperator msg="get namespace to enqueue Prometheus instances failed: namespace \"openshift-user-workload-monitoring\" does not exist"
level=error ts=2020-09-30T08:38:27.355508961Z caller=operator.go:939 component=prometheusoperator msg="get namespace to enqueue Prometheus instances failed: namespace \"openshift-user-workload-monitoring\" does not exist"
level=error ts=2020-09-30T08:44:53.707142526Z caller=operator.go:939 component=prometheusoperator msg="get namespace to enqueue Prometheus instances failed: namespace \"openshift-user-workload-monitoring\" does not exist"

Comment 6 Sergiusz Urbaniak 2020-10-02 13:28:10 UTC
No capacity to work on this currently.

Comment 8 Sergiusz Urbaniak 2020-11-13 09:04:15 UTC
UpcomingSprint: We don't have enough capacity to tackle this one in the next sprint (193).

Comment 10 Junqi Zhao 2020-12-14 03:44:53 UTC
still reproduced with 4.7.0-0.nightly-2020-12-13-202314
# oc -n openshift-monitoring logs $(oc -n openshift-monitoring get po | grep prometheus-operator | awk '{print $1}') -c prometheus-operator | grep "openshift-user-workload-monitoring"
level=error ts=2020-12-14T03:35:14.697304959Z caller=operator.go:931 component=prometheusoperator msg="get namespace to enqueue Prometheus instances failed: namespace \"openshift-user-workload-monitoring\" does not exist"

Comment 15 Junqi Zhao 2021-02-25 02:01:43 UTC
still reproduced with 4.8.0-0.nightly-2021-02-24-063313
# oc -n openshift-monitoring logs $(oc -n openshift-monitoring get po | grep prometheus-operator | awk '{print $1}') -c prometheus-operator | grep "openshift-user-workload-monitoring"
level=error ts=2021-02-25T01:55:03.516352066Z caller=operator.go:929 component=prometheusoperator msg="get namespace to enqueue Prometheus instances failed: namespace \"openshift-user-workload-monitoring\" does not exist"

Comment 16 jacob.hoeflaken 2021-04-15 18:28:55 UTC
Is there any update on this, because it still doesn't work while it has been out of preview since 4.6 and we want to use it.

Does this mean we have to create our own instances of Prometheus for application logging?

Kind regards,

Jacob

Comment 17 Simon Pasquier 2021-04-16 08:36:36 UTC
@Jacob can you detail what's not working for you exactly? So far, the assumption has been that user workload monitoring is functional despite the log messages.

Comment 19 jacob.hoeflaken 2021-04-16 09:50:06 UTC
Hi Somin,

Sorry. Looks like I made a mistake quoting the true value in the cluster-monitoring-config :-(. I made the change but didn't see anything happening in the prometheus-user-worload-monitoring namespace and thought it was related to the issue. Now I removed the quotes and it works, regardless of the message.

Thnx for your quick response. I see why this has no importance ;-)

Comment 20 Junqi Zhao 2021-04-19 03:49:32 UTC
# oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.8.0-0.nightly-2021-04-18-101412   True        False         3h3m    Cluster version is 4.8.0-0.nightly-2021-04-18-101412

fresh cluster, disabled user workload by default
# oc -n openshift-monitoring logs $(oc -n openshift-monitoring get po | grep prometheus-operator | awk '{print $1}') -c prometheus-operator | grep "openshift-user-workload-monitoring"
no result

enabled user workload 
# oc -n openshift-monitoring get cm cluster-monitoring-config -oyaml
apiVersion: v1
data:
  config.yaml: |
    enableUserWorkload: true
kind: ConfigMap
metadata:
  creationTimestamp: "2021-04-19T02:54:10Z"
  name: cluster-monitoring-config
  namespace: openshift-monitoring
  resourceVersion: "98112"
  uid: e8513823-e7fa-42de-9e88-2c042671287e

# oc -n openshift-monitoring logs $(oc -n openshift-monitoring get po | grep prometheus-operator | awk '{print $1}') -c prometheus-operator | grep "openshift-user-workload-monitoring"
level=error ts=2021-04-19T02:54:13.99840747Z caller=operator.go:929 component=prometheusoperator msg="get namespace to enqueue Prometheus instances failed: namespace \"openshift-user-workload-monitoring\" does not exist"

Comment 22 Simon Pasquier 2021-04-19 12:42:50 UTC
Thanks Junqi, very helpful!

Comment 24 Haoyu Sun 2021-05-27 14:59:50 UTC
*** Bug 1958016 has been marked as a duplicate of this bug. ***

Comment 25 Junqi Zhao 2021-06-08 08:43:54 UTC
enable or disable UWM, there is not "openshift-user-workload-monitoring\ does not exist" error with
# oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.8.0-0.nightly-2021-06-07-180258   True        False         116m    Cluster version is 4.8.0-0.nightly-2021-06-07-180258

# oc -n openshift-monitoring logs $(oc -n openshift-monitoring get po | grep prometheus-operator | awk '{print $1}') -c prometheus-operator | grep "openshift-user-workload-monitoring"
no result

prometheus-operator version now is 0.48.1
# oc -n openshift-monitoring get po prometheus-operator-5cfbff779b-w88xv --show-labels
NAME                                   READY   STATUS    RESTARTS   AGE    LABELS
prometheus-operator-5cfbff779b-w88xv   2/2     Running   1          149m   app.kubernetes.io/component=controller,app.kubernetes.io/name=prometheus-operator,app.kubernetes.io/part-of=openshift-monitoring,app.kubernetes.io/version=0.48.1,pod-template-hash=5cfbff779b

Comment 28 errata-xmlrpc 2021-07-27 22:33:27 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.8.2 bug fix and security 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-2021:2438


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