Skip to content

Commit 82c7203

Browse files
k8s-ci-robotohsewon
authored andcommitted
Merge pull request kubernetes#82264 from syseleven/openstack_dont_delete_lb_on_errors
openstack: Don't Delete LB in Case of Security Group Reconciliation Errors
2 parents e78fce0 + 7a3f15a commit 82c7203

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

staging/src/k8s.io/legacy-cloud-providers/openstack/openstack_loadbalancer.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -999,9 +999,7 @@ func (lbaas *LbaasV2) EnsureLoadBalancer(ctx context.Context, clusterName string
999999
if lbaas.opts.ManageSecurityGroups {
10001000
err := lbaas.ensureSecurityGroup(clusterName, apiService, nodes, loadbalancer)
10011001
if err != nil {
1002-
// cleanup what was created so far
1003-
_ = lbaas.EnsureLoadBalancerDeleted(ctx, clusterName, apiService)
1004-
return status, err
1002+
return status, fmt.Errorf("Error reconciling security groups for LB service %v/%v: %v", apiService.Namespace, apiService.Name, err)
10051003
}
10061004
}
10071005

0 commit comments

Comments
 (0)