Bug 1776608 - httpd logs in tls_proxy containers are recorded not on host but inside docker containers
Summary: httpd logs in tls_proxy containers are recorded not on host but inside docker...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: z11
: 13.0 (Queens)
Assignee: Michele Baldessari
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-26 05:18 UTC by Takashi Kajinami
Modified: 2023-09-07 21:09 UTC (History)
4 users (show)

Fixed In Version: openstack-tripleo-heat-templates-8.4.1-25.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-10 11:23:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 699355 0 None MERGED Make sure glance_api_tls_proxy logs are persisted on the host 2021-02-04 03:14:16 UTC
OpenStack gerrit 699356 0 None MERGED Fix neutron api TLS logging 2021-02-04 03:14:16 UTC
Red Hat Issue Tracker OSP-28296 0 None None None 2023-09-07 21:09:58 UTC
Red Hat Product Errata RHBA-2020:0760 0 None None None 2020-03-10 11:23:50 UTC

Description Takashi Kajinami 2019-11-26 05:18:17 UTC
Description of problem:

When we enable internal tls[1], we have the following independent docker containers to terminate tls,
and we have httpd running in these containers.
 neutron_server_tls_proxy
 glance_api_tls_proxy
 redis_tls_proxy

[1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/13/html/advanced_overcloud_customization/sect-enabling_internal_ssltls_on_the_overcloud

However, these docker containers does not have bind related to log directories, and
we have log files inside docker container.
As we don't have any rotation mechanism inside docker container, this can cause filesystem grows and
can affect services running on the node

How reproducible:
Always

Steps to Reproduce:
1. Deploy overcloud with internal tls enabled
2. See docker container setup for tls_proxy containers by `docker inspect <container name>`
3. See lsof -p <pid of httpd> 

Actual results:
tls_proxy containers does not have bind related to log directory, and httpd is writing into log file inside container

Expected results:
tls_proxy containers has bind related to log directory, and httpd is writing into log file on host

Additional info:

Comment 11 David Rosenfeld 2020-02-20 13:33:03 UTC
Bind seen for httpd in both sudo docker inspect neutron_server_tls_proxy and sudo docker inspect glance_api_tls_proxy:

"/var/log/containers/httpd/neutron-api:/var/log/httpd"

bind was not seen for: sudo docker inspect redis_tls_proxy. Asked question in e-mail about that and response was:

Redis logs are provided via the journal, and are already available.

Comment 13 errata-xmlrpc 2020-03-10 11:23:19 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/RHBA-2020:0760


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