OpenDaylight karaf logs are currently stored in
/var/log/containers/opendaylight/karaf.log.
There is a logrotate_crond container job, that will
rotate any *.log in /var/log/containers, with this
pattern:
/var/log/containers/*/*log /var/log/containers/*/*/*log {
daily
....
}
OpenDaylight is Java code, and has it's own logrotate
mechanism alreay configured. Currently, we have 2 entities
doing log rotation, tripleO logrotate_crond, and ODL Pax
logging. These 2 don't play nicely together.
This patch will move the ODL logs out of the path
of the tripleO log rotate cron job, so that ODL can
manage it's own log rotation.
Another option would be to modify tripleO to explicitly
list out all of the containers, and only do log rotation
for those listed.
Closes-Bug:#1793566
https://bugs.launchpad.net/tripleo/+bug/1793566
Change-Id: I8acf7db248bf31d3010bc0313f48812a244d1004
Signed-off-by: Victor Pickard <vpickard@redhat.com>