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

[release-5.6] Degraded condition on LokiStack is reset even when it should persist

    XMLWordPrintable

Details

    • False
    • None
    • False
    • NEW
    • VERIFIED
    • Hide
      Before this update, the Loki Operator reset error conditions set on the LokiStack status too early, interfering with user's ability to identify errors in their configurations. With this update, the error conditions correctly persist until the configuration error is resolved.
      Show
      Before this update, the Loki Operator reset error conditions set on the LokiStack status too early, interfering with user's ability to identify errors in their configurations. With this update, the error conditions correctly persist until the configuration error is resolved.
    • Bug Fix
    • Log Storage - Sprint 236, Log Storage - Sprint 237, Log Storage - Sprint 238

    Description

      Description of problem:

      For some misconfigurations of the LokiStack the Loki Operator emits a "Degraded" condition on the LokiStack to warn the user about it, for example when setting a secret name that does not exist:

       

      apiVersion: loki.grafana.com/v1
      kind: LokiStack
      metadata:
        name: lokistack-dev
        namespace: openshift-logging
      spec:
        size: 1x.extra-small
        storage:
          schemas:
          - version: v12
            effectiveDate: 2022-06-01
          secret:
            name: does-not-exist
            type: s3
        storageClassName: gp3-csi
        tenants:
          mode: openshift-logging
       

      This should result in a "Degraded" condition with a reason MissingObjectStorageSecret and a status of True to show up in the .status.conditions of the LokiStack resource.

      While the condition is created correctly at first, the status is immediately reset to False which should not be the case as long as the error persists.

       

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

      Loki Operator 5.8.0

      How reproducible:

      Steps to Reproduce:

      1. Create LokiStack with error condition
      2. Observe contents of .status.conditions field
      3.  

      Actual results:

      Status of Degraded condition is reset to False even though error is still in configuration.

      Expected results:

      Status of Degraded condition only changes to False when the error is removed from the configuration.

      Additional info:

      Attachments

        Activity

          People

            rojacob@redhat.com Robert Jacob
            rojacob@redhat.com Robert Jacob
            Kabir Bharti Kabir Bharti
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: