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

The invalid event can't be collected.

    XMLWordPrintable

Details

    • False
    • False
    • NEW
    • NEW
    • Undefined
    • Logging (Core) - Sprint 203

    Description

      The invalid status are not present in Event

      • Steps:
      1. Deploy CLF using invalid input in Pipeline
      cat  <<EOF| oc create -f -
      apiVersion: logging.openshift.io/v1
      kind: ClusterLogForwarder
      metadata:
        name: instance
        namespace: openshift-logging
      spec:
        outputs:
          - type: elasticsearch
            indexKey: openshift.labels.team
            url: https://elasticsearch.openshift-logging.svc:9200
            secret:
               name: 'fluentd'
            name: default-es-a
        inputs:
         - name: input-qa
           application:
              namespaces:
              - project-qa1
        pipelines:
          - name: pipeline-a
            inputRefs:
            - input-dev
            outputRefs:
            - default-es-a
            labels:
              team: qa
            parse: json
      EOF
      
      1. Check the clf status
          "status": {
              "conditions": [
                  {
                      "lastTransitionTime": "2021-04-26T08:04:11Z",
                      "message": "all pipelines invalid: [pipeline-a]",
                      "reason": "Invalid",
                      "status": "False",
                      "type": "Ready"
                  }
              ],
              "outputs": {
                  "default-es-a": [
                      {
                          "lastTransitionTime": "2021-04-26T08:04:11Z",
                          "status": "True",
                          "type": "Ready"
                      }
                  ]
              },
              "pipelines": {
                  "pipeline-a": [
                      {
                          "lastTransitionTime": "2021-04-26T08:04:11Z",
                          "message": "invalid: unrecognized inputs: [input-dev], no valid inputs",
                          "reason": "Invalid",
                          "status": "False",
                          "type": "Ready"
                      }
                  ]
              }
      

      #Check the event
      oc get events --field-selector involvedObject.kind=ClusterLogForwarder

      Actual Result

      Only valid records in event.
      LAST SEEN   TYPE     REASON   OBJECT                         MESSAGE
      80m         Normal   Ready    clusterlogforwarder/instance   All pipelines are valid
      74m         Normal   Ready    clusterlogforwarder/instance   All pipelines are valid
      
      

      Expected Result:
      The invalid result can be collected

      Attachments

        Issue Links

          Activity

            People

              jcantril@redhat.com Jeffrey Cantrill
              rhn-support-anli Anping Li
              Anping Li Anping Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: