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,7 +190,9 @@ func (az *Cloud) EnsureLoadBalancer(ctx context.Context, clusterName string, ser
lbStatus, err := az.getServiceLoadBalancerStatus(service, lb) lbStatus, err := az.getServiceLoadBalancerStatus(service, lb)
if err != nil { if err != nil {
klog.Errorf("getServiceLoadBalancerStatus(%s) failed: %v", serviceName, err) klog.Errorf("getServiceLoadBalancerStatus(%s) failed: %v", serviceName, err)
return nil, err if err != cloudprovider.InstanceNotFound {
return nil, err
}
} }
var serviceIP *string var serviceIP *string

View File

@ -823,7 +823,9 @@ 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) klog.Errorf("error: az.EnsureHostInPool(%s), az.VMSet.GetPrimaryInterface.Get(%s, %s), err=%v", nodeName, vmName, vmSetName, err)
return "", "", "", nil, err if err != cloudprovider.InstanceNotFound {
return "", "", "", nil, err
}
} }
if nic.ProvisioningState != nil && *nic.ProvisioningState == nicFailedState { if nic.ProvisioningState != nil && *nic.ProvisioningState == nicFailedState {