Descriptionlocal: all logs in one directory
With one exception (cloud-init-output.log), this
change puts all log files in one directory on the
host system: /var/log/juju-{{.Namespace}}. We now
symlink ~/.juju/local/log to that directory,
rather than creating symlinks to individual files.
The cloud-init-output.log file is located outside
of the log dir to simplify ownership and dir existence
logic. It is now located in root-dir/.
I've also added some extra error checking, and moved
the chown syslog:adm to environs/cloudinit.
Live tested with local and azure (for cloudinit changes).
Can't say it fixes lp:1295501 as I can't reproduce
the problem, but it at least simplifies the logic.
https://code.launchpad.net/~axwalk/juju-core/lp1295501-local-logs-one-dir/+merge/212346
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 2
Patch Set 2 : local: all logs in one directory #
MessagesTotal messages: 3
|