Skip to content

Commit

Permalink
test: fix prepare pod log collection in CI
Browse files Browse the repository at this point in the history
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 <blaine.gardner@redhat.com>
(cherry picked from commit f287df7)
  • Loading branch information
BlaineEXE authored and mergify-bot committed Oct 14, 2021
1 parent f704fb2 commit b54f083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/scripts/validate_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b54f083

Please sign in to comment.