[sos-devel] [PATCH] [plugins/openstack_neutron] Display iptables rules for security groups

Stephen Ma sma102874 at gmail.com
Fri Nov 21 06:17:04 UTC 2014


Dumps out the iptables rules in the root namespace. Neutron
implements the security group rules in iptables rules in
the root namespace.

Signed-off-by: Stephen Ma <stephen.ma at hp.com>
---
 sos/plugins/openstack_neutron.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sos/plugins/openstack_neutron.py b/sos/plugins/openstack_neutron.py
index dba192e..0a11ff2 100644
--- a/sos/plugins/openstack_neutron.py
+++ b/sos/plugins/openstack_neutron.py
@@ -52,6 +52,12 @@ class Neutron(Plugin):
         ])
 
         self.netns_dumps()
+        self.security_group_dumps()
+
+    def security_group_dumps(self):
+        # The neutron security group rules are found in the iptables rules
+        # in the root namespace.
+        self.add_cmd_output(["iptables-save -c"])
 
     def netns_dumps(self):
         # It would've been beautiful if we could get parts of the networking
-- 
1.9.1




More information about the sos-devel mailing list