- Add comprehensive database migrations (001-024) for schema evolution - Enhance API schema with expanded type definitions and resolvers - Add new middleware: audit logging, rate limiting, MFA enforcement, security, tenant auth - Implement new services: AI optimization, billing, blockchain, compliance, marketplace - Add adapter layer for cloud integrations (Cloudflare, Kubernetes, Proxmox, storage) - Update Crossplane provider with enhanced VM management capabilities - Add comprehensive test suite for API endpoints and services - Update frontend components with improved GraphQL subscriptions and real-time updates - Enhance security configurations and headers (CSP, CORS, etc.) - Update documentation and configuration files - Add new CI/CD workflows and validation scripts - Implement design system improvements and UI enhancements
6.1 KiB
6.1 KiB
Proxmox Troubleshooting Guide
Common Issues and Solutions
Provider Not Connecting
Symptoms
- Provider logs show connection errors
- ProviderConfig status is not Ready
- VM creation fails with connection errors
Solutions
-
Verify Endpoint:
curl -k https://your-proxmox:8006/api2/json/version -
Check Credentials:
kubectl get secret proxmox-credentials -n crossplane-system -o yaml -
Test Authentication:
curl -k -X POST \ -d "username=root@pam&password=your-password" \ https://your-proxmox:8006/api2/json/access/ticket -
Check Provider Logs:
kubectl logs -n crossplane-system -l app=crossplane-provider-proxmox --tail=100
VM Creation Fails
Symptoms
- VM resource stuck in Creating state
- Error messages in VM resource status
- No VM appears in Proxmox
Solutions
-
Check VM Resource:
kubectl describe proxmoxvm <vm-name> -
Verify Site Configuration:
- Site must exist in ProviderConfig
- Endpoint must be reachable
- Node name must match actual Proxmox node
-
Check Proxmox Resources:
- Storage pool must exist
- Network bridge must exist
- OS template must exist
-
Check Proxmox Logs:
- Log into Proxmox Web UI
- Check System Log
- Review task history
VM Status Not Updating
Symptoms
- VM status remains unknown
- IP address not populated
- State not reflecting actual VM state
Solutions
-
Check Provider Connectivity:
kubectl logs -n crossplane-system -l app=crossplane-provider-proxmox | grep -i error -
Verify VM Exists in Proxmox:
- Check Proxmox Web UI
- Verify VM ID matches
-
Check Reconciliation:
kubectl get proxmoxvm <vm-name> -o yaml | grep -A 5 conditions
Storage Issues
Symptoms
- VM creation fails with storage errors
- "Storage not found" errors
- Insufficient storage errors
Solutions
-
List Available Storage:
# Via Proxmox API curl -k -H "Authorization: PVEAuthCookie=TOKEN" \ https://your-proxmox:8006/api2/json/storage -
Check Storage Capacity:
- Log into Proxmox Web UI
- Check Storage section
- Verify available space
-
Update Storage Name:
- Verify actual storage pool name
- Update VM manifest if needed
Network Issues
Symptoms
- VM created but no network connectivity
- IP address not assigned
- Network bridge errors
Solutions
-
Verify Network Bridge:
# Via Proxmox API curl -k -H "Authorization: PVEAuthCookie=TOKEN" \ https://your-proxmox:8006/api2/json/nodes/ML110-01/network -
Check Network Configuration:
- Verify bridge name in VM manifest
- Check bridge exists on node
- Verify bridge is active
-
Check DHCP:
- Verify DHCP server is running
- Check network configuration
- Review VM network settings
Authentication Failures
Symptoms
- 401 Unauthorized errors
- Authentication failed messages
- Token/ticket errors
Solutions
-
Verify Credentials:
- Check username format:
user@realm - Verify password is correct
- Check token format if using tokens
- Check username format:
-
Test Authentication:
# Password auth curl -k -X POST \ -d "username=root@pam&password=your-password" \ https://your-proxmox:8006/api2/json/access/ticket # Token auth curl -k -H "Authorization: PVEAuthCookie=TOKEN" \ https://your-proxmox:8006/api2/json/version -
Check Permissions:
- Verify user has VM creation permissions
- Check token permissions
- Review Proxmox user roles
Provider Pod Issues
Symptoms
- Provider pod not starting
- Provider pod crashing
- Provider pod in Error state
Solutions
-
Check Pod Status:
kubectl get pods -n crossplane-system -l app=crossplane-provider-proxmox kubectl describe pod -n crossplane-system -l app=crossplane-provider-proxmox -
Check Pod Logs:
kubectl logs -n crossplane-system -l app=crossplane-provider-proxmox --tail=100 -
Check Image:
kubectl get deployment -n crossplane-system crossplane-provider-proxmox -o yaml | grep image -
Verify Resources:
kubectl get deployment -n crossplane-system crossplane-provider-proxmox -o yaml | grep -A 5 resources
Diagnostic Commands
Check Provider Health
# Provider status
kubectl get deployment -n crossplane-system crossplane-provider-proxmox
# Provider logs
kubectl logs -n crossplane-system -l app=crossplane-provider-proxmox --tail=50
# Provider metrics
kubectl port-forward -n crossplane-system deployment/crossplane-provider-proxmox 8080:8080
curl http://localhost:8080/metrics
Check VM Resources
# List all VMs
kubectl get proxmoxvm
# Get VM details
kubectl get proxmoxvm <vm-name> -o yaml
# Check VM events
kubectl describe proxmoxvm <vm-name>
Check ProviderConfig
# List ProviderConfigs
kubectl get providerconfig
# Get ProviderConfig details
kubectl get providerconfig proxmox-provider-config -o yaml
# Check ProviderConfig status
kubectl describe providerconfig proxmox-provider-config
Escalation Procedures
Level 1: Basic Troubleshooting
- Check provider logs
- Verify credentials
- Test connectivity
- Review VM resource status
Level 2: Advanced Troubleshooting
- Check Proxmox Web UI
- Review Proxmox logs
- Verify network connectivity
- Check resource availability
Level 3: Infrastructure Issues
- Contact Proxmox administrator
- Check infrastructure status
- Review network configuration
- Verify DNS resolution
Prevention
- Regular Monitoring: Set up alerts for provider health
- Resource Verification: Verify resources before deployment
- Credential Rotation: Rotate credentials regularly
- Backup Configuration: Backup ProviderConfig and secrets
- Documentation: Keep documentation up to date