diff --git a/docker/services/logging/files/opendaylight-api.yaml b/docker/services/logging/files/opendaylight-api.yaml index a035ebb2e6..d752802905 100644 --- a/docker/services/logging/files/opendaylight-api.yaml +++ b/docker/services/logging/files/opendaylight-api.yaml @@ -13,7 +13,7 @@ outputs: volumes: description: The volumes needed to log to files in the host. value: - - /var/log/containers/opendaylight:/opt/opendaylight/data/log + - /var/log/containers/opendaylight/karaf/logs:/opt/opendaylight/data/log host_prep_tasks: description: Extra ansible tasks needed for logging to files in the host. value: @@ -22,11 +22,11 @@ outputs: path: "{{ item }}" state: directory with_items: - - /var/log/containers/opendaylight + - /var/log/containers/opendaylight/karaf/logs - /var/log/opendaylight - name: opendaylight logs readme copy: dest: /var/log/opendaylight/readme.txt 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 \ No newline at end of file diff --git a/releasenotes/notes/fix-odl-karaf-logging-eca10973e57caa3a.yaml b/releasenotes/notes/fix-odl-karaf-logging-eca10973e57caa3a.yaml new file mode 100644 index 0000000000..17fc672053 --- /dev/null +++ b/releasenotes/notes/fix-odl-karaf-logging-eca10973e57caa3a.yaml @@ -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.