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

Collector pods fail to start when a Vector only Cluster Logging instance is created.

XMLWordPrintable

    • Logging (Core) - Sprint 213, Logging (Core) - Sprint 214, Logging (Core) - Sprint 215, Logging (Core) - Sprint 216, Logging (Core) - Sprint 218

      Description of the problem:

      When a Cluster Logging instance is created with only Vector, the collector pods fail to start with below error as no vector.toml configuration is generated.

      oc logs collector-9hmbk -c collector
      Dec 13 07:30:43.534  INFO vector::app: Log level is enabled. level="debug"
      Dec 13 07:30:43.534  INFO vector::sources::host_metrics: PROCFS_ROOT is unset. Using default '/proc' for procfs root.
      Dec 13 07:30:43.535  INFO vector::sources::host_metrics: SYSFS_ROOT is unset. Using default '/sys' for sysfs root.
      Dec 13 07:30:43.535  INFO vector::app: Loading configs. path=[("/etc/vector/vector.toml", Some(Toml))]
      Dec 13 07:30:43.540 ERROR vector::cli: Configuration error. error=No sources defined in the config.
      Dec 13 07:30:43.540 ERROR vector::cli: Configuration error. error=No sinks defined in the config.

      Steps to reproduce the issue.

      1 Deploy Cluster Logging and Elasticsearch operator version 5.4.

      2 Create a Cluster Logging instance with only the Vector collector.

      apiVersion: "logging.openshift.io/v1"
      kind: "ClusterLogging"
      metadata:
        name: "instance"
        namespace: openshift-logging
      spec:
        managementState: "Managed"
        collection:
          logs:
            type: "vector"
            vector: {}
       

      3 Check the collector pods. The pods are failing to start with error:

      oc logs collector-9hmbk -c collector
      Dec 13 07:30:43.534  INFO vector::app: Log level is enabled. level="debug"
      Dec 13 07:30:43.534  INFO vector::sources::host_metrics: PROCFS_ROOT is unset. Using default '/proc' for procfs root.
      Dec 13 07:30:43.535  INFO vector::sources::host_metrics: SYSFS_ROOT is unset. Using default '/sys' for sysfs root.
      Dec 13 07:30:43.535  INFO vector::app: Loading configs. path=[("/etc/vector/vector.toml", Some(Toml))]
      Dec 13 07:30:43.540 ERROR vector::cli: Configuration error. error=No sources defined in the config.
      Dec 13 07:30:43.540 ERROR vector::cli: Configuration error. error=No sinks defined in the config. 

      4 Check the generated vector.toml. The config file is empty.

      oc extract cm/collector
      cat vector.toml 

            jcantril@redhat.com Jeffrey Cantrill
            rhn-support-ikanse Ishwar Kanse
            Ishwar Kanse Ishwar Kanse
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: