From 0cb5abc6fb6b00bd0e4d10bdf7534396e24ffae5 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 17 May 2021 16:21:35 +0530 Subject: [PATCH] ci: log previous instance of the container in a pod if the pod is crashed and restarted the current logs is not helpful. Logging with `-p` might help us to log the previous container. Signed-off-by: Madhu Rajanna --- system-status.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/system-status.sh b/system-status.sh index c27af1683..1bcc669ce 100755 --- a/system-status.sh +++ b/system-status.sh @@ -49,6 +49,7 @@ for POD in $(kubectl -n rook-ceph get pods -o jsonpath='{.items[0].metadata.name do log kubectl -n rook-ceph describe pod "${POD}" log kubectl -n rook-ceph logs "${POD}" + log kubectl -n rook-ceph logs "${POD}" --all-containers --previous=true done log kubectl -n rook-ceph describe CephCluster log kubectl -n rook-ceph describe CephBlockPool