Skip to content

Commit 632b83d

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "dump compute consoles on fail as well"
2 parents a79de45 + 737e942 commit 632b83d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tools/worlddump.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import argparse
2020
import datetime
21+
import fnmatch
2122
import os
2223
import os.path
2324
import sys
@@ -97,6 +98,14 @@ def process_list():
9798
"user,ppid,pid,pcpu,pmem,vsz,rss,tty,stat,start,time,args")
9899

99100

101+
def compute_consoles():
102+
_header("Compute consoles")
103+
for root, dirnames, filenames in os.walk('/opt/stack'):
104+
for filename in fnmatch.filter(filenames, 'console.log'):
105+
fullpath = os.path.join(root, filename)
106+
_dump_cmd("sudo cat %s" % fullpath)
107+
108+
100109
def main():
101110
opts = get_options()
102111
fname = filename(opts.dir)
@@ -108,6 +117,7 @@ def main():
108117
process_list()
109118
network_dump()
110119
iptables_dump()
120+
compute_consoles()
111121

112122

113123
if __name__ == '__main__':

0 commit comments

Comments
 (0)