Some log files are not rotated correctly in MOS 9.2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Invalid
|
High
|
Stanislaw Bogatkin |
Bug Description
Detailed bug description:
Some log files from /etc/logrotate.d folder are not rotated correctly on controllers. Example:
root@node-1:~# logrotate -f /etc/logrotate.
error: skipping "/var/log/
root@node-1:~# logrotate -f /etc/logrotate.
error: skipping "/var/log/
error: skipping "/var/log/
root@node-1:~# logrotate -f /etc/logrotate.
error: skipping "/var/log/dpkg.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping "/var/log/
...
Steps to reproduce:
1. observe log files from 'ls -la /etc/logrotate.d' output
2. ssh to controller and run "logrotate -f /etc/logrotate.
Expected results:
no errors, logs are rotated correctly
Actual result:
root@node-1:~# logrotate -f /etc/logrotate.
error: skipping "/var/log/
Reproducibility:
100%
Environment:
MOS 9.2 snapshot #749
Additional information:
haproxy and puppet logs are rotated correctly after the bugs were fixed:
https:/
https:/
Changed in fuel: | |
milestone: | none → 9.2 |
assignee: | nobody → Fuel Sustaining (fuel-sustaining-team) |
importance: | Undecided → High |
Changed in fuel: | |
assignee: | Fuel Sustaining (fuel-sustaining-team) → Stanislaw Bogatkin (sbogatkin) |
Logrotate uses main conf file located at /etc/logrotate.conf
This file includes all the file from /etc/logrotate.d/
Also this file contains 'su root syslog' statement which eliminates the problem from this bug. As long as we apply logrotate by executing it with main config file, this bug has no sense. Closed as invalid.