aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/opendaylight.py13
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")