aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Kajinami <tkajinam@redhat.com>2021-07-12 11:56:49 +0900
committerJake Hunsaker <jhunsake@redhat.com>2021-08-26 12:57:13 -0400
commit2b8f029004f4f93b9bdadc47e32fe587591f88f4 (patch)
treebe33450c8a3d49ce622d4503700d2d144997abec
parent0e8cc3a31aadc35f15563867463fb041364dfe31 (diff)
downloadsos-2b8f029004f4f93b9bdadc47e32fe587591f88f4.tar.gz
[rabbitmq] Capture Erlang crash dump from RabbitMQ
When RabbitMQ process crashes, it sometimes generates erl_crash.dump in its log directory. This file is is useful to understand the cause. This change ensures that file is captured in sosreport even without --all-logs. Signed-off-by: Takashi Kajinami <tkajinam@redhat.com>
-rw-r--r--sos/report/plugins/rabbitmq.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/sos/report/plugins/rabbitmq.py b/sos/report/plugins/rabbitmq.py
index 54ebb187..e84b52da 100644
--- a/sos/report/plugins/rabbitmq.py
+++ b/sos/report/plugins/rabbitmq.py
@@ -59,6 +59,13 @@ class RabbitMQ(Plugin, IndependentPlugin):
"/var/log/rabbitmq/*",
])
+ # Crash dump can be large in some situation but it is useful to
+ # investigate why rabbitmq crashes. So capture the file without
+ # sizelimit
+ self.add_copy_spec([
+ "/var/log/containers/rabbitmq/erl_crash.dump"
+ ], sizelimit=0)
+
def postproc(self):
self.do_file_sub("/etc/rabbitmq/rabbitmq.conf",
r"(\s*default_pass\s*,\s*)\S+", r"\1<<***>>},")