Logrotate doesn't rotate horizon.log on the controller nodes

Bug #1748412 reported by Michael Kraynov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Oleksiy Molchanov

Bug Description

Detailed bug description:
Logrotate doesn't rotate horizon.log on the controller nodes, By default, in local-settings.py we have setting for Horizon to write INFO to /var/log/horizon/horizon.log files, but this file is not included in logrotate configuration file.
Steps to reproduce:
Install latest Fuel 9.2 version
Expected results:
horizon.log file should be rotated.

Reproducibility:
Always
Workaround:
Add the following line in the beginning of the /etc/logrotate.d/fuel.nodaily file:
  "/var/log/horizon/*.log"

Create the following file: /etc/logrotate.d/horizon with the following content:

/var/log/horizon/*.log {
    daily
    missingok
    rotate 5
    compress
    minsize 100k
    copytruncate
}

Changed in fuel:
milestone: none → 9.2-mu-5
assignee: nobody → MOS Maintenance (mos-maintenance)
importance: Medium → High
Changed in fuel:
assignee: MOS Maintenance (mos-maintenance) → Oleksiy Molchanov (omolchanov)
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/fuel-library (9.0/mitaka)

Fix proposed to branch: 9.0/mitaka
Change author: Oleksiy Molchanov <email address hidden>
Review: https://review.fuel-infra.org/37925

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/fuel-library (9.0/mitaka)

Reviewed: https://review.fuel-infra.org/37925
Submitter: Pkgs Jenkins <email address hidden>
Branch: 9.0/mitaka

Commit: 8e10c49372cd0cd6b7299bd36c85b1ca0cde4dc3
Author: Oleksiy Molchanov <email address hidden>
Date: Wed Feb 21 10:46:40 2018

Add horizon logs to logrotate

Change-Id: I36799e86cda21f776c548e09b1628e4dea23c61a
Closes-Bug: 1748412

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Vladimir Jigulin (vjigulin) wrote :

Verified on 9.2-mu5-proposed

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.