dump iptables in the worlddump
If we fail during devstack / grenade runs, it would be nice to have the map of iptables that are currently active as well. This makes it handy to start figuring out what's going on when test servers don't ping. Change-Id: Ia31736ef2cb0221586d30c089473dfdc1db90e23
This commit is contained in:
parent
641dd9ff23
commit
168b7c226c
@ -61,6 +61,17 @@ File System Summary
|
||||
print dfraw
|
||||
|
||||
|
||||
def iptables_dump():
|
||||
tables = ['filter', 'nat', 'mangle']
|
||||
print """
|
||||
IP Tables Dump
|
||||
===============
|
||||
"""
|
||||
for table in tables:
|
||||
print os.popen("sudo iptables --line-numbers -L -nv -t %s"
|
||||
% table).read()
|
||||
|
||||
|
||||
def process_list():
|
||||
print """
|
||||
Process Listing
|
||||
@ -79,6 +90,7 @@ def main():
|
||||
os.dup2(f.fileno(), sys.stdout.fileno())
|
||||
disk_space()
|
||||
process_list()
|
||||
iptables_dump()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user