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

Drop filter defined without droptestsspec segfaults

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • NEW
    • Before this update, a drop filter without a dropTestsSpec defined would cause a segfault. With this update, a validation error will be raised and CLO will not segfault.
    • Bug Fix
    • Log Collection - Sprint 251, Log Collection - Sprint 252

      Description of problem:

      If a drop filter is spec'd without an associated dropTestsSpec, CLO produces a nil pointer dereference

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

      Logging 5.9

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create CLF:
        apiVersion: logging.openshift.io/v1
        kind: ClusterLogForwarder
        metadata:
          name: instance
          namespace: openshift-logging
        spec:
          filters:
          - name: my-drop
            type: drop
          pipelines:
          - filterRefs:
            - my-drop
            inputRefs:
            - application
            name: application-logs
            outputRefs:
            - default
        

      Actual results:

      Nil pointer dereference

      Expected results:

      validation error and rejection of CLF

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

                Created:
                Updated:
                Resolved: