mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #59075 from jrperritt/octavia-flip-fix
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. cloudprovider/openstack: fix bug that tries to use octavia client to query flip **What this PR does / why we need it**: This fixes a bug that [potentially] tries to use an Octavia client to query a floating ip. Neutron should always handle those. **Release note**: ```release-note cloudprovider/openstack: fix bug the tries to use octavia client to query flip ```
This commit is contained in:
commit
92bb4caaea
@ -922,7 +922,7 @@ func (lbaas *LbaasV2) EnsureLoadBalancer(clusterName string, apiService *v1.Serv
|
|||||||
}
|
}
|
||||||
|
|
||||||
portID := loadbalancer.VipPortID
|
portID := loadbalancer.VipPortID
|
||||||
floatIP, err := getFloatingIPByPortID(lbaas.lb, portID)
|
floatIP, err := getFloatingIPByPortID(lbaas.network, portID)
|
||||||
if err != nil && err != ErrNotFound {
|
if err != nil && err != ErrNotFound {
|
||||||
return nil, fmt.Errorf("error getting floating ip for port %s: %v", portID, err)
|
return nil, fmt.Errorf("error getting floating ip for port %s: %v", portID, err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user