Skip to content

Commit

Permalink
CI:fix csi upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
YunhuiChen committed Nov 12, 2024
1 parent c90a175 commit 303efc0
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/chaos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ jobs:
- name: Build And Load CSI Docker Image
run: |
version=`./juicefs version |awk '{print $3}' | cut -d '-' -f1`
docker build -f .github/scripts/chaos/juicefs.Dockerfile -t juicedata/mount:ee-${version} .
docker build -f .github/scripts/chaos/juicefs.Dockerfile -t juicedata/mount:ce-v${version} .
helm repo add juicefs https://juicedata.github.io/charts/
helm repo update
kind load docker-image juicedata/mount:ee-${version} --name chart-testing
kind load docker-image juicedata/mount:ce-v${version} --name chart-testing
- name: Install JuiceFS CSI Driver
run: |
Expand All @@ -100,7 +100,7 @@ jobs:
- name: Mount Juicefs
run: |
version=`./juicefs version |awk '{print $3}' | cut -d '-' -f1`
sed -i "s/mount:ci/mount:ee-$version/" .github/scripts/chaos/sc.yaml
sed -i "s/mount:ci/mount:ce-v$version/" .github/scripts/chaos/sc.yaml
kubectl apply -f .github/scripts/chaos/sc.yaml
kubectl apply -f .github/scripts/chaos/pvc.yaml
Expand Down Expand Up @@ -162,6 +162,18 @@ jobs:
exit 1
fi
done
- name: Check mount pod
if: always()
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
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: Mount pod upgrade
timeout-minutes: 5
Expand Down Expand Up @@ -202,7 +214,7 @@ jobs:
- name: Check mount point pod
if: always()
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)
POD_NAME=$(kubectl get pods -n kube-system | grep juicefs-chart-testing-control-plane-pvc | grep Running | awk '{print $1}')
echo POD_NAME is $POD_NAME
for pod in $POD_NAME;do
kubectl -n kube-system describe po $pod
Expand Down

0 comments on commit 303efc0

Please sign in to comment.