diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2020-05-06 14:27:10 +0200 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-05-07 10:12:16 -0400 |
commit | f750382d6f6d7a1a5e1a615a29866e7af40dbefc (patch) | |
tree | 17e015d8ca9ca0016ba4dfcacf9794f7c1442109 | |
parent | d1aa3d8054118b7cd1f01146655df2470de3a64e (diff) | |
download | sos-f750382d6f6d7a1a5e1a615a29866e7af40dbefc.tar.gz |
[rabbitmq] Call containerised rabbitmqctl report on foreground
In some use cases, "rabbitmqctl report" run in a container can hung
due to missing terminal. Let workaround it for now by running the
command with --foreground timeout option.
Resolves: #2047
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/report/plugins/rabbitmq.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/report/plugins/rabbitmq.py b/sos/report/plugins/rabbitmq.py index 620e4dd6..82afd3c2 100644 --- a/sos/report/plugins/rabbitmq.py +++ b/sos/report/plugins/rabbitmq.py @@ -34,7 +34,8 @@ class RabbitMQ(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): for container in container_names: self.get_container_logs(container) self.add_cmd_output( - self.fmt_container_cmd(container, 'rabbitmqctl report') + self.fmt_container_cmd(container, 'rabbitmqctl report'), + foreground=True ) else: self.add_cmd_output("rabbitmqctl report") |