Comment 11 for bug 1382515

Revision history for this message
Alexander Bozhenko (alexbozhenko) wrote : Re: Logrotate incorrect configuration: hourly logrotate is broken

In addition to comment #9, to confirm that hourly logrotate is not working:
find fuel-snapshot-2015-04-11_00-50-26 -type f | xargs du | sort -n
552192 fuel-snapshot-2015-04-11_00-50-26/10.43.0.10/var/log/docker-logs/nailgun/api.log
2873112 fuel-snapshot-2015-04-11_00-50-26/10.43.0.10/var/log/docker-logs/remote/node-20.domain.tld/kernel.log

find fuel-snapshot-2015-04-11_22-30-40 -type f | xargs du | sort -n
160460 fuel-snapshot-2015-04-11_22-30-40/10.240.16.150/var/log/docker-logs/nginx/error_nailgun.log.1
190796 fuel-snapshot-2015-04-11_22-30-40/10.240.16.150/var/log/docker-logs/remote/node-1.dtw.os.vdc.local/neutron-server.log
219136 fuel-snapshot-2015-04-11_22-30-40/10.240.16.150/var/log/docker-logs/nginx/access_nailgun.log
300560 fuel-snapshot-2015-04-11_22-30-40/10.240.16.150/var/log/docker-logs/nginx/access_nailgun.log.1
344556 fuel-snapshot-2015-04-11_22-30-40/node-1.domain.local/var/log/ceph/ceph-mon.node-1.log

And to confirm that file is older that one hour:
[alex@localhost tmp] $ head -n1 fuel-snapshot-2015-04-11_22-30-40/10.240.16.150/var/log/docker-logs/nginx/access_nailgun.log
172.17.42.1 - - [04/Feb/2015:20:25:13 +0000] "GET /api/nodes/allocation/stats?_=1423019698392 HTTP/1.1" 502 575 "http://10.240.16.150:8000/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.91 Safari/537.36"
[alex@localhost tmp] $ tail -n1 fuel-snapshot-2015-04-11_22-30-40/10.240.16.150/var/log/docker-logs/nginx/access_nailgun.log
172.17.42.1 - - [11/Apr/2015:22:32:19 +0100] "GET /api/notifications?_=1428787811780 HTTP/1.1" 200 3435 "http://10.240.16.150:8000/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"

Just pick any long-running env's snapshot and execute the same command.