Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1867129

Summary: Collector tuning: No default values are set in fluent.conf for forwarder.fluentd.buffer
Product: OpenShift Container Platform Reporter: Giriyamma <gkarager>
Component: LoggingAssignee: Periklis Tsirakidis <periklis>
Status: CLOSED ERRATA QA Contact: Giriyamma <gkarager>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.6CC: anli, aos-bugs
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 15:09:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Giriyamma 2020-08-07 12:25:48 UTC
Description of problem:
No default values are set in fluent.conf for forwarder.fluentd.buffer

Version-Release number of selected component (if applicable):
4.6

How reproducible:
Always

Steps to Reproduce:
1. Deploy CLO and EO
2. Create clusterlogging instance with following CR:
cat <<EOF | oc create -f -
apiVersion: logging.openshift.io/v1
kind: ClusterLogging
metadata: 
  name: instance
  namespace: openshift-logging
spec: 
  collection: 
    logs: 
      fluentd:
        resources: 
          limits: 
            cpu: 250m
            memory: 1Gi
          requests: 
            cpu: 250m
            memory: 1Gi
      type: fluentd
  curation: 
    curator: 
      schedule: "*/10 * * * *"
    type: curator
  forwarder: 
    fluentd: 
      buffer: 
        flushAtShutdown: false
  logStore: 
    elasticsearch: 
      nodeCount: 1
      redundancyPolicy: ZeroRedundancy
      resources: 
        limits: 
          memory: 2Gi
        requests: 
          cpu: 100m
          memory: 1Gi
      storage: {}
    type: elasticsearch
  managementState: Managed
  visualization: 
    kibana: 
      replicas: 1
    type: kibana
EOF

3. Check the fluentd configuration:
$ oc get cm fluentd -o json | jq -r '.data."fluent.conf"'

Actual results:
    <buffer>
      @type file
      path '/var/lib/fluentd/fluentd_created_by_user'
      queued_chunks_limit_size "#{ENV['BUFFER_QUEUE_LIMIT'] || '1024' }"
      
      total_limit_size      
      chunk_limit_size "#{ENV['BUFFER_SIZE_LIMIT'] || '1m'}"
      flush_mode 
      flush_interval 
      flush_at_shutdown true
      flush_thread_count 0
      retry_type 
      retry_wait 
      retry_max_interval 
      retry_forever true
      # the systemd journald 0.0.8 input plugin will just throw away records if the buffer
      # queue limit is hit - 'block' will halt further reads and keep retrying to flush the
      # buffer to the remote - default is 'block' because in_tail handles that case
      overflow_action 
    </buffer>

Expected results:
There are default values set in the configuration

Comment 3 Giriyamma 2020-08-12 05:35:42 UTC
Verified this bug on Cluster version is 4.6.0-0.nightly-2020-08-12-003456, the issue is fixed.

Comment 5 errata-xmlrpc 2020-10-27 15:09:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.6.1 extras update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4198