Skip to content

Commit 6c99448

Browse files
committed
Fix LoadBalancerMember creation
When creating loadbalancer member, subnet not found error occurred. This commit fixes it. If subnet is not given, LBaaS uses the vip_subnet_id parameter value for the subnet UUID.
1 parent 8a30dec commit 6c99448

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/cloud/services/loadbalancer/loadbalancer.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ func (s *Service) ReconcileLoadBalancerMember(clusterName string, machine *clust
217217
s.logger.Info("Reconciling loadbalancer", "name", loadBalancerName)
218218

219219
lbID := openStackCluster.Status.Network.APIServerLoadBalancer.ID
220-
subnetID := openStackCluster.Status.Network.Subnet.ID
221220
portList := []int{int(openStackCluster.Spec.ControlPlaneEndpoint.Port)}
222221
portList = append(portList, openStackCluster.Spec.APIServerLoadBalancerAdditionalPorts...)
223222
for _, port := range portList {
@@ -268,7 +267,6 @@ func (s *Service) ReconcileLoadBalancerMember(clusterName string, machine *clust
268267
Name: name,
269268
ProtocolPort: port,
270269
Address: ip,
271-
SubnetID: subnetID,
272270
}
273271

274272
if err := waitForLoadBalancerActive(s.logger, s.loadbalancerClient, lbID); err != nil {

0 commit comments

Comments
 (0)