From b54f0830dc45e1879686d218d04957e5bbc8a0e5 Mon Sep 17 00:00:00 2001 From: Blaine Gardner Date: Thu, 14 Oct 2021 11:15:59 -0600 Subject: [PATCH] test: fix prepare pod log collection in CI In the CI tests that use `validate_cluster.sh display_status` to gather logs, the prepare pod log collection failed. Fix this. Signed-off-by: Blaine Gardner (cherry picked from commit f287df70eefa34b79668ac3a19a1d37963cb8c18) --- tests/scripts/validate_cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/validate_cluster.sh b/tests/scripts/validate_cluster.sh index 1d7197d08133..ad5224e9b8f4 100755 --- a/tests/scripts/validate_cluster.sh +++ b/tests/scripts/validate_cluster.sh @@ -104,7 +104,7 @@ function display_status { kubectl -n rook-ceph logs deploy/rook-ceph-operator > test/operator-logs.txt kubectl -n rook-ceph get pods -o wide > test/pods-list.txt kubectl -n rook-ceph describe job/"$(kubectl -n rook-ceph get job -l app=rook-ceph-osd-prepare -o jsonpath='{.items[*].metadata.name}')" > test/osd-prepare-describe.txt - kubectl -n rook-ceph log job/"$(kubectl -n rook-ceph get job -l app=rook-ceph-osd-prepare -o jsonpath='{.items[*].metadata.name}')" > test/osd-prepare-logs.txt + kubectl -n rook-ceph logs job/"$(kubectl -n rook-ceph get job -l app=rook-ceph-osd-prepare -o jsonpath='{.items[*].metadata.name}')" > test/osd-prepare-logs.txt kubectl -n rook-ceph describe deploy/rook-ceph-osd-0 > test/rook-ceph-osd-0-describe.txt kubectl -n rook-ceph describe deploy/rook-ceph-osd-1 > test/rook-ceph-osd-1-describe.txt kubectl -n rook-ceph logs deploy/rook-ceph-osd-0 --all-containers > test/rook-ceph-osd-0-logs.txt