aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Clark <Nathaniel.Clark@misrule.us>2018-09-20 10:38:58 -0400
committerBryn M. Reeves <bmr@redhat.com>2019-03-18 11:58:18 +0000
commitf5d7c67b6e2050abf22d2f9141f5938cd16c993d (patch)
tree05bfca6b13714393b0dbfba2da4ce0a1f982d26d
parentc1bfb2bed41a16df96c387a9c81d790e03b35bb3 (diff)
downloadsos-f5d7c67b6e2050abf22d2f9141f5938cd16c993d.tar.gz
[lustre] Collect ring buffer dumps on all_logs
Collect emergency dumps of the lustre ring buffer if all_logs is set. These files are dumps of the Lustre ring buffer, that are dumped under certain conditions Resolves: #1436 Signed-off-by: Nathaniel Clark <Nathaniel.Clark@misrule.us> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/lustre.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sos/plugins/lustre.py b/sos/plugins/lustre.py
index b3d47c28..98ca09f6 100644
--- a/sos/plugins/lustre.py
+++ b/sos/plugins/lustre.py
@@ -51,4 +51,8 @@ class Lustre(Plugin, RedHatPlugin):
self.get_params("quota", ["osd-*.*.quota_slave." +
"{info,limit_*,acct_*}"])
+ # Grab emergency ring buffer dumps
+ if self.get_option("all_logs"):
+ self.add_copy_spec("/tmp/lustre-log.*")
+
# vim: set et ts=4 sw=4 :