aboutsummaryrefslogtreecommitdiff
path: root/kolla
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-05-25 10:22:07 +0000
committerGerrit Code Review <review@openstack.org>2018-05-25 10:22:07 +0000
commit046c5cc7243e9589e02b1cc2b9fb1deb82b13426 (patch)
treec7e641249c745a9a02a4f0216867298099bd5fb1 /kolla
parentdf05a8b793b8fc9e505561884cb51216517d4339 (diff)
parent58742c212e0bdc5092ba6cc0da2fc8c5589bb172 (diff)
downloadkolla-046c5cc7243e9589e02b1cc2b9fb1deb82b13426.tar.gz
kolla-046c5cc7243e9589e02b1cc2b9fb1deb82b13426.zip
Merge "Create symlinks for failed builds logs"
Diffstat (limited to 'kolla')
-rwxr-xr-xkolla/image/build.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py
index 551845562..8abdad0dd 100755
--- a/kolla/image/build.py
+++ b/kolla/image/build.py
@@ -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("=====================================")