Bug 1560210 - [RFE] Log Rotate in Podified Version Of CloudForms
Summary: [RFE] Log Rotate in Podified Version Of CloudForms
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: cfme-openshift-app
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: GA
: 5.9.2
Assignee: Nick Carboni
QA Contact: Ievgen Zapolskyi
Red Hat CloudForms Documentation
URL:
Whiteboard:
: 1498970 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-24 22:37 UTC by Saif Ali
Modified: 2022-03-13 14:48 UTC (History)
7 users (show)

Fixed In Version: 5.9.2.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-09 13:50:49 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:1329 0 normal SHIPPED_LIVE CloudForms 4.6.2 images for OpenShift bug fix and enhancement update 2018-05-08 01:51:48 UTC

Description Saif Ali 2018-03-24 22:37:32 UTC
Description of problem:
In the podified version of CloudForms we log application logs to persistent volume but we don't have any tools to rotate the logs and without the rotating the logs the volume keep growing until it volume run out of space which cause the pod to crash.

Version-Release number of selected component (if applicable):
4.6

How reproducible:
Run podified version of CloudForms 4.6 in OCP3.7 and let it run for some time, and then check the logs

Steps to Reproduce:
1.
2.
3.

Actual results:
the log files keep growing

Expected results:
the log file should get rotated by adding some kind config map to do that or if possible we can send the logs to the stdout to be managed by logging service like elasticsearch 

Additional info:

Comment 2 Nick Carboni 2018-03-27 15:12:47 UTC
This does seem to not be working as the free space check script doesn't work properly in the pods.

We would need to provide an altered version of the logrotate configuration which doesn't call the free space check for the pods.

Comment 5 CFME Bot 2018-03-28 21:19:26 UTC
New commit detected on ManageIQ/manageiq-pods/gaprindashvili:

https://github.com/ManageIQ/manageiq-pods/commit/af0259e64d5ab8e5ea1bd49b348661994af6c68e
commit af0259e64d5ab8e5ea1bd49b348661994af6c68e
Author:     Nick Carboni <ncarboni>
AuthorDate: Tue Mar 27 12:08:09 2018 -0400
Commit:     Nick Carboni <ncarboni>
CommitDate: Tue Mar 27 12:08:09 2018 -0400

    Remove the check for filesystem space from the logrotate configuration

    This doesn't work in containers and was causing logrotate not to
    run for any log files.

    https://bugzilla.redhat.com/show_bug.cgi?id=1560210

 images/miq-app/container-assets/miq_logs.conf | 3 -
 1 file changed, 3 deletions(-)

Comment 6 Ievgen Zapolskyi 2018-04-26 11:16:57 UTC
Verified in 5.9.2.3.

Comment 7 Nick Carboni 2018-04-30 19:47:45 UTC
*** Bug 1498970 has been marked as a duplicate of this bug. ***

Comment 10 CFME Bot 2018-09-25 19:13:37 UTC
New commit detected on ManageIQ/manageiq-pods/hammer:

https://github.com/ManageIQ/manageiq-pods/commit/af0259e64d5ab8e5ea1bd49b348661994af6c68e
commit af0259e64d5ab8e5ea1bd49b348661994af6c68e
Author:     Nick Carboni <ncarboni>
AuthorDate: Tue Mar 27 12:08:09 2018 -0400
Commit:     Nick Carboni <ncarboni>
CommitDate: Tue Mar 27 12:08:09 2018 -0400

    Remove the check for filesystem space from the logrotate configuration

    This doesn't work in containers and was causing logrotate not to
    run for any log files.

    https://bugzilla.redhat.com/show_bug.cgi?id=1560210

 images/miq-app/container-assets/miq_logs.conf | 3 -
 1 file changed, 3 deletions(-)


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