Logs aren't rotated on bootstraped nodes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Matthew Mosesohn |
Bug Description
[root@nailgun ~]# fuel --f
api: '1.0'
astute_sha: bc60b7d027ab244
auth_required: true
build_id: 2014-09-01_00-01-17
build_number: '491'
feature_groups:
- mirantis
fuellib_sha: 2cfa83119ae90b1
fuelmain_sha: 109812be3425408
nailgun_sha: d25ed02948a8be7
ostf_sha: 4dcd99cc4bfa19f
production: docker
release: '5.1'
I discovered that sys logs on bootsraped nodes aren't rotated by logrotate due to wrong permissions of configuration files:
[root@bootstrap ~]# /usr/sbin/logrotate -d /etc/logrotate.conf
reading config file /etc/logrotate.conf
including /etc/logrotate.d
Ignoring syslog because the file owner is wrong (should be root).
[root@bootstrap ~]# ls -la /etc/logrotate.
-rw-r--r-- 1 1000 1000 673 2014-05-27 01:52 /etc/logrotate.
So when node is in discovered state for a long time logs could occupy all RAM memory (on my env after 4 days mesagess log was >1GB) or greatly increase the size of diagnostic snapshot. After executing 'chown 0:0 /etc/logrotate.
Changed in fuel: | |
importance: | High → Critical |
status: | New → Confirmed |
Changed in fuel: | |
assignee: | Fuel Library Team (fuel-library) → Stanislaw Bogatkin (sbogatkin) |
Changed in fuel: | |
importance: | Critical → High |
Changed in fuel: | |
assignee: | Stanislaw Bogatkin (sbogatkin) → Matthew Mosesohn (raytrac3r) |
Fix proposed to branch: master /review. openstack. org/118376
Review: https:/