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

Loki Operator should not emit ReadyCondition when readiness checks fail

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • VERIFIED
    • Hide
      Before this update, the Loki Operator only used the running state of the pods to determine the readiness of the LokiStack. With this update, the readiness checks of the pods are also taken into account, causing the readiness of the LokiStack to reflect the state of its components.
      Show
      Before this update, the Loki Operator only used the running state of the pods to determine the readiness of the LokiStack. With this update, the readiness checks of the pods are also taken into account, causing the readiness of the LokiStack to reflect the state of its components.
    • Bug Fix
    • Log Storage - Sprint 250, Log Storage - Sprint 251

      Description of problem:

      The status of a LokiStack contains a set of Conditions that signal the overall status of the managed Loki deployment. One of those conditions is the ReadyCondition which should signal that all components are up and ready to receive requests.

      Currently this condition is based only on the running-state of the pods, which causes the ReadyCondition to be emitted by the operator as soon as all components are running.

      Because this is not immediately obvious to the user, it is possible for them to miss a configuration issue which causes one of the components to not get ready or a component not getting ready after a restart.

      How reproducible:

      Deploy a LokiStack and observe both the readiness states of the created Pods and the conditions in the LokiStack.

      Actual results:

      The ReadyCondition has Status=True as soon as all Pods are showing "Running" as status, even when some containers still are unready. Usually the ingester Pod is the last one to get ready.

      Expected results:

      The ReadyCondition should only have Status=True when all the Pods report all containers ready.

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

                Created:
                Updated:
                Resolved: