diff --git a/.zuul.yaml b/.zuul.yaml index 1b43611358..197942906f 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -233,6 +233,7 @@ '{{ devstack_log_dir }}/devstacklog.txt': logs '{{ devstack_log_dir }}/devstacklog.txt.summary': logs '{{ devstack_log_dir }}/tcpdump.pcap': logs + '{{ devstack_log_dir }}/worlddump-latest.txt': logs '{{ devstack_full_log}}': logs '{{ stage_dir }}/verify_tempest_conf.log': logs '{{ stage_dir }}/apache': logs diff --git a/tools/worlddump.py b/tools/worlddump.py index 88af19d2e3..d1453ca076 100755 --- a/tools/worlddump.py +++ b/tools/worlddump.py @@ -25,6 +25,7 @@ from distutils import spawn import fnmatch import os import os.path +import shutil import subprocess import sys @@ -248,6 +249,14 @@ def main(): compute_consoles() guru_meditation_reports() var_core() + # Singular name for ease of log retrieval + copyname = os.path.join(opts.dir, 'worlddump') + if opts.name: + copyname += '-' + opts.name + copyname += '-latest.txt' + # We make a full copy to deal with jobs that may or may not + # gzip logs breaking symlinks. + shutil.copyfile(fname, copyname) if __name__ == '__main__':