From 58742c212e0bdc5092ba6cc0da2fc8c5589bb172 Mon Sep 17 00:00:00 2001 From: Martin André Date: Mon, 7 May 2018 15:55:59 +0200 Subject: Create symlinks for failed builds logs This allows to know which image failed to build without having to parse the huge job-output.txt file. This commit creates a convenient 000_FAILED_image_name.log symlink to the relevant log files when kolla is configured to output to a log directory. This creates symlinks only for the parent image with error, i.e. it skips images that failed to build because of parent error. Change-Id: I05954e2335dc3fac469276809c91f9c87e3ecab2 --- tests/playbooks/post.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/playbooks/post.yml b/tests/playbooks/post.yml index 413d3f757..9ed6128c5 100644 --- a/tests/playbooks/post.yml +++ b/tests/playbooks/post.yml @@ -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 \; -- cgit v1.2.3