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

Collector pods failed to come up when ocpConsole is enabled.

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • VERIFIED
    • Hide
      Before this update, the spec.visualization.kibana.replicas field in the Kibana spec is mandatory, which means that if Kibana is not available, it can cause errors.
      With this update, spec.visualization.kibana.replicas field can be set to null or omit it entirely when Kibana is not needed. This will prevent the Kubernetes API server from raising errors when trying to validate the Kibana spec.
      Show
      Before this update, the spec.visualization.kibana.replicas field in the Kibana spec is mandatory, which means that if Kibana is not available, it can cause errors. With this update, spec.visualization.kibana.replicas field can be set to null or omit it entirely when Kibana is not needed. This will prevent the Kubernetes API server from raising errors when trying to validate the Kibana spec.
    • Log Collection - Sprint 235

      Description of problem: 

      When CL instance is created with ocpConsole, CLO is checking the kibana required values and throws ClusterLogging.logging.openshift.io \"instance\" is invalid: spec.visualization.kibana.replicas: Required value" error. As a result, collector pods fails to come up.

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

      Logging 5.7

      How reproducible:

      Always

      Steps to Reproduce:

      1. Deploy CL with below spec:
      spec:
        managementState: "Managed"
        logStore:
          type: "lokistack"
          lokistack:
            name: lokistack-sample
        collection:
          type: "fluentd"
        visualization:
          ocpConsole:
            logsLimit: 200
            timeout: 60s
          type: ocp-console

      Actual results:

      1. No collector pods are up
      2. Seeing below error in CLO pods

      {"_ts":"2023-04-21T06:03:23.112308004Z","_level":"0","_component":"cluster-logging-operator","_message":"Error updating ","\u0026TypeMeta{Kind:ClusterLogging,APIVersion:logging.openshift.io/v1,}":"_error"}
      {"_ts":"2023-04-21T06:03:23.112361679Z","_level":"0","_component":"cluster-logging-operator","_message":"Error reconciling clusterlogging instance","_error":{"msg":"unable to create or update logstore for \"instance\": Failed to set finalizer for LokiStack RBAC rules.: Can not update ClusterLogging finalizers.: ClusterLogging.logging.openshift.io \"instance\" is invalid: spec.visualization.kibana.replicas: Required value"}}
      {"_ts":"2023-04-21T06:04:48.203050939Z","_level":"0","_component":"cluster-logging-operator","_message":"Error updating ","\u0026TypeMeta{Kind:ClusterLogging,APIVersion:logging.openshift.io/v1,}":"_error"}
      {"_ts":"2023-04-21T06:04:48.203108015Z","_level":"0","_component":"cluster-logging-operator","_message":"Error reconciling clusterlogging instance","_error":{"msg":"unable to create or update logstore for \"instance\": Failed to set finalizer for LokiStack RBAC rules.: Can not update ClusterLogging finalizers.: ClusterLogging.logging.openshift.io \"instance\" is invalid: spec.visualization.kibana.replicas: Required value"}}
      {"_ts":"2023-04-21T06:04:48.216874154Z","_level":"0","_component":"cluster-logging-operator","_message":"Error updating ","\u0026TypeMeta{Kind:ClusterLogging,APIVersion:logging.openshift.io/v1,}":"_error"}
      {"_ts":"2023-04-21T06:04:48.21691933Z","_level":"0","_component":"cluster-logging-operator","_message":"Error reconciling clusterlogging instance","_error":{"msg":"unable to create or update logstore for \"instance\": Failed to set finalizer for LokiStack RBAC rules.: Can not update ClusterLogging finalizers.: ClusterLogging.logging.openshift.io \"instance\" is invalid: spec.visualization.kibana.replicas: Required value"}}
      
      

            vparfono Vitalii Parfonov
            gkarager Giriyamma Karagere Ramaswamy (Inactive)
            Giriyamma Karagere Ramaswamy Giriyamma Karagere Ramaswamy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: