mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-13 01:50:40 +02:00
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())
This commit is contained in:
@@ -247,6 +247,15 @@ jobs:
|
||||
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
|
||||
if: always()
|
||||
@@ -406,6 +415,28 @@ jobs:
|
||||
echo "Verifying Spark output in SeaweedFS..."
|
||||
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
|
||||
if: always()
|
||||
working-directory: test/java/spark
|
||||
|
||||
Reference in New Issue
Block a user