aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Desrochers <eric.desrochers@canonical.com>2018-09-04 09:41:04 -0400
committerBryn M. Reeves <bmr@redhat.com>2019-03-18 10:08:17 +0000
commit14cd023ee35013199208770928be12ffd49f5505 (patch)
treeba63382c78c91a0a3f3f8e3bc01438b9f7f899dd
parent8752c50ad1282d86cad473c332773ecc58107cc2 (diff)
downloadsos-14cd023ee35013199208770928be12ffd49f5505.tar.gz
[landscape] Add copy of Landscape OOPS files
When a deviation from correct behaviour occurs Landscape may generate a very lightweight OOPS file useful for debugging file as follow: Format: /var/lib/landscape/landscape-oops/<YYYY-MM-DD>/OOPS-<OOPS-ID> OOPS-ID represent the ID displayed in the Landscape WebUI when an oops occurs. Resolves: #1413 Signed-off-by: Eric Desrochers <eric.desrochers@canonical.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/landscape.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sos/plugins/landscape.py b/sos/plugins/landscape.py
index f75f884e..1a160d38 100644
--- a/sos/plugins/landscape.py
+++ b/sos/plugins/landscape.py
@@ -24,6 +24,7 @@ class Landscape(Plugin, UbuntuPlugin):
self.add_copy_spec("/etc/landscape/service.conf")
self.add_copy_spec("/etc/landscape/service.conf.old")
self.add_copy_spec("/etc/default/landscape-server")
+ self.add_copy_spec("/var/lib/landscape/landscape-oops/*/OOPS-*")
if not self.get_option("all_logs"):
self.add_copy_spec("/var/log/landscape/*.log")
self.add_copy_spec("/var/log/landscape-server/*.log")