|
2 | 2 |
|
3 | 3 | ---
|
4 | 4 |
|
| 5 | +## Driver Readiness and Health Issues |
| 6 | + |
| 7 | +### Enhanced LNet Validation Troubleshooting |
| 8 | + |
| 9 | +**Symptoms:** |
| 10 | + |
| 11 | +- CSI driver node pods show `2/3` ready status |
| 12 | +- Readiness probe failing repeatedly |
| 13 | +- Pods remain in `Running` or startup issues |
| 14 | +- Mount operations fail with "driver not ready" errors |
| 15 | + |
| 16 | +#### Detailed Probe Verification Steps |
| 17 | + |
| 18 | +If the exec-based readiness probe fails (exit code 1), use these detailed verification steps: |
| 19 | + |
| 20 | +```shell |
| 21 | +# Verify detailed probe configuration |
| 22 | +kubectl describe -n kube-system pod -l app=csi-azurelustre-node |
| 23 | +``` |
| 24 | +Look for exec-based probe configuration in the pod description: |
| 25 | +- `Readiness: exec [/app/readinessProbe.sh]` |
| 26 | +- `Startup: exec [/app/readinessProbe.sh]` |
| 27 | + |
| 28 | +In the Events section, you may see initial startup probe failures during LNet initialization: |
| 29 | +- `Warning Unhealthy ... Startup probe failed: Node pod detected - performing Lustre-specific readiness checks` |
| 30 | + |
| 31 | +This is normal during the initialization phase. Once LNet is fully operational, the probes will succeed. |
| 32 | + |
| 33 | +```shell |
| 34 | +# Test the readiness probe script directly |
| 35 | +kubectl exec -n kube-system <pod-name> -c azurelustre -- /app/readinessProbe.sh |
| 36 | +``` |
| 37 | +Expected output when working correctly: |
| 38 | +- `"Node pod detected - performing Lustre-specific readiness checks"` |
| 39 | +- `"All Lustre readiness checks passed"` |
| 40 | + |
| 41 | +```shell |
| 42 | +# Check for enhanced validation messages |
| 43 | +kubectl logs -n kube-system -l app=csi-azurelustre-node -c azurelustre --tail=20 |
| 44 | +``` |
| 45 | +Look for CSI driver startup and readiness messages: |
| 46 | +- `"vendor_version":"v0.4.0-readiness-http"` - Confirms feature branch deployment |
| 47 | +- Standard CSI GRPC operation logs indicating successful driver initialization |
| 48 | + |
| 49 | +```shell |
| 50 | +# Check for detailed validation failure reasons |
| 51 | +kubectl logs -n kube-system <pod-name> -c azurelustre | grep -E "(LNet validation failed|Failed to|not operational)" |
| 52 | +``` |
| 53 | + |
| 54 | +Common issues and solutions: |
| 55 | +- **"No valid NIDs"**: LNet networking not properly configured |
| 56 | +- **"Self-ping test failed"**: Network connectivity issues |
| 57 | +- **"Interfaces not operational"**: Network interfaces not in UP state |
| 58 | +- **"Lustre module not loaded"**: Kernel module loading issues |
| 59 | + |
| 60 | +**Test readiness probe directly:** |
| 61 | + |
| 62 | +```sh |
| 63 | +# Test the exec-based readiness probe script |
| 64 | +kubectl exec -n kube-system <csi-azurelustre-node-pod> -c azurelustre -- /app/readinessProbe.sh |
| 65 | +``` |
| 66 | + |
| 67 | +Expected responses: |
| 68 | +- Exit code 0: Enhanced LNet validation passed |
| 69 | +- Exit code 1: One or more validation checks failed (with descriptive error message) |
| 70 | + |
| 71 | +**Test HTTP health endpoints (optional manual testing):** |
| 72 | + |
| 73 | +```sh |
| 74 | +# Test enhanced readiness/liveness via HTTP endpoint |
| 75 | +kubectl exec -n kube-system <csi-azurelustre-node-pod> -c azurelustre -- curl -s localhost:29763/healthz |
| 76 | +``` |
| 77 | + |
| 78 | +HTTP responses: |
| 79 | +- `/healthz`: `ok` (HTTP 200) or `not ready` (HTTP 503) |
| 80 | + |
| 81 | +**Check enhanced validation logs:** |
| 82 | + |
| 83 | +```sh |
| 84 | +# Look for detailed LNet validation messages |
| 85 | +kubectl logs -n kube-system <csi-azurelustre-node-pod> -c azurelustre | grep -E "(LNet validation|NIDs|self-ping|interfaces)" |
| 86 | +``` |
| 87 | + |
| 88 | +Look for validation success messages: |
| 89 | +- `"LNet validation passed: all checks successful"` |
| 90 | +- `"Found NIDs: <network-identifiers>"` |
| 91 | +- `"LNet self-ping to <nid> successful"` |
| 92 | +- `"All LNet interfaces operational"` |
| 93 | + |
| 94 | +**Common readiness failure patterns:** |
| 95 | + |
| 96 | +1. **No valid NIDs found:** |
| 97 | + ```text |
| 98 | + LNet validation failed: no valid NIDs |
| 99 | + No valid non-loopback LNet NIDs found |
| 100 | + ``` |
| 101 | + **Solution:** Check LNet configuration and network setup |
| 102 | + |
| 103 | +2. **Self-ping test failed:** |
| 104 | + ```text |
| 105 | + LNet validation failed: self-ping test failed |
| 106 | + LNet self-ping to <nid> failed |
| 107 | + ``` |
| 108 | + **Solution:** Verify network connectivity and LNet networking |
| 109 | + |
| 110 | +3. **Interfaces not operational:** |
| 111 | + ```text |
| 112 | + LNet validation failed: interfaces not operational |
| 113 | + Found non-operational interface: status: down |
| 114 | + ``` |
| 115 | + **Solution:** Check network interface status and configuration |
| 116 | + |
| 117 | +4. **Module loading issues:** |
| 118 | + ```text |
| 119 | + Lustre module not loaded |
| 120 | + LNet kernel module is not loaded |
| 121 | + ``` |
| 122 | + **Solution:** Check kernel module installation and loading |
| 123 | + |
| 124 | +**Debug LNet configuration manually:** |
| 125 | + |
| 126 | +```sh |
| 127 | +# Check kernel modules |
| 128 | +kubectl exec -n kube-system <csi-azurelustre-node-pod> -c azurelustre -- lsmod | grep -E "(lnet|lustre)" |
| 129 | + |
| 130 | +# Check LNet NIDs |
| 131 | +kubectl exec -n kube-system <csi-azurelustre-node-pod> -c azurelustre -- lctl list_nids |
| 132 | + |
| 133 | +# Test LNet self-ping |
| 134 | +kubectl exec -n kube-system <csi-azurelustre-node-pod> -c azurelustre -- lctl ping <nid> |
| 135 | + |
| 136 | +# Check interface status |
| 137 | +kubectl exec -n kube-system <csi-azurelustre-node-pod> -c azurelustre -- lnetctl net show --net tcp |
| 138 | +``` |
| 139 | + |
| 140 | +**Check probe configuration:** |
| 141 | + |
| 142 | +```sh |
| 143 | +# Verify probe settings in deployment |
| 144 | +kubectl describe -n kube-system pod <csi-azurelustre-node-pod> | grep -A 10 -E "(Liveness|Readiness|Startup)" |
| 145 | +``` |
| 146 | + |
| 147 | +**Monitor readiness probe attempts:** |
| 148 | + |
| 149 | +```sh |
| 150 | +# Watch probe events in real-time |
| 151 | +kubectl get events --field-selector involvedObject.name=<csi-azurelustre-node-pod> -n kube-system -w | grep -E "(Readiness|Liveness)" |
| 152 | +``` |
| 153 | + |
| 154 | +--- |
| 155 | + |
5 | 156 | ## Volume Provisioning Issues
|
6 | 157 |
|
7 | 158 | ### Dynamic Provisioning (AMLFS Cluster Creation) - Public Preview
|
|
0 commit comments