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:
Kubernetes Prow Robot 2022-08-21 19:33:38 -07:00 committed by GitHub
commit a1128e380c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -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 {

View File

@ -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)