Bug 1505273 - fluentd failed to load plugin when remote_syslog was enabled
Summary: fluentd failed to load plugin when remote_syslog was enabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.7.0
Assignee: Rich Megginson
QA Contact: Anping Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-23 07:59 UTC by Anping Li
Modified: 2017-11-28 22:18 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
No doc update needed since this bug was found by internal QE before it got to customers.
Clone Of:
Environment:
Last Closed: 2017-11-28 22:18:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
The mux fluentd logs (4.59 KB, application/x-gzip)
2017-10-23 07:59 UTC, Anping Li
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift origin-aggregated-logging pull 744 0 None None None 2020-04-23 14:41:12 UTC
Red Hat Product Errata RHSA-2017:3188 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-29 02:34:54 UTC

Description Anping Li 2017-10-23 07:59:18 UTC
Created attachment 1342036 [details]
The mux fluentd logs

Description of problem:
Once enabled remote_syslog varaibles, the fluentd pod can not be started.  it report "cannot load such file -- /etc/fluent/plugin/*.rb (LoadError)".

Version-Release number of selected component (if applicable):
logging-fluentd:v3.7.0-0.174.0.0

How reproducible:
always

Steps to Reproduce:
1. Enable syslog for mux pod
   openshift_logging_use_mux=true
   openshift_logging_mux_remote_syslog=true
   openshift_logging_mux_remote_syslog_host=10.66.xxx.xxx
2. Deploy logging and check the mux pod logs

Actual results:
from /usr/bin/fluentd:23:in `<main>'
2017-10-23 01:11:34 -0400 [error]: fluentd main process died unexpectedly. restarting.
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- /etc/fluent/plugin/*.rb (LoadError)
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/share/gems/gems/fluentd-0.12.39/lib/fluent/plugin.rb:89:in `block in load_plugin_dir'
    from /usr/share/gems/gems/fluentd-0.12.39/lib/fluent/plugin.rb:87:in `each'
    from /usr/share/gems/gems/fluentd-0.12.39/lib/fluent/plugin.rb:87:in `load_plugin_dir'
    from /usr/share/gems/gems/fluentd-0.12.39/lib/fluent/engine.rb:138:in `load_plugin_dir'
    from /usr/share/gems/gems/fluentd-0.12.39/lib/fluent/supervisor.rb:519:in `block in init_engine'
    from /usr/share/gems/gems/fluentd-0.12.39/lib/fluent/supervisor.rb:516:in `each'
    from /usr/share/gems/gems/fluentd-0.12.39/lib/fluent/supervisor.rb:516:in `init_engine'
    from /usr/share/gems/gems/fluentd-0.12.39/lib/fluent/supervisor.rb:158:in `block in start'
    from /usr/share/gems/gems/fluentd-0.12.39/lib/fluent/supervisor.rb:366:in `call'
    from /usr/share/gems/gems/fluentd-0.12.39/lib/fluent/supervisor.rb:366:in `main_process'
    from /usr/share/gems/gems/fluentd-0.12.39/lib/fluent/supervisor.rb:339:in `block in supervise'
    from /usr/share/gems/gems/fluentd-0.12.39/lib/fluent/supervisor.rb:338:in `fork'
    from /usr/share/gems/gems/fluentd-0.12.39/lib/fluent/supervisor.rb:338:in `supervise'
    from /usr/share/gems/gems/fluentd-0.12.39/lib/fluent/supervisor.rb:156:in `start'
    from /usr/share/gems/gems/fluentd-0.12.39/lib/fluent/command/fluentd.rb:173:in `<top (required)>'
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/share/gems/gems/fluentd-0.12.39/bin/fluentd:5:in `<top (required)>'
    from /usr/bin/fluentd:23:in `load'
    from /usr/bin/fluentd:23:in `<main>'
2017-10-23 01:11:35 -0400 [error]: fluentd main process died unexpectedly. restarting.

Expected results:


Additional info:

Comment 1 Jeff Cantrill 2017-10-24 17:37:55 UTC
@Jan, I am assigning to you as you were working on vendoring the other plugin as well

Comment 2 openshift-github-bot 2017-10-24 23:01:11 UTC
Commits pushed to master at https://github.com/openshift/origin-aggregated-logging

https://github.com/openshift/origin-aggregated-logging/commit/f5d1c3ad138ab42c3b39d0c9cf6cbfc4b603a600
Bug 1505273 fluentd failed to load plugin when remote_syslog was enabled

https://bugzilla.redhat.com/show_bug.cgi?id=1505273
The syslog plugin is installed in a different location when using
RPM packaging.

https://github.com/openshift/origin-aggregated-logging/commit/25ac8982f945fab9c95fb7ccda5e13c2a20c5013
Merge pull request #744 from richm/bug-1505273

Automatic merge from submit-queue.

Bug 1505273 fluentd failed to load plugin when remote_syslog was enabled

https://bugzilla.redhat.com/show_bug.cgi?id=1505273
The syslog plugin is installed in a different location when using
RPM packaging.
/test

Comment 3 Rich Megginson 2017-10-25 01:39:39 UTC
koji_builds:
  https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=612936
repositories:
  brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-fluentd:rhaos-3.7-rhel-7-docker-candidate-79931-20171025012405
  brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-fluentd:latest
  brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-fluentd:v3.7.0
  brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-fluentd:v3.7.0-0.177.0.1
  brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-fluentd:v3.7

Comment 4 Anping Li 2017-10-31 09:11:17 UTC
Verified and pass with fluentd v3.7.0-0.188.0.0

Comment 7 errata-xmlrpc 2017-11-28 22:18:47 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, 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/RHSA-2017:3188


Note You need to log in before you can comment on or make changes to this bug.