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

ValidLokistackOTLPOutputs validation is shown for non-LokiStack outputs

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • NEW
    • Bug Fix
    • Log Collection - Sprint 262

      Description of problem:

      The condition observability.openshift.io/ValidLokistackOTLPOutputs should be validated/shown on CLF when the output type is LokiStack and dataModel chosen is Otel but this conditions is validated even for non-LokiStack outputs.

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

      Logging 6.1

      How reproducible:

      Always

      Steps to Reproduce:

      1. Deploy cluster-logging.v6.1.0
      2. Forward Logs to non-LokiStack output for e.g. GCL
      3. Validate CLF conditions

      Expected results:

      observability.openshift.io/ValidLokistackOTLPOutputs validation should not be done for non-LokiStack outputs. 

      Actual results:

      observability.openshift.io/ValidLokistackOTLPOutputs is validated/shown under CLF status

      Additional info:

      CLF:

      spec:
        managementState: Managed
        outputs:
          - googleCloudLogging:
              authentication:
                credentials:
                  key: google-application-credentials.json
                  secretName: gcp-secret
              id:
                type: project
                value: openshift-qe
              logId: kbharti-1104a-lvpzn
              tuning:
                deliveryMode: AtMostOnce
                maxRetryDuration: 20
                maxWrite: 10M
                minRetryDuration: 10
            name: gcp-1
            type: googleCloudLogging
        pipelines:
          - inputRefs:
              - application
              - infrastructure
              - audit
            name: my-output-pipeline
            outputRefs:
              - gcp-1
        serviceAccount:
          name: my-gcp-sa
      status:
        conditions:
          - lastTransitionTime: '2024-11-04T16:30:48Z'
            message: ''
            reason: ValidationSuccess
            status: 'True'
            type: observability.openshift.io/ValidLokistackOTLPOutputs
          - lastTransitionTime: '2024-11-04T16:30:48Z'
            message: 'permitted to collect log types: [application audit infrastructure]'
            reason: ClusterRolesExist
            status: 'True'
            type: observability.openshift.io/Authorized
          - lastTransitionTime: '2024-11-04T16:30:48Z'
            message: ''
            reason: ValidationSuccess
            status: 'True'
            type: observability.openshift.io/Valid
          - lastTransitionTime: '2024-11-04T16:30:53Z'
            message: ''
            reason: ReconciliationComplete
            status: 'True'
            type: Ready
        inputConditions:
          - lastTransitionTime: '2024-11-04T16:39:31Z'
            message: input "application" is valid
            reason: ValidationSuccess
            status: 'True'
            type: observability.openshift.io/ValidInput-application
          - lastTransitionTime: '2024-11-04T16:39:31Z'
            message: input "infrastructure" is valid
            reason: ValidationSuccess
            status: 'True'
            type: observability.openshift.io/ValidInput-infrastructure
          - lastTransitionTime: '2024-11-04T16:39:31Z'
            message: input "audit" is valid
            reason: ValidationSuccess
            status: 'True'
            type: observability.openshift.io/ValidInput-audit
        outputConditions:
          - lastTransitionTime: '2024-11-04T16:30:48Z'
            message: output "gcp-1" is valid
            reason: ValidationSuccess
            status: 'True'
            type: observability.openshift.io/ValidOutput-gcp-1
        pipelineConditions:
          - lastTransitionTime: '2024-11-04T16:30:48Z'
            message: pipeline "my-output-pipeline" is valid
            reason: ValidationSuccess
            status: 'True'
            type: observability.openshift.io/ValidPipeline-my-output-pipeline

              cahartma@redhat.com Casey Hartman
              rhn-support-kbharti Kabir Bharti
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: