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:
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.
https://github.com/ManageIQ/manageiq-pods/pull/278
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(-)
Verified in 5.9.2.3.
*** Bug 1498970 has been marked as a duplicate of this bug. ***
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(-)