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

configmap grafana-dashboard-elasticsearch is being created and deleted continously

XMLWordPrintable

    • False
    • False
    • NEW
    • VERIFIED
    • Hide
      Before this update, the Elasticsearch Operator reconciled the grafana-dashboard-elasticsarch ConfigMap continuously caused the Elasticsearch Dashboard to get recreated. With this update, the Elasticsearch Operator reconciles the mentioned confimap once at creation and only when updates are available resolves the issue.
      Show
      Before this update, the Elasticsearch Operator reconciled the grafana-dashboard-elasticsarch ConfigMap continuously caused the Elasticsearch Dashboard to get recreated. With this update, the Elasticsearch Operator reconciles the mentioned confimap once at creation and only when updates are available resolves the issue.
    • Logging (LogExp) - Sprint 215

      the configMap grafana-dashboard-elasticsearch, managed by elasticsearch operator is being created + deleted all the time.

      It seems it's removed before the reconcile and immediately created afterwards.

      A possible root cause is that the reconcile code is including explicitly the deletion of this configMap in some conditions:

      func (r *ElasticsearchReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error) {
              // Fetch the Elasticsearch instance
              cluster := &loggingv1.Elasticsearch{}
      
              err := r.Get(ctx, request.NamespacedName, cluster)
              if err != nil {
                      if apierrors.IsNotFound(err) {
                              log.Info("Flushing nodes", "objectKey", request.NamespacedName)
                              elasticsearch.FlushNodes(request.NamespacedName.Name, request.NamespacedName.Namespace)
                              elasticsearch.RemoveDashboardConfigMap(r.Client)
                              if err := console.DeleteKibanaConsoleLink(context.TODO(), r.Client); err != nil {
                                      log.Error(err, "failed to delete consolelink")
                              }
                              return ctrl.Result{}, nil
      
      
      And elasticsearch.RemoveDashboardConfigMap(r.Client) is doing this:
      
      // RemoveDashboardConfigMap removes the config map in the grafana dashboard
      func RemoveDashboardConfigMap(c client.Client) {
      

      https://github.com/openshift/elasticsearch-operator/blob/a7a3859a4a682464b386adfb4fea92e7de3fe0b7/controllers/logging/elasticsearch_controller.go#L48

      This has been added in this pull request:

      https://github.com/openshift/elasticsearch-operator/pull/610/files

      Also we can even check in the console or by the command line that the "created at" is always showing "now" except for some secnods where we can see a former date.

      This has been reported in bz:

      https://bugzilla.redhat.com/show_bug.cgi?id=2060426

      And in the mirrored jira:

      https://issues.redhat.com/browse/OCPBUGSM-41313

      This is not harmful at all. My customer has some logs where we can see the add and delete of this configMap all the time and it's provoking just some confusion.

              sasagarw@redhat.com Sashank Agarwal (Inactive)
              rhn-support-gparente German Parente
              Giriyamma Karagere Ramaswamy Giriyamma Karagere Ramaswamy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: