ci: get the logs from the Ceph cluster pods

It seems that `/var/log/rook` inside the VM does not contain any files.
Getting the logs from the Pods through kubectl may not be as stable, but
it should get some logs when minikube is still/again available.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2021-05-12 18:58:17 +02:00 committed by mergify[bot]
parent 410db81215
commit 7ebc8306ef

View File

@ -44,7 +44,11 @@ log minikube_ssh sudo tar c /var/lib/rook | tar xvO
# gets status of the Rook deployment # gets status of the Rook deployment
log kubectl -n rook-ceph get pods log kubectl -n rook-ceph get pods
log kubectl -n rook-ceph describe pods for POD in $(kubectl -n rook-ceph get pod -l rook_cluster=rook-ceph -o jsonpath='{.items[0].metadata.name}')
do
log kubectl -n rook-ceph describe pod "${POD}"
log kubectl -n rook-ceph logs "${POD}"
done
log kubectl -n rook-ceph describe CephCluster log kubectl -n rook-ceph describe CephCluster
log kubectl -n rook-ceph describe CephBlockPool log kubectl -n rook-ceph describe CephBlockPool
log kubectl -n rook-ceph describe CephFilesystem log kubectl -n rook-ceph describe CephFilesystem