Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-6280

grafana-dashboard-cluster-logging configmap is not recreated when the Cluster Logging Operator is installed in single namespace

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • NEW
    • Hide
      Before this change the collector metrics dashboard could be removed after an operator upgrade because of race condition during the transition from the old pod deployment to the new. This change adds labels to the dashboard configmap to identify the upgraded deployment as the current owner so that it will not be removed
      Show
      Before this change the collector metrics dashboard could be removed after an operator upgrade because of race condition during the transition from the old pod deployment to the new. This change adds labels to the dashboard configmap to identify the upgraded deployment as the current owner so that it will not be removed
    • Bug Fix
    • Log Collection - Sprint 265
    • Low

      Description of problem:

      The `grafana-dashboard-cluster-logging` cm is not recreated when the Cluster Logging Operator is installed in Single Namespace, this means, only in `openshift-logging` leading to don't be visible the Dashboard `Logging / Collection"

      Then, an user installing Logging before 5.8 and upgrading until 5.9.0 hit the bug https://issues.redhat.com/browse/LOG-5308. With this bug, the "Logging / Collection" was removed and even with the patch, if the Operator Group continues as single namespace:

      apiVersion: operators.coreos.com/v1
      kind: OperatorGroup
      metadata:
        name: cluster-logging
        namespace: openshift-logging 
      spec:
        targetNamespaces:
          - openshift-logging
      

      Then, the Dashboard is not watched by the Cluster Logging Operator and never recreated

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

      4.14
      CLO 5.8.13 and 5.9.7 where z is the latest version available now

      How reproducible:

      Always

      Steps to Reproduce:

      1. Install Cluster Logging 5.8 or 5.9 in latest version in single namespace
        apiVersion: operators.coreos.com/v1
        kind: OperatorGroup
        metadata:
          name: cluster-logging
          namespace: openshift-logging 
        spec:
          targetNamespaces:
            - openshift-logging
        
      1. Delete the configmap containing the Logging / Collection Dashboard
        oc delete cm  grafana-dashboard-cluster-logging -n openshift-config-managed

      Actual results:

      Verify that the Cluster Logging Operator is not watching the resource, then, it's not recreated. Similar to the reported in https://issues.redhat.com/browse/LOG-5308.

        $ oc get cm grafana-dashboard-cluster-logging -n openshift-config-managed
         Error from server (NotFound): configmaps "grafana-dashboard-cluster-logging" not found
        

      Expected results:

      The configmap `grafana-dashboard-cluster-logging` gets recreated by the ClusterLogging Operator as this last is watching the resource.

      Workaround:

      Follow the steps for "Upgrading the Red Hat OpenShift Logging Operator to watch all namespaces".

              jcantril@redhat.com Jeffrey Cantrill
              rhn-support-ocasalsa Oscar Casal Sanchez
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: