diff options
author | Victor Pickard <vpickard@redhat.com> | 2018-09-25 11:04:07 -0400 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-01-08 16:54:12 +0000 |
commit | 27c61e198f47af7ba5899ff1f50ab3d0e089d5eb (patch) | |
tree | 1a73779f90d405c0c87959feece3825d17e64b88 | |
parent | 549591879a01edcb856f7f353af9d6324d469c39 (diff) | |
download | sos-27c61e198f47af7ba5899ff1f50ab3d0e089d5eb.tar.gz |
[opendaylight] Update directory for openDaylight logs
OpenDaylight karaf logs are now located in:
/var/log/containers/opendaylight/karaf/logs, so
deprecate the old paths, and update the plugin
to get the karaf.log files from new location.
Resolves: #1438
Signed-off-by: Victor Pickard <vpickard@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/opendaylight.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sos/plugins/opendaylight.py b/sos/plugins/opendaylight.py index 07c3d11e..2dcb1b88 100644 --- a/sos/plugins/opendaylight.py +++ b/sos/plugins/opendaylight.py @@ -27,14 +27,27 @@ class OpenDaylight(Plugin, RedHatPlugin): ]) if self.get_option("all_logs"): + + # /var/log/containers/opendaylight/ path is specific to ODL + # Oxygen-SR3 and earlier versions, and may be removed in a future + # update. + self.add_copy_spec([ "/opt/opendaylight/data/log/", "/var/log/containers/opendaylight/", + "/var/log/containers/opendaylight/karaf/logs/", ]) + else: + + # /var/log/containers/opendaylight/ path is specific to ODL + # Oxygen-SR3 and earlier versions, and may be removed in a future + # update. + self.add_copy_spec([ "/opt/opendaylight/data/log/*.log*", "/var/log/containers/opendaylight/*.log*", + "/var/log/containers/opendaylight/karaf/logs/*.log*", ]) self.add_cmd_output("docker logs opendaylight_api") |