Bug 1642516 - Missing /var/log/btmp in rabbitmq container causes unnecessary logs in /var/log/secure.
Summary: Missing /var/log/btmp in rabbitmq container causes unnecessary logs in /var/l...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 15.0 (Stein)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Upstream M2
: 15.0 (Stein)
Assignee: Hervé Beraud
QA Contact: Gurenko Alex
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-24 15:02 UTC by Hervé Beraud
Modified: 2019-03-14 14:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The location of Pacemaker log files for RabbitMQ containers was not set to the correct location, which caused unnecessary log files to be created in /var/log/secure. This fix adds mounting of the /var/log/btmp path during the start of the RabbitMQ container, which enables Pacemaker to create the logs in the correct location.
Clone Of:
Environment:
Last Closed: 2019-03-14 14:17:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1799716 0 None None None 2018-10-24 15:12:15 UTC
OpenStack gerrit 613043 0 None MERGED Remove unnecessary logs due to misconfiguration from pacemaker 2020-10-26 13:36:55 UTC
OpenStack gerrit 621156 0 None MERGED tripleo-heat-templates 10.2.0 2020-10-26 13:37:09 UTC
Red Hat Bugzilla 1639199 0 medium CLOSED Missing /var/log/btmp in rabbitmq container causes unnecessary logs in /var/log/secure. 2021-02-22 00:41:40 UTC
Red Hat Knowledge Base (Solution) 3664391 0 None None None 2018-10-24 15:02:28 UTC

Internal Links: 1639199

Description Hervé Beraud 2018-10-24 15:02:29 UTC
Description of problem:
Missing /var/log/btmp in rabbitmq container causes unnecessary logs in /var/log/secure.

~~~
su:pam_lastlog(su:session): unable to open /var/log/btmp: No such file or directory
~~~

The message is written in every su option for rabbitmq user.
It makes /var/log/secure larger and hard to read useful logs.

Version-Release number of selected component (if applicable):
Current openstack-triple-heat-templates.

How reproducible:
Always.

Steps to Reproduce:
1. Deploy RHOSP13
2. Login controller nodes.
3. Check /var/log/secure

Actual results:
The following log is written to /var/log/secure in every su for rabbitmq.
~~~
su:pam_lastlog(su:session): unable to open /var/log/btmp: No such file or directory
~~~

Expected results:
The log should not be written.

Additional info:
A simple solution for this is touch /var/log/btmp file in the container or create an empty file on the host directory, /var/log/pacemaker/bundles/rabbitmq-bundle-0


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