-
Bug
-
Resolution: Done
-
Normal
-
Logging 5.4.0
-
False
-
False
-
NEW
-
OBSDA-108 - Distribute an alternate Vector Log Collector
-
VERIFIED
-
-
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
- links to
- mentioned on
(5 mentioned on)