dump compute consoles on fail as well

This provides a dump of the compute consoles as well on failure.

Change-Id: Ib253537a54a1b9d83a930bbefa4512e039575fd1
This commit is contained in:
Sean Dague 2015-05-12 19:51:39 -04:00
parent 60a140571e
commit 737e94202f

View File

@ -18,6 +18,7 @@
import argparse import argparse
import datetime import datetime
import fnmatch
import os import os
import os.path import os.path
import sys import sys
@ -97,6 +98,14 @@ def process_list():
"user,ppid,pid,pcpu,pmem,vsz,rss,tty,stat,start,time,args") "user,ppid,pid,pcpu,pmem,vsz,rss,tty,stat,start,time,args")
def compute_consoles():
_header("Compute consoles")
for root, dirnames, filenames in os.walk('/opt/stack'):
for filename in fnmatch.filter(filenames, 'console.log'):
fullpath = os.path.join(root, filename)
_dump_cmd("sudo cat %s" % fullpath)
def main(): def main():
opts = get_options() opts = get_options()
fname = filename(opts.dir) fname = filename(opts.dir)
@ -108,6 +117,7 @@ def main():
process_list() process_list()
network_dump() network_dump()
iptables_dump() iptables_dump()
compute_consoles()
if __name__ == '__main__': if __name__ == '__main__':