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

[Logging 5.9.z] Infra namespaces spec'd as app inputs have log_type set to 'application'

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • NEW
    • Before this update, when infrastructure namespaces were included in application inputs, the `log_type` was set as `application`. With this update, the `log_type` of infrastructure namespaces included in application inputs is set to `infrastructure`.
    • Bug Fix
    • Log Collection - Sprint 262

      Description of problem:

      When infrastructure namespaces are included under `Application` inputs, their log_type is set to application instead of infrastructure.

      Example when using `openshift*`, logs from namespace `openshift-logging` have a log_type set to application.

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

      5.9, 6.0, 61

      How reproducible: Always

      Steps to Reproduce:

      1. Create CLF with application input that includes `openshift*`
      2. apiVersion: observability.openshift.io/v1
        kind: ClusterLogForwarder
        metadata:
          name: clf-71488
          namespace: e2e-test-vector-cw-pknkn
        spec:
          inputs:
          - application:
              includes:
              - namespace: openshift*
            name: new-app
            type: application
          managementState: Managed
          outputs:
          - cloudwatch:
              authentication:
                iamRole:
                  roleARN:
                    key: role_arn
                    secretName: clf-71448
                  token:
                    from: serviceAccount
                type: iamRole
              groupName: logging-71488-ci-op-1wxtsnq8-77988-wqmt4. {.log_type||"none-typed-logs"}
              region: ap-northeast-1
              tuning: {}
            name: cloudwatch
            type: cloudwatch
          pipelines:
          - inputRefs:
            - new-app
            name: to-cloudwatch
            outputRefs:
            - cloudwatch
          serviceAccount:
            name: clf-71448
        

         

      1. Query logs and check log_type

      Actual results:

      log_type of infrastructure namespace logs are set to `application`

      Expected results:

      log_type of infrastructure namespace logs are set to `infrastructure`

              rh-ee-calee Calvin Lee
              rh-ee-calee Calvin Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: