Merge "Fix worlddump log collection"
This commit is contained in:
commit
bfb176579b
@ -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
|
||||
|
@ -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__':
|
||||
|
Loading…
x
Reference in New Issue
Block a user