Blame SOURCES/0081-firewalld-work-around-command-hangs-in-container-env.patch

0cd6dc
From 5e5957cd3d61eb6e869b6294b2d64a5c37f19803 Mon Sep 17 00:00:00 2001
0cd6dc
From: "Bryn M. Reeves" <bmr@redhat.com>
0cd6dc
Date: Mon, 26 Jan 2015 16:14:01 -0500
0cd6dc
Subject: [PATCH 81/93] [firewalld] work around command hangs in container
0cd6dc
 environments
0cd6dc
0cd6dc
Add a 10s timeout to firewalld-cmd execution to avoid long dbus
0cd6dc
timeouts in docker containers.
0cd6dc
0cd6dc
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
0cd6dc
---
0cd6dc
 sos/plugins/firewalld.py | 4 +++-
0cd6dc
 1 file changed, 3 insertions(+), 1 deletion(-)
0cd6dc
0cd6dc
diff --git a/sos/plugins/firewalld.py b/sos/plugins/firewalld.py
0cd6dc
index 31e8337..63fe058 100644
0cd6dc
--- a/sos/plugins/firewalld.py
0cd6dc
+++ b/sos/plugins/firewalld.py
0cd6dc
@@ -35,9 +35,11 @@ class FirewallD(Plugin, RedHatPlugin):
0cd6dc
             "/etc/sysconfig/firewalld"
0cd6dc
         ])
0cd6dc
 
0cd6dc
+        # use a 10s timeout to workaround dbus problems in
0cd6dc
+        # docker containers.
0cd6dc
         self.add_cmd_output([
0cd6dc
             "firewall-cmd --list-all-zones",
0cd6dc
             "firewall-cmd --permanent --list-all-zones"
0cd6dc
-        ])
0cd6dc
+        ], timeout=10)
0cd6dc
 
0cd6dc
 # vim: et ts=4 sw=4
0cd6dc
-- 
0cd6dc
1.9.3
0cd6dc