empty logfiles in /var/log/nova/ after logrotating with logrotated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Soren Hansen |
Bug Description
We're using the following logrotate script to archive the nova logfiles. Problem is, that nova doesn't write logdata after rotating the logfiles. A restart of the service is required. Please fix the logging of the nova services in the way that it's possible to archive the logfiles and to touch a new logfile.
/etc/logrotate.
/var/log/nova/* {
daily
missingok
postrotate
}
total 3784
-rw-r--r-- 1 root root 0 2011-02-17 20:00 api.log
-rw-r--r-- 1 root root 1004231 2011-02-16 20:00 api.log-
-rw-r--r-- 1 root root 2644557 2011-02-17 20:01 api.log-
-rw-r--r-- 1 root root 0 2011-02-17 20:01 compute.log
-rw-r--r-- 1 root root 94085 2011-02-16 20:00 compute.
-rw-r--r-- 1 root root 49830 2011-02-17 20:01 compute.
-rw-r--r-- 1 root root 12011 2011-02-18 07:58 network.log
-rw-r--r-- 1 root root 4806 2011-02-16 20:00 network.
-rw-r--r-- 1 root root 3682 2011-02-17 20:01 network.
-rw-r--r-- 1 root root 0 2011-02-17 20:01 objectstore.log
-rw-r--r-- 1 root root 10198 2011-02-16 20:00 objectstore.
-rw-r--r-- 1 root root 7769 2011-02-17 20:01 objectstore.
-rw-r--r-- 1 root root 0 2011-02-17 20:01 scheduler.log
-rw-r--r-- 1 root root 3262 2011-02-16 20:00 scheduler.
-rw-r--r-- 1 root root 4767 2011-02-17 20:01 scheduler.
Related branches
- Vish Ishaya (community): Approve
- Todd Willey (community): Approve
-
Diff: 20 lines (+2/-2)1 file modifiednova/log.py (+2/-2)
summary: |
- empty logfiles in /var/log/nova/ after integrated logrotating + empty logfiles in /var/log/nova/ after logrotating with logrotated |
Changed in nova: | |
assignee: | nobody → Soren Hansen (soren) |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.2 |
status: | Fix Committed → Fix Released |
note that the logrotate entry in top post has a serious flaw.
instead of
/var/log/nova/*
it should read
/var/log/nova/*.log
otherwise, logrotate will create backups of backups, filling up the disk at exponential growth with millions of zero-sized files.