Browse Source

ci: add volume.list diagnostic for troubleshooting 'No writable volumes'

- Add 'weed shell' execution to run 'volume.list' on failure
- Shows which volumes exist, their status, and available space
- Add cluster status JSON output for detailed topology view
- Helps diagnose volume allocation issues and full volumes
- Added to both spark-tests and spark-example jobs
- Diagnostic runs only when tests fail (if: failure())
pull/7526/head
chrislu 6 days ago
parent
commit
6683a9941b
  1. 31
      .github/workflows/spark-integration-tests.yml

31
.github/workflows/spark-integration-tests.yml

@ -247,6 +247,15 @@ jobs:
echo "" echo ""
echo "=== SeaweedFS Filer Logs ===" echo "=== SeaweedFS Filer Logs ==="
docker compose logs seaweedfs-filer docker compose logs seaweedfs-filer
echo ""
echo "=== Volume List (via weed shell) ==="
docker compose exec -T seaweedfs-master weed shell <<EOF || echo "Failed to list volumes"
volume.list
exit
EOF
echo ""
echo "=== Cluster Status ==="
curl -s http://localhost:9333/dir/status | jq '.' || curl -s http://localhost:9333/dir/status
- name: Stop SeaweedFS services - name: Stop SeaweedFS services
if: always() if: always()
@ -406,6 +415,28 @@ jobs:
echo "Verifying Spark output in SeaweedFS..." echo "Verifying Spark output in SeaweedFS..."
curl -s http://localhost:8888/ci-spark-output/ || echo "Output directory listing not available" curl -s http://localhost:8888/ci-spark-output/ || echo "Output directory listing not available"
- name: Display SeaweedFS diagnostics on failure
if: failure()
working-directory: test/java/spark
run: |
echo "=== SeaweedFS Master Logs ==="
docker compose logs seaweedfs-master
echo ""
echo "=== SeaweedFS Volume Logs ==="
docker compose logs seaweedfs-volume
echo ""
echo "=== SeaweedFS Filer Logs ==="
docker compose logs seaweedfs-filer
echo ""
echo "=== Volume List (via weed shell) ==="
docker compose exec -T seaweedfs-master weed shell <<EOF || echo "Failed to list volumes"
volume.list
exit
EOF
echo ""
echo "=== Cluster Status ==="
curl -s http://localhost:9333/dir/status | jq '.' || curl -s http://localhost:9333/dir/status
- name: Stop SeaweedFS services - name: Stop SeaweedFS services
if: always() if: always()
working-directory: test/java/spark working-directory: test/java/spark

Loading…
Cancel
Save