Skip to content

Commit bfb1765

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix worlddump log collection"
2 parents 7d2663d + ce396d3 commit bfb1765

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.zuul.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@
233233
'{{ devstack_log_dir }}/devstacklog.txt': logs
234234
'{{ devstack_log_dir }}/devstacklog.txt.summary': logs
235235
'{{ devstack_log_dir }}/tcpdump.pcap': logs
236+
'{{ devstack_log_dir }}/worlddump-latest.txt': logs
236237
'{{ devstack_full_log}}': logs
237238
'{{ stage_dir }}/verify_tempest_conf.log': logs
238239
'{{ stage_dir }}/apache': logs

tools/worlddump.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import fnmatch
2626
import os
2727
import os.path
28+
import shutil
2829
import subprocess
2930
import sys
3031

@@ -248,6 +249,14 @@ def main():
248249
compute_consoles()
249250
guru_meditation_reports()
250251
var_core()
252+
# Singular name for ease of log retrieval
253+
copyname = os.path.join(opts.dir, 'worlddump')
254+
if opts.name:
255+
copyname += '-' + opts.name
256+
copyname += '-latest.txt'
257+
# We make a full copy to deal with jobs that may or may not
258+
# gzip logs breaking symlinks.
259+
shutil.copyfile(fname, copyname)
251260

252261

253262
if __name__ == '__main__':

0 commit comments

Comments
 (0)