Bug 1784065

Summary: Create a dedicated log file for the healtcheck runs
Product: Red Hat OpenStack Reporter: Cédric Jeanneret <cjeanner>
Component: openstack-tripleo-heat-templatesAssignee: Cédric Jeanneret <cjeanner>
Status: CLOSED ERRATA QA Contact: Sasha Smolyak <ssmolyak>
Severity: medium Docs Contact:
Priority: medium    
Version: 15.0 (Stein)CC: jpichon, mburns, slinaber
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-10.6.3-0.20200113185559.cf467ea.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-05 12:01:18 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:
Bug Depends On: 1784043, 1784046    
Bug Blocks:    

Description Cédric Jeanneret 2019-12-16 15:40:41 UTC
Following https://bugzilla.redhat.com/show_bug.cgi?id=1784043 and https://bugzilla.redhat.com/show_bug.cgi?id=1784046, it would be nice to collect the healthcheck logs in a dedicated logfile, so that we can expose it to any container wanting to read the healthcheck status (monitoring, metrics).

A simple rule such as this one should be sufficient:
if $programname == 'container-healthcheck' then /path/to/log/file.log
& stop

Location should probably be somewhere in /var/log/containers in order to keep things clean. Be careful to ensure the file location is covered by the logrotate_crond configuration!

Comment 1 Cédric Jeanneret 2020-01-08 10:07:17 UTC
Upstream for Stein (osp-15) in the pipe.

Comment 2 Cédric Jeanneret 2020-01-15 13:16:13 UTC
In order to verify this BZ, one must deploy an undercloud with the related paunch patch and verify that, if metrics are enabled, a new log located in /var/log/containers/sensu/healthchecks.log is present

Please note, this log exists only if metrics are enabled.

Comment 7 errata-xmlrpc 2020-03-05 12:01:18 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:0643