Ceph OSD logs are not rotated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Invalid
|
High
|
Alexey Stupnikov | ||
8.0.x |
Confirmed
|
High
|
Alexey Stupnikov | ||
Mitaka |
Invalid
|
High
|
Alexey Stupnikov |
Bug Description
Ceph OSD logs are not rotated on ceph-OSD nodes.
root@node-
# managed by puppet
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/auth.log"
"/var/log/
"/var/log/cron.log"
"/var/log/
"/var/log/
"/var/log/debug"
"/var/log/kern.log"
"/var/log/mail.log"
"/var/log/messages"
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/sudo.log"
"/var/log/syslog"
"/var/log/user.log"
"/var/log/
"/var/log/
...
root@node-
total 388
drwxr-xr-x 2 root root 4096 Mar 24 11:51 .
drwxrwxr-x. 16 root syslog 4096 Mar 24 11:51 ..
-rw-r--r-- 1 root root 189164 Mar 24 12:19 ceph-osd.0.log
-rw-r--r-- 1 root root 194158 Mar 24 12:19 ceph-osd.1.log
During long environment usage /var/log/ceph/*.log files can use a lot of disk space and cause cluster outage due to lack of the free space.
/var/log/ceph/*.log PATH should be added to /etc/logrotate.
Workaround:
Open /etc/logrotate.
...
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
"/var/log/
...
and save this file.
New configuration will be applied during the next fuel-logrotate run (see the `crontab -l` output )
Changed in fuel: | |
assignee: | Fuel for Openstack (fuel) → Alexey Stupnikov (astupnikov) |
I suggest to create dedicated logrotate configuration file for ceph and to ship it with ceph packages. IMO there is no reason to use general fuel logrotate job.