Bug 1910259 - Missing Logging/Elasticsearch dashboard.
Summary: Missing Logging/Elasticsearch dashboard.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.7.0
Assignee: Hui Kang
QA Contact: Qiaoling Tang
Rolfe Dlugy-Hegwer
URL:
Whiteboard: logging-exploration
: 1913688 (view as bug list)
Depends On:
Blocks: 1914987
TreeView+ depends on / blocked
 
Reported: 2020-12-23 08:18 UTC by Qiaoling Tang
Modified: 2024-03-25 17:40 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
* Previously, in some cases, the Red Hat OpenShift Logging/Elasticsearch dashboard was missing from the OpenShift Container Platform monitoring dashboard. This happened when the dashboard configuration resource referred to a different namespace owner and caused the OpenShift Container Platform to garbage-collect that resource. The current release fixes this issue. It removes the ownership reference and cleans up the configuration in the Elasticsearch Operator (EO) reconciler, so the logging dashboard appears in the console. (link:https://bugzilla.redhat.com/show_bug.cgi?id=1910259[*BZ#1910259*])
Clone Of:
: 1914987 (view as bug list)
Environment:
Last Closed: 2021-02-24 11:22:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift elasticsearch-operator pull 610 0 None closed Bug 1910259: Fix missing grafana dashboard in OCP 4.7 2021-02-17 18:23:34 UTC
Red Hat Product Errata RHBA-2021:0652 0 None None None 2021-02-24 11:22:56 UTC

Description Qiaoling Tang 2020-12-23 08:18:11 UTC
Description of problem:
Deploy logging 4.7, check the logging dashboards on openshift console, the Logging/Elasticsearch dashboard doesn't appear. Check the configmaps in openshift-config-managed, the cm/grafana-dashboard-elasticsearch isn't created.

$ oc get cm -n  openshift-config-managed 
NAME                                                  DATA   AGE
bound-sa-token-signing-certs                          1      151m
console-public                                        1      144m
csr-controller-ca                                     1      151m
default-ingress-cert                                  1      148m
grafana-dashboard-api-performance                     1      159m
grafana-dashboard-cluster-logging                     1      3m31s
grafana-dashboard-cluster-total                       1      159m
grafana-dashboard-etcd                                1      159m
grafana-dashboard-k8s-resources-cluster               1      159m
grafana-dashboard-k8s-resources-namespace             1      159m


Version-Release number of selected component (if applicable):
elasticsearch-operator.4.7.0-202012210041.p0

How reproducible:
Always

Steps to Reproduce:
1. deploy logging
2. wait until logging stack to be ready
3. check logging dashboards in openshift console

Actual results:


Expected results:


Additional info:

Comment 1 Hui Kang 2021-01-04 21:36:17 UTC
@qit, Hi, Qiaoling, did you install the EO operator in an OCP 4.7 cluster?

Comment 2 Qiaoling Tang 2021-01-05 00:04:18 UTC
(In reply to Hui Kang from comment #1)
> @qit, Hi, Qiaoling, did you install the EO operator in an OCP 4.7 cluster?

Yes

Comment 3 Qiaoling Tang 2021-01-05 00:57:20 UTC
I have some new founding, after I create the cl/instance, the cm/grafana-dashboard-elasticsearch is created, but a few seconds later, it's removed:

$ oc get cm -n openshift-config-managed
NAME                                                  DATA   AGE
bound-sa-token-signing-certs                          1      47m
console-public                                        1      41m
csr-controller-ca                                     1      47m
default-ingress-cert                                  1      46m
grafana-dashboard-api-performance                     1      50m
grafana-dashboard-cluster-logging                     1      30s
grafana-dashboard-cluster-total                       1      50m
grafana-dashboard-elasticsearch                       1      0s
grafana-dashboard-etcd                                1      50m

$ oc get cm -n openshift-config-managed
NAME                                                  DATA   AGE
bound-sa-token-signing-certs                          1      48m
console-public                                        1      42m
csr-controller-ca                                     1      48m
default-ingress-cert                                  1      46m
grafana-dashboard-api-performance                     1      51m
grafana-dashboard-cluster-logging                     1      57s
grafana-dashboard-cluster-total                       1      51m
grafana-dashboard-etcd                                1      51m

Below are the logs in EO:
$ oc logs  -n openshift-operators-redhat elasticsearch-operator-77c676d5dc-bc7zj
{"component":"elasticsearch-operator","go_arch":"amd64","go_os":"linux","go_version":"go1.15.5","level":"0","message":"starting up...","operator-sdk_version":"v0.19.4","operator_version":"4.7.0","ts":"2021-01-05T00:49:20.659040486Z"}
I0105 00:49:21.710153       1 request.go:621] Throttling request took 1.038302675s, request: GET:https://172.30.0.1:443/apis/migration.k8s.io/v1alpha1?timeout=32s
I0105 00:49:32.383228       1 request.go:621] Throttling request took 1.045862518s, request: GET:https://172.30.0.1:443/apis/imageregistry.operator.openshift.io/v1?timeout=32s
{"component":"elasticsearch-operator","go_arch":"amd64","go_os":"linux","go_version":"go1.15.5","level":"0","message":"This operator no longer honors the image specified by the custom resources so that it is able to properly coordinate the configuration with the image.","namespace":"","operator-sdk_version":"v0.19.4","operator_version":"4.7.0","ts":"2021-01-05T00:49:34.014883771Z"}
{"component":"elasticsearch-operator","go_arch":"amd64","go_os":"linux","go_version":"go1.15.5","level":"0","message":"Starting the manager.","namespace":"","operator-sdk_version":"v0.19.4","operator_version":"4.7.0","ts":"2021-01-05T00:49:34.014933332Z"}
{"component":"elasticsearch-operator","go_arch":"amd64","go_os":"linux","go_version":"go1.15.5","level":"0","message":"Registering future events","name":{"Namespace":"openshift-logging","Name":"kibana"},"operator-sdk_version":"v0.19.4","operator_version":"4.7.0","ts":"2021-01-05T00:51:39.385800234Z"}
{"cluster":"elasticsearch","component":"elasticsearch-operator","go_arch":"amd64","go_os":"linux","go_version":"go1.15.5","level":"0","message":"Updated Elasticsearch","name":{"Namespace":"openshift-logging","Name":"kibana"},"namespace":"openshift-logging","operator-sdk_version":"v0.19.4","operator_version":"4.7.0","retries":0,"ts":"2021-01-05T00:51:39.815645028Z"}

CSV: elasticsearch-operator.4.7.0-202101020306.p0

Comment 4 Qiaoling Tang 2021-01-05 01:03:11 UTC
I checked the events in the openshift-config-managed namespace, the events keeps repeating the following warning message:

$ oc get events -n openshift-config-managed |grep elastic
6m32s       Warning   OwnerRefInvalidNamespace      configmap/grafana-dashboard-elasticsearch   ownerRef [logging.openshift.io/v1/Elasticsearch, namespace: openshift-config-managed, name: elasticsearch, uid: 4c9a14a6-cf2d-45ab-b3f0-aab7bba78d30] does not exist in namespace "openshift-config-managed"
6m27s       Warning   OwnerRefInvalidNamespace      configmap/grafana-dashboard-elasticsearch   ownerRef [logging.openshift.io/v1/Elasticsearch, namespace: openshift-config-managed, name: elasticsearch, uid: 4c9a14a6-cf2d-45ab-b3f0-aab7bba78d30] does not exist in namespace "openshift-config-managed"
6m26s       Warning   OwnerRefInvalidNamespace      configmap/grafana-dashboard-elasticsearch   ownerRef [logging.openshift.io/v1/Elasticsearch, namespace: openshift-config-managed, name: elasticsearch, uid: 4c9a14a6-cf2d-45ab-b3f0-aab7bba78d30] does not exist in namespace "openshift-config-managed"
...
1s          Warning   OwnerRefInvalidNamespace      configmap/grafana-dashboard-elasticsearch   ownerRef [logging.openshift.io/v1/Elasticsearch, namespace: openshift-config-managed, name: elasticsearch, uid: 4c9a14a6-cf2d-45ab-b3f0-aab7bba78d30] does not exist in namespace "openshift-config-managed"

Comment 5 Hui Kang 2021-01-05 03:59:28 UTC
Thanks for these info. Somehow I could not reproduce the error in my local 4.6 cluster.
Could you please test if the issue exists in any 4.6 cluster? If not, I will try to spin up a 4.7 cluster. Thanks.

Comment 6 Qiaoling Tang 2021-01-05 06:09:40 UTC
I'm not able to reproduce this issue in a 4.6 cluster. I deployed logging 4.6 and logging 4.7, none of them have this issue.

Comment 10 ewolinet 2021-01-07 17:19:39 UTC
*** Bug 1913688 has been marked as a duplicate of this bug. ***

Comment 12 Qiaoling Tang 2021-01-08 09:02:29 UTC
Verified in elasticsearch-operator.4.7.0-202101080648.p0

Comment 13 Qiaoling Tang 2021-01-11 02:53:35 UTC
Will we backport this fix to 4.6? 

We have same issue when deploy logging 4.6 on a 4.7 OCP cluster. After OCP 4.7 GA, if customers upgrade their OCP version to 4.7 but don't upgrade logging, then they will hit this issue.

Comment 14 Hui Kang 2021-01-11 14:25:51 UTC
Yes, I will backport this to 4.6. Thanks for reminding me.

Comment 20 errata-xmlrpc 2021-02-24 11:22:33 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 (Errata Advisory for Openshift Logging 5.0.0), 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-2021:0652


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