Browse code

worlddump: include Open vSwitch info

This may be useful when debugging neutron gate failures.

Change-Id: Iea3589456d2b05d233ba88523a5bd4ac114a0c86

Ihar Hrachyshka authored on 2016/02/11 21:50:46
Showing 1 changed files
... ...
@@ -110,6 +110,20 @@ def network_dump():
110 110
     _dump_cmd("ip route")
111 111
 
112 112
 
113
+def ovs_dump():
114
+    _header("Open vSwitch Dump")
115
+
116
+    # NOTE(ihrachys): worlddump is used outside of devstack context (f.e. in
117
+    # grenade), so there is no single place to determine the bridge names from.
118
+    # Hardcode for now.
119
+    bridges = ('br-int', 'br-tun', 'br-ex')
120
+    _dump_cmd("sudo ovs-vsctl show")
121
+    for bridge in bridges:
122
+        _dump_cmd("sudo ovs-ofctl show %s" % bridge)
123
+    for bridge in bridges:
124
+        _dump_cmd("sudo ovs-ofctl dump-flows %s" % bridge)
125
+
126
+
113 127
 def process_list():
114 128
     _header("Process Listing")
115 129
     _dump_cmd("ps axo "
... ...
@@ -147,6 +161,7 @@ def main():
147 147
         disk_space()
148 148
         process_list()
149 149
         network_dump()
150
+        ovs_dump()
150 151
         iptables_dump()
151 152
         ebtables_dump()
152 153
         compute_consoles()