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

[Logging 6.2] Otel dataModel is enabled without the tech-preview annotation on CLF

XMLWordPrintable

    • Future Sustainability
    • False
    • None
    • False
    • NEW
    • NEW
    • Hide
      Before this fix, a ClusterLogForwarder configured for a Lokistack output with the Otel data model would pass validation without the tech preview annotation. With this fix, the ClusterLogForwarder configured for a Lokistack output with the Otel data model now fails validation if the tech preview annotation is not included.
      Show
      Before this fix, a ClusterLogForwarder configured for a Lokistack output with the Otel data model would pass validation without the tech preview annotation. With this fix, the ClusterLogForwarder configured for a Lokistack output with the Otel data model now fails validation if the tech preview annotation is not included.
    • Bug Fix
    • Log Collection - Sprint 272, Log Collection - Sprint 273

      Description: As per Logging documentation, the tech-preview annotation observability.openshift.io/tech-preview-otlp-output: "enabled" is required to enable forwarding to LokiStack on Otel dataModel but this feature works even without the annotation.

      docs: https://docs.redhat.com/en/documentation/openshift_container_platform/4.17/html/logging/logging-6-2#quick-start-opentelemetry_logging-6x-6.2

      Steps to reproduce:
      a) Create LokiStack CR
      b) Create CLF to forward to LokiStack using Otel dataModel and without the annotation

      How reproducible: Always

      Logging Version: Log 6.3.0, Log 6.2.2

      Expected Result: 
      Collector should not start without the tech-preview annotation and there is an error message on the CLF

      Actual Result:
      No error on the CLF and collector pods start forwarding logs

      Additional Info:

      CLF used:

      apiVersion: observability.openshift.io/v1
      kind: ClusterLogForwarder
      metadata:
        name: logging-clf
        namespace: openshift-logging
      spec:
        managementState: Managed
        outputs:
          - lokiStack:
              authentication:
                token:
                  from: serviceAccount
              dataModel: Otel
              target:
                name: logging-loki
                namespace: openshift-logging
            name: logging-loki
            tls:
              ca:
                configMapName: openshift-service-ca.crt
                key: service-ca.crt
            type: lokiStack
        pipelines:
          - inputRefs:
              - application
              - infrastructure
              - audit
            name: logs-to-loki
            outputRefs:
              - logging-loki
        serviceAccount:
          name: loki-otlp
      status:
        conditions:
          - lastTransitionTime: '2025-06-03T19:49:44Z'
            message: 'permitted to collect log types: [application audit infrastructure]'
            reason: ClusterRolesExist
            status: 'True'
            type: observability.openshift.io/Authorized
          - lastTransitionTime: '2025-06-03T19:49:44Z'
            message: ''
            reason: ValidationSuccess
            status: 'True'
            type: observability.openshift.io/Valid
        inputConditions:
          - lastTransitionTime: '2025-06-03T19:52:00Z'
            message: input "application" is valid
            reason: ValidationSuccess
            status: 'True'
            type: observability.openshift.io/ValidInput-application
          - lastTransitionTime: '2025-06-03T19:52:00Z'
            message: input "infrastructure" is valid
            reason: ValidationSuccess
            status: 'True'
            type: observability.openshift.io/ValidInput-infrastructure
          - lastTransitionTime: '2025-06-03T19:52:00Z'
            message: input "audit" is valid
            reason: ValidationSuccess
            status: 'True'
            type: observability.openshift.io/ValidInput-audit
        outputConditions:
          - lastTransitionTime: '2025-06-03T19:49:44Z'
            message: output "logging-loki" is valid
            reason: ValidationSuccess
            status: 'True'
            type: observability.openshift.io/ValidOutput-logging-loki
        pipelineConditions:
          - lastTransitionTime: '2025-06-03T19:49:44Z'
            message: pipeline "logs-to-loki" is valid
            reason: ValidationSuccess
            status: 'True'
            type: observability.openshift.io/ValidPipeline-logs-to-loki

              rh-ee-calee Calvin Lee
              rhn-support-kbharti Kabir Bharti
              Kabir Bharti Kabir Bharti
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: