Merge "Change log directory for OpenDaylight"

This commit is contained in:
Zuul 2018-10-16 19:16:50 +00:00 committed by Gerrit Code Review
commit b1f1d37811
2 changed files with 15 additions and 3 deletions

View File

@ -13,7 +13,7 @@ outputs:
volumes: volumes:
description: The volumes needed to log to files in the host. description: The volumes needed to log to files in the host.
value: value:
- /var/log/containers/opendaylight:/opt/opendaylight/data/log - /var/log/containers/opendaylight/karaf/logs:/opt/opendaylight/data/log
host_prep_tasks: host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host. description: Extra ansible tasks needed for logging to files in the host.
value: value:
@ -22,11 +22,11 @@ outputs:
path: "{{ item }}" path: "{{ item }}"
state: directory state: directory
with_items: with_items:
- /var/log/containers/opendaylight - /var/log/containers/opendaylight/karaf/logs
- /var/log/opendaylight - /var/log/opendaylight
- name: opendaylight logs readme - name: opendaylight logs readme
copy: copy:
dest: /var/log/opendaylight/readme.txt dest: /var/log/opendaylight/readme.txt
content: | content: |
Logs from OpenDaylight container can be found at /var/log/containers/opendaylight/karaf.log Logs from OpenDaylight container can be found at /var/log/containers/opendaylight/karaf/logs/karaf.log
ignore_errors: true ignore_errors: true

View File

@ -0,0 +1,12 @@
---
fixes:
- |
Fixes openDaylight karaf file log rotation by changing
karaf log rollover parameters in PAX logging configuration.
Reference https://git.opendaylight.org/gerrit/#/c/75480/
for more details.
Also, moves openDaylight karaf log file location to
/var/log/containers/opendaylight/karaf/logs/karaf.log.
Reference https://review.openstack.org/#/c/603907/ for
more details.