Merge "worlddump: include Open vSwitch info"

This commit is contained in:
Jenkins 2016-02-12 00:37:47 +00:00 committed by Gerrit Code Review
commit fe0c2ba7ad

View File

@ -110,6 +110,20 @@ def network_dump():
_dump_cmd("ip route")
def ovs_dump():
_header("Open vSwitch Dump")
# NOTE(ihrachys): worlddump is used outside of devstack context (f.e. in
# grenade), so there is no single place to determine the bridge names from.
# Hardcode for now.
bridges = ('br-int', 'br-tun', 'br-ex')
_dump_cmd("sudo ovs-vsctl show")
for bridge in bridges:
_dump_cmd("sudo ovs-ofctl show %s" % bridge)
for bridge in bridges:
_dump_cmd("sudo ovs-ofctl dump-flows %s" % bridge)
def process_list():
_header("Process Listing")
_dump_cmd("ps axo "
@ -147,6 +161,7 @@ def main():
disk_space()
process_list()
network_dump()
ovs_dump()
iptables_dump()
ebtables_dump()
compute_consoles()