Bug 1202705
Summary: | rsyslog mmopenshift does not log namespace in scaled gears | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Josep 'Pep' Turro Mauri <pep> |
Component: | Containers | Assignee: | Timothy Williams <tiwillia> |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 2.2.0 | CC: | adellape, anli, bleanhar, ederevea, jokerman, libra-onpremise-devel, mmccomas, tiwillia |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | rsyslog7-7.4.10-4.el6op | Doc Type: | Bug Fix |
Doc Text: |
When a message came through rsyslog from a gear with a new UID, the mmopenshift plug-in set the metadata keys and values in cache for each environment variable specified in the template. If an environment variable was not present at this time, the key would not be created and stored in the metadata cache. This bug fix updates the mmopenshift plug-in so that on every message, if a key expected to be present in the metadata cache is not present, the plug-in checks for the environment variable. If the environment variable exists, the plug-in sets the metadata key to the value of the environment variable. Otherwise, it checks again on the next message. As a result, new gears from a scaled application may report a NULL namespace a few times until the OPENSHIFT_NAMESPACE environment variable is defined. Additionally, any other environment variables in the template will have the same checks. Note that all environment variables specified in the template are expected to be present for all applications. If an environment variable is specified that does not exist for an application, a slight performance degradation may be seen as the environment variable will be checked for on every message.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-07-21 19:12:06 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
Josep 'Pep' Turro Mauri
2015-03-17 09:28:23 UTC
Verified and pass with the package in brew 1) rpm package [root@broker ~]# rpm -qa|grep syslog7 rsyslog7-mmopenshift-7.4.10-3.el6op.bz1202705.1.x86_64 rsyslog7-7.4.10-3.el6_6.x86_64 2) create scale application and scale up gear, and check the syslog message, the ns field are set correctly. cat /var/log/openshift_gears May 18 15:47:32 broker mysql[12388]: app=myapp ns=anlidom appUuid=555998714add7114b7000030 gearUuid=555999054add7114b7000065 150518 15:47:32 [Note] /opt/rh/mysql55/root/usr/libexec/mysqld: ready for connections. May 18 15:47:32 broker mysql[12388]: app=myapp ns=anlidom appUuid=555998714add7114b7000030 gearUuid=555999054add7114b7000065 150518 15:47:32 [Note] /opt/rh/mysql55/root/usr/libexec/mysqld: ready for connections. [root@broker ~]# cat /var/log/messages|grep "ns= " [root@broker ~]# 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://rhn.redhat.com/errata/RHBA-2015-1463.html |