mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #111428 from lzhecheng/skip-instance-not-found
Azure: Skip "instance not found" error for LB backend address pools
This commit is contained in:
commit
a1128e380c
@ -190,8 +190,10 @@ func (az *Cloud) EnsureLoadBalancer(ctx context.Context, clusterName string, ser
|
||||
lbStatus, err := az.getServiceLoadBalancerStatus(service, lb)
|
||||
if err != nil {
|
||||
klog.Errorf("getServiceLoadBalancerStatus(%s) failed: %v", serviceName, err)
|
||||
if err != cloudprovider.InstanceNotFound {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
var serviceIP *string
|
||||
if lbStatus != nil && len(lbStatus.Ingress) > 0 {
|
||||
|
@ -823,8 +823,10 @@ func (as *availabilitySet) EnsureHostInPool(service *v1.Service, nodeName types.
|
||||
}
|
||||
|
||||
klog.Errorf("error: az.EnsureHostInPool(%s), az.VMSet.GetPrimaryInterface.Get(%s, %s), err=%v", nodeName, vmName, vmSetName, err)
|
||||
if err != cloudprovider.InstanceNotFound {
|
||||
return "", "", "", nil, err
|
||||
}
|
||||
}
|
||||
|
||||
if nic.ProvisioningState != nil && *nic.ProvisioningState == nicFailedState {
|
||||
klog.Warningf("EnsureHostInPool skips node %s because its primary nic %s is in Failed state", nodeName, *nic.Name)
|
||||
|
Loading…
Reference in New Issue
Block a user