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

Loki output without URL passes validation and results in CrashloopBackoff

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • ON_QA
    • Without this changes, missing URLs in Loki output triggered CrashloopBackoff in collector pod. This update enforces URL validation to preventing crashes.
    • Bug Fix
    • Log Collection - Sprint 245, Log Collection - Sprint 246, Log Collection - Sprint 247, Log Collection - Sprint 248

      Description of problem:

      This "valid" CLF results in CrashloopBackoff:

      apiVersion: logging.openshift.io/v1
      kind: ClusterLogForwarder
      metadata:
        creationTimestamp: "2023-11-15T19:05:06Z"
        generation: 2
        name: instance
        namespace: openshift-logging
        resourceVersion: "63696"
        uid: 1d8f65af-360c-4464-8972-92e4586122ca
      spec:
        outputs:
        - limit:
            maxRecordsPerSecond: 100
          name: foo
          type: loki
        pipelines:
        - inputRefs:
          - application
          outputRefs:
          - foo
      status:
        conditions:
        - lastTransitionTime: "2023-11-15T19:22:48Z"
          status: "True"
          type: Ready
      

      logs:

      $ oc logs collector-88qh2
      Creating the directory used for persisting Vector state /var/lib/vector
      Starting Vector process...
      2023-11-15T19:16:10.191264Z ERROR vector::cli: Configuration error. error=empty string
      in `sinks.foo`
      
      
      

              vparfono Vitalii Parfonov
              jcantril@redhat.com Jeffrey Cantrill
              Kabir Bharti Kabir Bharti
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: