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

Collectors in crashloop due to incorrect secret.kubernetes_secret.type

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • NEW
    • VERIFIED
    • Release Note Not Required
    • Log Collection - Sprint 266, Log Collection - Sprint 267
    • Critical

      Description:
      Collectors are in crashloop when forwarding to LokiStack logStore due to below error. 

      Error:

      Creating the directory used for persisting Vector state /var/lib/vector/openshift-logging/logging-clf
      Starting Vector process...
      2025-02-04T17:39:48.801501Z ERROR vector::cli: Configuration error. error=unknown variant `directory`, expected one of `exec`, `file`, `test`
      in `secret.kubernetes_secret.type`

      under vector.toml, type should be 'file' instead of 'directory'

      # Load sensitive data from files
      [secret.kubernetes_secret]
      type = "directory"
      path = "/var/run/ocp-collector/secrets"

      How reproducible: Always

      Logging Version: Logging 6.2

      Steps to reproduce:
      a) Deploy CLO and LO 6.2
      b) Forward logs to LokiStack with viaq or Otel dataModel.
      c) Observe collector status

      Actual Result: Collectors in crashloop error

      Expected Result: Collector should without expected.

      Additional info:

       

              vparfono Vitalii Parfonov
              rhn-support-kbharti Kabir Bharti
              Kabir Bharti Kabir Bharti
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: