chore: consolidate local WIP (repo cleanup 20260707)
Some checks failed
API CI / API Lint (push) Successful in 47s
API CI / API Type Check (push) Failing after 47s
API CI / API Test (push) Successful in 1m0s
API CI / API Build (push) Failing after 50s
API CI / Build Docker Image (push) Has been skipped
Build Crossplane Provider / build (push) Failing after 5m51s
CD Pipeline / Deploy to Staging (push) Failing after 29s
CI Pipeline / Lint and Type Check (push) Failing after 36s
CI Pipeline / Build (push) Has been skipped
CI Pipeline / Test Backend (push) Failing after 1m33s
CI Pipeline / Test Frontend (push) Failing after 30s
CI Pipeline / Security Scan (push) Failing after 1m16s
Crossplane Provider CI / Go Test (push) Failing after 3m23s
Crossplane Provider CI / Go Lint (push) Failing after 7m27s
Crossplane Provider CI / Go Build (push) Failing after 3m27s
Deploy to Staging / Deploy to Staging (push) Failing after 30s
Portal CI / Portal Lint (push) Failing after 21s
Portal CI / Portal Type Check (push) Failing after 21s
Portal CI / Portal Test (push) Failing after 21s
Portal CI / Portal Build (push) Failing after 22s
Test Suite / frontend-tests (push) Failing after 30s
Test Suite / api-tests (push) Failing after 49s
Test Suite / blockchain-tests (push) Failing after 30s
Type Check / type-check (map[directory:. name:root]) (push) Failing after 23s
Type Check / type-check (map[directory:api name:api]) (push) Failing after 21s
Type Check / type-check (map[directory:portal name:portal]) (push) Failing after 19s
Validate Configuration Files / validate (push) Failing after 1m52s
CD Pipeline / Deploy to Production (push) Has been skipped

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
defiQUG
2026-07-07 09:41:34 -07:00
parent 477cf73005
commit 33d50fb91e
277 changed files with 44421 additions and 75 deletions

View File

@@ -0,0 +1,45 @@
#!/bin/bash
# Efficient script to create all OSDs on available drives
set -e
DRIVES=("sdc" "sdd" "sde" "sdf" "sdg" "sdh")
echo "=== Checking cluster connectivity ==="
if ! ceph quorum_status &>/dev/null; then
echo "WARNING: Cluster quorum may not be established. Continuing anyway..."
fi
echo "=== Creating OSDs on all drives ==="
for disk in "${DRIVES[@]}"; do
echo "Processing /dev/$disk..."
# Check if already an OSD
if ceph-volume lvm list /dev/$disk 2>/dev/null | grep -q "osd\."; then
echo " /dev/$disk already has an OSD, skipping"
continue
fi
# Create OSD
echo " Creating OSD on /dev/$disk..."
if ceph-volume lvm create --data /dev/$disk --no-systemd 2>&1 | tee /tmp/osd-create-$disk.log; then
# Get OSD ID
OSD_ID=$(grep -oP "osd\.\K\d+" /tmp/osd-create-$disk.log | head -1)
if [ -n "$OSD_ID" ]; then
echo " OSD $OSD_ID created on /dev/$disk"
# Enable and start service
systemctl enable ceph-osd@$OSD_ID
systemctl start ceph-osd@$OSD_ID
echo " OSD $OSD_ID service started"
fi
else
echo " WARNING: Failed to create OSD on /dev/$disk"
fi
echo ""
done
echo "=== Final OSD status ==="
ceph osd tree 2>&1 || echo "Could not get OSD tree"
echo "=== All OSD services ==="
systemctl list-units | grep ceph-osd | grep active || echo "No active OSD services found"