aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2017-12-20 12:13:30 +0100
committerBryn M. Reeves <bmr@redhat.com>2018-04-16 16:29:17 +0100
commitb61ffa8af1445104da075f172342d62cab13c837 (patch)
tree47fa02333b360afc8eda1ea4922cd8269913e205
parent8d830501000f382a48a762ecfbe0426f9345d90b (diff)
downloadsos-b61ffa8af1445104da075f172342d62cab13c837.tar.gz
[opendaylight] collect more logs and puppet config
collect puppet-generated config, container and docker logs Resolves: #1171 Signed-off-by: Pavel Moravec <pmoravec@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/opendaylight.py21
1 files changed, 16 insertions, 5 deletions
diff --git a/sos/plugins/opendaylight.py b/sos/plugins/opendaylight.py
index 44e12b01..6d886611 100644
--- a/sos/plugins/opendaylight.py
+++ b/sos/plugins/opendaylight.py
@@ -24,15 +24,26 @@ class OpenDaylight(Plugin, RedHatPlugin):
packages = ('opendaylight', 'puppet-opendaylight')
+ var_puppet_gen = "/var/lib/config-data/puppet-generated/opendaylight"
+
def setup(self):
- self.add_copy_spec("/opt/opendaylight/etc/")
+ self.add_copy_spec([
+ "/opt/opendaylight/etc/",
+ self.var_puppet_gen + "/opt/opendaylight/etc/",
+ ])
self.limit = self.get_option("log_size")
if self.get_option("all_logs"):
- self.add_copy_spec("/opt/opendaylight/data/log/",
- sizelimit=self.limit)
+ self.add_copy_spec([
+ "/opt/opendaylight/data/log/",
+ "/var/log/containers/opendaylight/",
+ ], sizelimit=self.limit)
else:
- self.add_copy_spec("/opt/opendaylight/data/log/*log",
- sizelimit=self.limit)
+ self.add_copy_spec([
+ "/opt/opendaylight/data/log/*.log*",
+ "/var/log/containers/opendaylight/*.log*",
+ ], sizelimit=self.limit)
+
+ self.add_cmd_output("docker logs opendaylight_api")
# vim: set et ts=4 sw=4 :