aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2020-08-10 18:29:55 +0200
committerJake Hunsaker <jhunsake@redhat.com>2020-08-11 11:56:22 -0400
commite35e51dd8d928d68d5f207cc807c5d0707cb8711 (patch)
tree0d27a7280e54f5f1ae9bc1582fc3f2176bddfb0f
parent3dfc36f0eb98e68d35134e4019b05e259980dceb (diff)
downloadsos-e35e51dd8d928d68d5f207cc807c5d0707cb8711.tar.gz
[rpm] increase timeout of "rpm -Va"
Since "rpm -Va" takes often more time than the current timeout, let increase it accordingly, along with plugin_timeout. Closes: #1369 Resolves: #2193 Signed-off-by: Pavel Moravec <pmoravec@redhat.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/plugins/rpm.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/report/plugins/rpm.py b/sos/report/plugins/rpm.py
index 3c5a0aaa..fa5f317e 100644
--- a/sos/report/plugins/rpm.py
+++ b/sos/report/plugins/rpm.py
@@ -53,8 +53,9 @@ class Rpm(Plugin, RedHatPlugin):
add_rpm_cmd(query_fmt, None, None, "package-data")
if self.get_option("rpmva"):
+ self.plugin_timeout = 1000
self.add_cmd_output("rpm -Va", root_symlink="rpm-Va",
- timeout=180)
+ timeout=900)
if self.get_option("rpmdb"):
self.add_cmd_output("lsof +D /var/lib/rpm",