Skip to content

Commit

Permalink
Merge pull request #111428 from lzhecheng/skip-instance-not-found
Browse files Browse the repository at this point in the history
Azure: Skip "instance not found" error for LB backend address pools
  • Loading branch information
k8s-ci-robot committed Aug 22, 2022
2 parents d581cc9 + f960ff0 commit a1128e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ 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)
return nil, err
if err != cloudprovider.InstanceNotFound {
return nil, err
}
}

var serviceIP *string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
return "", "", "", nil, err
if err != cloudprovider.InstanceNotFound {
return "", "", "", nil, err
}
}

if nic.ProvisioningState != nil && *nic.ProvisioningState == nicFailedState {
Expand Down

0 comments on commit a1128e3

Please sign in to comment.