Juju logs are not rotated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
New
|
Undecided
|
Unassigned |
Bug Description
Juju should make sure its logs are rotated. ATM it assumes disk space on state server, or any other deployed node, is endless. This can cause loss of service and lead to corruption of mongodb. In at least two events I've seen disks filled with juju logs, and for example, here it's taking big amount of disk space, considering it's been running only for a week:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 20G 7.1G 12G 39% /
# du -hs /var/log/juju/
5.3G /var/log/juju/
# ls /var/log/juju/*
/var/log/
# du -hs /var/log/juju/*
3.3G /var/log/
4.0K /var/log/
2.1G /var/log/
4.0K /var/log/
4.0K /var/log/
# ls /etc/logrotate.d/
apport apt aptitude dpkg landscape-client ppp rsyslog ufw unattended-upgrades upstart