Browse code

updated artifacts to contain docker log and exlucde etcd data dir

Steve Kuznetsov authored on 2016/03/21 22:08:07
Showing 1 changed files
... ...
@@ -564,9 +564,17 @@ function cleanup_openshift {
564 564
 			fi
565 565
 		fi
566 566
 
567
+		echo "[INFO] Pruning etcd data directory..."
568
+		rm -rf "${ETCD_DATA_DIR}"
569
+
567 570
 		set -u
568 571
 	fi
569 572
 
573
+	if grep -q 'no Docker socket found' "${LOG_DIR}/openshift.log"; then 
574
+		# the Docker daemon crashed, we need the logs
575
+		journalctl --unit docker.service --since -4hours > "${LOG_DIR}/docker.log"
576
+	fi
577
+
570 578
 	delete_empty_logs
571 579
 	truncate_large_logs
572 580