Skip to content

Commit

Permalink
CI: fix chaos test (#5274)
Browse files Browse the repository at this point in the history
  • Loading branch information
YunhuiChen authored Nov 4, 2024
1 parent 3a1e939 commit ecf6c06
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/chaos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,15 @@ jobs:
- name: Check mount point pod
if: always()
run: |
run: |
POD_NAME=$(kubectl get pods -n kube-system -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}' | grep juicefs-chart-testing-control-plane-pvc)
echo POD_NAME is $POD_NAME
kubectl -n kube-system describe po $POD_NAME
kubectl logs -n kube-system $POD_NAME > juicefs.log
cat juicefs.log
grep "<FATAL>:" juicefs.log && exit 1 || true
for pod in $POD_NAME;do
kubectl -n kube-system describe po $pod
kubectl logs -n kube-system $pod > juicefs.log
cat juicefs.log
grep "<FATAL>:" juicefs.log && exit 1 || true
done
- name: Check vdbench log
if: always()
Expand Down

0 comments on commit ecf6c06

Please sign in to comment.