/kind bug
[Before submitting an issue, have you checked the Troubleshooting Guide self-managed & managed?]
What steps did you take and what happened:
[A clear and concise description of what the bug is.]
Orphaned NICs Cause Cluster-Wide LoadBalancer Failure During Quota Exhaustion
Problem
When Azure quota is exhausted during VM provisioning, orphaned NICs cause cluster-wide LoadBalancer failure:
- Azure creates NIC before allocating compute resources
- VM creation fails due to quota exhaustion
- NIC remains orphaned (no VM attached)
- Orphaned NIC stays in LoadBalancer backend pool
- LB marks backend as unhealthy → entire cluster loses connectivity
- NIC is never cleaned up → LB remains broken
Impact
- Cluster-wide connectivity failure - all services become unreachable
- Affects production workloads when Azure quota exhausted
- Persists until manual NIC cleanup by cluster admin
- No automatic recovery mechanism
Steps to Reproduce
- Exhaust Azure VM quota in subscription
- Scale up MachineSet to trigger new Machine creation
- Observe VM creation failure with quota error
- Check LoadBalancer backend pool - orphaned NIC present
What did you expect to happen:
- Orphaned NIC should be cleaned up automatically
- Machine should retry with exponential backoff
- No MHC remediation triggered (quota exhaustion is cluster-level, not machine-level failure)
- Cluster connectivity restored within seconds
- Auto-recovery when quota becomes available
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Upstream PR:
Environment:
- cluster-api-provider-azure version: 1.22
- Kubernetes version: (use
kubectl version):
- OS (e.g. from
/etc/os-release):
/kind bug
[Before submitting an issue, have you checked the Troubleshooting Guide self-managed & managed?]
What steps did you take and what happened:
[A clear and concise description of what the bug is.]
Orphaned NICs Cause Cluster-Wide LoadBalancer Failure During Quota Exhaustion
Problem
When Azure quota is exhausted during VM provisioning, orphaned NICs cause cluster-wide LoadBalancer failure:
Impact
Steps to Reproduce
What did you expect to happen:
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Upstream PR:
Environment:
kubectl version):/etc/os-release):