Merge "Create symlinks for failed builds logs"
This commit is contained in:
commit
046c5cc724
@ -1018,6 +1018,10 @@ class KollaWorker(object):
|
||||
'name': name,
|
||||
'status': status,
|
||||
})
|
||||
if self.conf.logs_dir and status == STATUS_ERROR:
|
||||
os.symlink("%s.log" % name,
|
||||
os.path.join(self.conf.logs_dir,
|
||||
"000_FAILED_%s.log" % name))
|
||||
|
||||
if self.image_statuses_unmatched:
|
||||
LOG.debug("=====================================")
|
||||
|
@ -65,6 +65,12 @@
|
||||
sudo mv $f ${f/.log/.txt}
|
||||
done
|
||||
|
||||
# Update symlinks to new file names
|
||||
for f in $(find logs -name "*FAILED*"); do
|
||||
sudo mv ${f} ${f}.gz
|
||||
sudo ln -sf ${f#*/000_FAILED_}.gz ${f}.gz
|
||||
done
|
||||
|
||||
# append .txt to all kolla config file
|
||||
find logs/kolla_configs -type f -exec mv '{}' '{}'.txt \;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user