Bug 1399657 - Goferd on client system prints syslog messages into pts/tty sessions.
Summary: Goferd on client system prints syslog messages into pts/tty sessions.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.2.0
Hardware: x86_64
OS: Linux
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-29 14:10 UTC by yohan.bataille
Modified: 2021-09-09 12:00 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-27 22:42:24 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description yohan.bataille 2016-11-29 14:10:26 UTC
Description of problem:

Goferd on client system prints syslog messages into pts/tty sessions.
We received a lot of complaints from our users.

Example :
Message from syslogd@slzurncsgl02 at Nov 29 14:30:06 ...
 �<30>goferd: [INFO][pulp.agent.c7e5a2c6-c83d-4e9c-9dac-4e0c61f4fb10] root:487 - connecting to slttpr0fxl01.zres.ztech:5647...

Message from syslogd@slzurncsgl02 at Nov 29 14:30:07 ...
 �<30>goferd: [INFO][pulp.agent.c7e5a2c6-c83d-4e9c-9dac-4e0c61f4fb10] root:507 - connected to slttpr0fxl01.zres.ztech:5647

Message from syslogd@slzurncsgl02 at Nov 29 14:30:17 ...
 �<30>goferd: [INFO][pulp.agent.c7e5a2c6-c83d-4e9c-9dac-4e0c61f4fb10] root:487 - connecting to slttpr0fxl01.zres.ztech:5647...

Message from syslogd@slzurncsgl02 at Nov 29 14:30:17 ...
 �<30>goferd: [INFO][pulp.agent.c7e5a2c6-c83d-4e9c-9dac-4e0c61f4fb10] root:507 - connected to slttpr0fxl01.zres.ztech:5647

Message from syslogd@slzurncsgl02 at Nov 29 14:30:27 ...
 �<30>goferd: [INFO][pulp.agent.c7e5a2c6-c83d-4e9c-9dac-4e0c61f4fb10] root:487 - connecting to slttpr0fxl01.zres.ztech:5647...

Message from syslogd@slzurncsgl02 at Nov 29 14:30:28 ...
 �<30>goferd: [INFO][pulp.agent.c7e5a2c6-c83d-4e9c-9dac-4e0c61f4fb10] root:507 - connected to slttpr0fxl01.zres.ztech:5647


Version-Release number of selected component (if applicable):
# yum info katello-agent
Installed Packages
Name        : katello-agent
Arch        : noarch
Version     : 2.2.6
Release     : 1.el6
Size        : 49 k
Repo        : installed
From repo   : rhel-6-server-satellite-tools-6.1-rpms
Summary     : The Katello Agent
URL         : https://fedorahosted.org/katello/
License     : LGPLv2
Description : Provides plugin for gofer, which allows communicating with Katello server
            : and execute scheduled actions.


Expected results:
Goferd should not spam pts/tty sessions.

Additional info:
As a workaround, I tried editing goferd configuration /etc/gofer/agent.conf to only log critical events (since the events logged have INFO severity) but apparently it was simply ignored (which is probably a bug too).

Comment 1 Chris Duryee 2016-11-29 18:42:30 UTC
There is a bug related to this that affects older versions of RHEL. Are you using an older version of RHEL 6?

Comment 2 yohan.bataille 2016-11-30 09:05:32 UTC
Hello,
We are using RHEL 6.4. I tried to find the bug you are referring to but failed. Can you paste me the link ?

We just started using Satellite and encountered this issue. It will take time and lots of tests to update our servers to a newer version of RHEL6.
Maybe we can just update the package(s) that contain the fix ? Is it gofer and/or katello-agent ?

Thanks.

Comment 6 Craig Donnelly 2017-03-27 22:42:24 UTC
For those wondering, an update of python + python-libs corrects this issue, from the versions that are shipped with RHEL 6.4.

The version of python/python-libs with the fix is:

 python-2.6.6-51.el6
 python-libs-2.6.6-51.el6

These were shipped with RHEL 6.5 GA, it would appear. Update these packages, restart rsyslog + goferd, notice there will be no messages to stdout.

The changelog that corrected the issue:

* Thu Jul 04 2013 Matej Stuchlik <mstuchli> - 2.6.6-39
- Remove BOM insertion code from SysLogHandler that causes messages to be
treated as EMERG level
Resolves: rhbz#845802

Closing this out.


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