Bug 1548720
Summary: | fluent-plugin-secure-forward couldn't read the Environment ${HOSTNAME} | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Anping Li <anli> |
Component: | Logging | Assignee: | Noriko Hosoi <nhosoi> |
Status: | CLOSED ERRATA | QA Contact: | Anping Li <anli> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 3.9.0 | CC: | anli, aos-bugs, jcantril, nhosoi, rmeggins |
Target Milestone: | --- | ||
Target Release: | 3.9.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Fluentd secure-forward plug-in supports hostname placeholder "${hostname}" in the configuration file. Although the value is case-sensitive, upper case string "${HOSTNAME}" was set and it failed to pick up the correct hostname of the fluentd container. The bug has been fixed.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2018-03-28 14:30:19 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
Anping Li
2018-02-24 13:52:44 UTC
Hi Anping, In my test env, the environment variable HOSTNAME is set to the fluentd pod hostname (e.g., logging-fluentd-58j4h) and the host is defined in the pod's /etc/hosts like this: 10.128.0.74 logging-fluentd-58j4h Is that the same as your case? That means, is your secure-forward sender's IP address 172.31.69.20? If so, I wonder why you set the same IP address to the secure-forward target host? <server> host 172.31.69.20 port 24284 </server> Submitted a pr: https://github.com/openshift/origin-aggregated-logging/pull/988 Commits pushed to master at https://github.com/openshift/origin-aggregated-logging https://github.com/openshift/origin-aggregated-logging/commit/99175ee3a99f5faf15b9b8e3b89b2cbf4d6d0bc1 Bug 1548720 - fluent-plugin-secure-forward couldn't read the Environment ${HOSTNAME} Replacing the self_hostname value ${HOSTNAME} with the placeholder ${hostname}. https://github.com/openshift/origin-aggregated-logging/commit/57ae6164dc742f613380988f6ebf4bd146014f16 Merge pull request #988 from nhosoi/bz1548720 Bug 1548720 - fluent-plugin-secure-forward couldn't read the Environment ${HOSTNAME} @Noriko, The hostname can be resolved when use ${hostname}. But we still need to update the default values in openshift-ansible. I will open another bug to trace this issue. (In reply to Anping Li from comment #11) > @Noriko, The hostname can be resolved when use ${hostname}. But we still > need to update the default values in openshift-ansible. I will open another > bug to trace this issue. Indeed... Thanks for the opening the bug! I've updated it with this comment. https://bugzilla.redhat.com/show_bug.cgi?id=1553576#c1 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/RHBA-2018:0489 Commit pushed to master at https://github.com/openshift/origin-aggregated-logging https://github.com/openshift/origin-aggregated-logging/commit/1ffa260b2a678cdaaa677181acb74405e1a6c159 Bug 1548720 - fluent-plugin-secure-forward couldn't read the Environment ${HOSTNAME} Replacing the self_hostname value ${HOSTNAME} with the placeholder ${hostname}. (cherry picked from commit 99175ee3a99f5faf15b9b8e3b89b2cbf4d6d0bc1) |