Open sylvainOL opened 11 months ago
Hello, after failure to use 1.14 and 1.15, I decided to give a try to 1.16 but no luck :(
I've got an issue with fluent-plugin-enhance-k8s-metadataplugin:
fluent-plugin-enhance-k8s-metadata
2023-12-19 15:07:03 +0000 [info]: init supervisor logger path=nil rotate_age=nil rotate_size=nil 2023-12-19 15:07:03 +0000 [info]: parsing config file is succeeded path="/fluentd/etc/fluent.conf" 2023-12-19 15:07:04 +0000 [info]: gem 'fluentd' version '1.16.3' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-mixin-config-placeholders' version '0.4.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-aliyun-oss' version '0.0.1' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-cloudwatch-logs' version '0.14.3' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-concat' version '2.5.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-datadog' version '0.14.2' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-datapoint' version '2.0.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-dedot_filter' version '1.0.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-detect-exceptions' version '0.0.15' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-elasticsearch' version '5.4.2' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-enhance-k8s-metadata' version '2.0.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-events' version '2.0.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-gcs' version '0.4.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-gelf-hs' version '1.0.8' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-geoip' version '1.3.2' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-grafana-loki' version '1.2.20' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-grok-parser' version '2.6.2' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-kafka' version '0.19.2' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-kinesis' version '3.4.2' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-kube-events-timestamp' version '0.1.3' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-kubernetes-metadata-filter' version '2.5.3' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-kubernetes-sumologic' version '2.0.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-label-router' version '0.2.10' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-logzio' version '0.2.2' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-mattermost' version '0.2.2' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-multi-format-parser' version '1.1.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-mysqlslowquery' version '0.0.9' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-newrelic' version '1.2.2' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-opensearch' version '1.1.4' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-parser-logfmt' version '0.0.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-prometheus' version '2.1.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-prometheus-format' version '2.0.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-protobuf' version '2.0.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-record-modifier' version '2.2.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-record-modifier' version '2.1.1' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-redis' version '0.3.5' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-remote-syslog' version '1.1' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-rewrite-tag-filter' version '2.4.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-s3' version '1.7.2' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-splunk-hec' version '1.3.3' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-sqs' version '3.0.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-sumologic_output' version '1.8.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-syslog_rfc5424' version '0.9.0.rc.8' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-systemd' version '1.0.5' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-tag-normaliser' version '0.1.2' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-throttle' version '0.0.5' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-ua-parser' version '1.2.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-vmware-log-intelligence' version '2.0.8' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-vmware-loginsight' version '1.4.2' 2023-12-19 15:07:04 +0000 [info]: gem 'fluent-plugin-webhdfs' version '1.5.0' 2023-12-19 15:07:04 +0000 [info]: gem 'fluentd' version '1.16.2' 2023-12-19 15:07:04 +0000 [info]: [clusterflow:logging:fluent-cluster-flow:0] DeDot will recurse nested hashes and arrays 2023-12-19 15:07:05 +0000 [info]: [globalFilter:0] Kubernetes URL is not set - inspecting environment 2023-12-19 15:07:05 +0000 [info]: [globalFilter:0] cache_ttl: 7200, cache_size: 1000, cache_refresh: 3600, cache_refresh_variation: 900 2023-12-19 15:07:05 +0000 [info]: [globalFilter:0] Initializing Kubernetes API clients 2023-12-19 15:07:05 +0000 [info]: [globalFilter:0] create client with URL: https://10.43.0.1:443/api and apiVersion: v1 2023-12-19 15:07:05 +0000 [error]: [globalFilter:0] Error creating client (:net_http_persistent is not registered on Faraday::Adapter), retrying in 2 second(s)... 2023-12-19 15:07:07 +0000 [info]: [globalFilter:0] create client with URL: https://10.43.0.1:443/api and apiVersion: v1 2023-12-19 15:07:07 +0000 [error]: [globalFilter:0] Error creating client (:net_http_persistent is not registered on Faraday::Adapter), retrying in 4 second(s)... 2023-12-19 15:07:11 +0000 [info]: [globalFilter:0] create client with URL: https://10.43.0.1:443/api and apiVersion: v1 2023-12-19 15:07:11 +0000 [error]: [globalFilter:0] Error creating client (:net_http_persistent is not registered on Faraday::Adapter), retrying in 8 second(s)... 2023-12-19 15:07:19 +0000 [info]: [globalFilter:0] create client with URL: https://10.43.0.1:443/api and apiVersion: v1 2023-12-19 15:07:19 +0000 [error]: [globalFilter:0] Error creating client (:net_http_persistent is not registered on Faraday::Adapter), retrying in 16 second(s)... 2023-12-19 15:07:35 +0000 [info]: [globalFilter:0] create client with URL: https://10.43.0.1:443/api and apiVersion: v1 2023-12-19 15:07:35 +0000 [error]: [globalFilter:0] Error creating client (:net_http_persistent is not registered on Faraday::Adapter), retrying in 32 second(s)... 2023-12-19 15:08:07 +0000 [info]: [globalFilter:0] create client with URL: https://10.43.0.1:443/api and apiVersion: v1 2023-12-19 15:08:07 +0000 [error]: [globalFilter:0] Error creating client (:net_http_persistent is not registered on Faraday::Adapter), retrying in 64 second(s)... 2023-12-19 15:09:11 +0000 [info]: [globalFilter:0] create client with URL: https://10.43.0.1:443/api and apiVersion: v1 2023-12-19 15:09:11 +0000 [error]: [globalFilter:0] Error creating client (:net_http_persistent is not registered on Faraday::Adapter), retrying in 128 second(s)... 2023-12-19 15:11:19 +0000 [info]: [globalFilter:0] create client with URL: https://10.43.0.1:443/api and apiVersion: v1 /usr/local/bundle/gems/faraday-2.7.12/lib/faraday/middleware_registry.rb:57:in `lookup_middleware': :net_http_persistent is not registered on Faraday::Adapter (Faraday::Error) from /usr/local/bundle/gems/faraday-2.7.12/lib/faraday/rack_builder.rb:113:in `adapter' from /usr/local/lib/ruby/3.2.0/forwardable.rb:240:in `adapter' from /usr/local/bundle/gems/fluent-plugin-enhance-k8s-metadata-2.0.0/lib/sumologic/kubernetes/connector.rb:55:in `create_client' from /usr/local/bundle/gems/fluent-plugin-enhance-k8s-metadata-2.0.0/lib/sumologic/kubernetes/connector.rb:16:in `block in core_clients' from /usr/local/bundle/gems/fluent-plugin-enhance-k8s-metadata-2.0.0/lib/sumologic/kubernetes/connector.rb:15:in `map' from /usr/local/bundle/gems/fluent-plugin-enhance-k8s-metadata-2.0.0/lib/sumologic/kubernetes/connector.rb:15:in `core_clients' from /usr/local/bundle/gems/fluent-plugin-enhance-k8s-metadata-2.0.0/lib/sumologic/kubernetes/connector.rb:11:in `connect_kubernetes' from /usr/local/bundle/gems/fluent-plugin-enhance-k8s-metadata-2.0.0/lib/fluent/plugin/filter_enhance_k8s_metadata.rb:59:in `configure' from /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/plugin.rb:187:in `configure' from /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/agent.rb:154:in `add_filter' from /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/agent.rb:72:in `block in configure' from /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/agent.rb:64:in `each' from /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/agent.rb:64:in `configure' from /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/root_agent.rb:149:in `configure' from /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/engine.rb:105:in `configure' from /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/engine.rb:80:in `run_configure' from /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/supervisor.rb:571:in `run_supervisor' from /usr/local/bundle/gems/fluentd-1.16.3/lib/fluent/command/fluentd.rb:352:in `<top (required)>' from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require' from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require' from /usr/local/bundle/gems/fluentd-1.16.3/bin/fluentd:15:in `<top (required)>' from /usr/local/bundle/bin/fluentd:25:in `load' from /usr/local/bundle/bin/fluentd:25:in `<main>'
I tried to see the issue and it seems the gem faraday-net_http_persistent is missing.
faraday-net_http_persistent
My configuration is "basic":
--- apiVersion: logging.banzaicloud.io/v1beta1 kind: Logging metadata: name: logging namespace: logging spec: controlNamespace: logging enableRecreateWorkloadOnImmutableFieldChange: true flowConfigCheckDisabled: true fluentd: annotations: proxy.istio.io/config: '{ "holdApplicationUntilProxyStarts": true }' sidecar.istio.io/proxyMemory: '2Gi' sidecar.istio.io/proxyMemoryLimit: '5Gi' bufferStorageVolume: pvc: spec: accessModes: - ReadWriteOnce resources: requests: storage: 3Gi storageClassName: fast volumeMode: Filesystem configCheckAnnotations: sidecar.istio.io/inject: 'false' extraVolumes: - containerName: fluentd path: /fluentd/log volume: emptyDir: sizeLimit: 1Gi volumeName: log-out image: pullPolicy: Always # renovate: datasource=docker repository: ghcr.io/kube-logging/fluentd tag: v1.16-full-build.122 logLevel: info enabled: false globalFilters: - enhanceK8s: {}
I tried adding that gem, but it still fails for me with the same message
Hello, after failure to use 1.14 and 1.15, I decided to give a try to 1.16 but no luck :(
I've got an issue with
fluent-plugin-enhance-k8s-metadata
plugin:I tried to see the issue and it seems the gem
faraday-net_http_persistent
is missing.My configuration is "basic":