diff options
author | Lee Yarwood <lyarwood@redhat.com> | 2015-02-17 14:51:00 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2015-04-08 11:29:39 +0100 |
commit | 775b2bbfb28701ec2e687f0ece68a4558cef8740 (patch) | |
tree | 496dc9e239384904602d638ace3e735208f2d37f | |
parent | 92ef7ed8f2966a21481aeb715a13e88f4cbbf59c (diff) | |
download | sos-775b2bbfb28701ec2e687f0ece68a4558cef8740.tar.gz |
[openvswitch] Capture additional output for OVS bridges.
This includes `dump-flows` and `fdb/show` output useful for debugging
Openstack tenant and L3 networking issues.
Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
-rw-r--r-- | sos/plugins/openvswitch.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sos/plugins/openvswitch.py b/sos/plugins/openvswitch.py index 3611671c..52005634 100644 --- a/sos/plugins/openvswitch.py +++ b/sos/plugins/openvswitch.py @@ -32,6 +32,14 @@ class OpenVSwitch(Plugin): # to the Open vSwitch server, avoiding hangs when running sosreport. self.add_cmd_output("ovs-vsctl -t 5 show") + # Gather additional output for each OVS bridge on the host. + br_list_result = self.call_ext_prog("ovs-vsctl list-br") + if br_list_result['status'] == 0: + for br in br_list_result['output'].splitlines(): + self.add_cmd_output("ovs-ofctl show %s" % br) + self.add_cmd_output("ovs-ofctl dump-flows %s" % br) + self.add_cmd_output("ovs-appctl fdb/show %s" % br) + class RedHatOpenVSwitch(OpenVSwitch, RedHatPlugin): |