all-machines.log is oversized on juju node
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Triaged
|
High
|
Unassigned |
Bug Description
It appears #1195223 is not fixed in juju 1.12. all-machines.log is growing unbridled. It fills up the entire file system. It is 12G total in size:
ubuntu@
total 12748880
drwxr-xr-x 2 root root 4096 Aug 29 17:14 .
drwxr-xr-x 13 root root 4096 Aug 29 20:14 ..
-rw-r----- 1 syslog adm 13047238656 Aug 29 20:55 all-machines.log
-rw-r--r-- 1 root root 5338 Aug 29 17:14 juju-gui.log
-rw-r--r-- 1 root root 4587971 Aug 29 20:55 machine-0.log
-rw-r--r-- 1 root root 2992193 Aug 29 20:55 unit-juju-gui-0.log
Can we either:
1. Rotate and compress the log upon certain size
2. Delete the log when it reaches a certain percentage of total files system size
3. Figure out what is filling it up and reduce that logging by default
Changed in juju-core: | |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in juju-core: | |
assignee: | nobody → Nate Finch (natefinch) |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Triaged |
Changed in juju-core: | |
importance: | Critical → High |
milestone: | none → 2.0 |
Changed in juju-core: | |
milestone: | 2.0 → 1.17.0 |
tags: |
added: logging removed: juju-core |
Changed in juju-core: | |
assignee: | Nate Finch (natefinch) → nobody |
Changed in juju-core: | |
milestone: | 1.17.0 → 1.19.0 |
Changed in juju-core: | |
milestone: | 1.19.0 → 2.0 |
tada6:2ubuntu@ tada6:/ var/log/ juju$ ls -al /etc/rsyslog*
-rw-r--r-- 1 root root 1263 Mar 30 2012 /etc/rsyslog.conf
/etc/rsyslog.d: unit-juju- gui-0.conf
total 28
drwxr-xr-x 2 root root 4096 Aug 29 17:13 .
drwxr-xr-x 94 root root 4096 Aug 29 20:14 ..
-rw-r--r-- 1 root root 311 Mar 17 2012 20-ufw.conf
-rw-r--r-- 1 root root 252 Aug 16 03:17 21-cloudinit.conf
-rw-r--r-- 1 root root 709 Aug 29 16:55 25-juju.conf
-rw-r--r-- 1 root root 337 Aug 29 17:13 26-juju-
-rw-r--r-- 1 root root 1655 Mar 30 2012 50-default.conf
ubuntu@ tada6:/ var/log/ juju$ cat /etc/rsyslog. d/50-default. conf
# Default rules for rsyslog.
#
# For more information see rsyslog.conf(5) and /etc/rsyslog.conf
# authpriv. none -/var/log/syslog daemon. log
# First some standard log files. Log by facility.
#
auth,authpriv.* /var/log/auth.log
*.*;auth,
#cron.* /var/log/cron.log
#daemon.* -/var/log/
kern.* -/var/log/kern.log
#lpr.* -/var/log/lpr.log
mail.* -/var/log/mail.log
#user.* -/var/log/user.log
#
# Logging for the mail system. Split it up so that
# it is easy to write scripts to parse these files.
#
#mail.info -/var/log/mail.info
#mail.warn -/var/log/mail.warn
mail.err /var/log/mail.err
# news/news. crit news/news. err news/news. notice
# Logging for INN news system.
#
news.crit /var/log/
news.err /var/log/
news.notice -/var/log/
# none;\ *.=notice; *.=warn; \ none;\
# Some "catch-all" log files.
#
#*.=debug;\
# auth,authpriv.
# news.none;mail.none -/var/log/debug
#*.=info;
# auth,authpriv.
# cron,daemon.none;\
# mail,news.none -/var/log/messages
#
# Emergencies are sent to everybody logged in.
#
*.emerg :omusrmsg:*
# news.=err; news.=notice; \
# I like to have messages displayed on the console, but only on a virtual
# console I usually leave idle.
#
#daemon,mail.*;\
# news.=crit;
# *.=debug;*.=info;\
# *.=notice;*.=warn /dev/tty8
# The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
# you must invoke `xconsole' with the `-file' option:
#
# $ xconsole -file /dev/xconsole [...]
#
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably
# busy site..
#
daemon.*;mail.*;\
news.err;\
*.=debug;*.=info;\
*.=notice;*.=warn |/dev/xconsole