Closed ppeereb1 closed 3 years ago
Please use --v=4
in the args of openstack-cloud-controller-manager so that you can see more logs for debugging, there will be octavia version in the log: Found Octavia API versions
So apparently Openshift4.7 stil uses the legacy-cloud-providers :unamused:
/kind bug
What happened: Hi,
I'm trying to create a service type loadbalancer with loadBalancerSourceRanges in order to limit access to the public loadbalancer from ranges we trust.
cloud-provider-config:
service.yaml:
When creating the loadbalancer I get the following error in the kube-controller-manager pod:
I0302 15:30:42.861430 1 event.go:291] "Event occurred" object="quattro-monitoring/hello-octavia" kind="Service" apiVersion="v1" type="Warning" reason="SyncLoadBalancerFailed" message="Error syncing load balancer: failed to ensure load balancer: source range restrictions are not supported for openstack load balancers without managing security groups"
When looking at the code that causes the error at line: https://github.com/kubernetes/cloud-provider-openstack/blob/release-1.20/pkg/cloudprovider/providers/openstack/openstack_loadbalancer.go#L1636
if lbaas.opts.UseOctavia && openstackutil.IsOctaviaFeatureSupported(lbaas.lb, openstackutil.OctaviaFeatureVIPACL)
It looks like this if statement fails somehow but i can't see why. I specified use-octavia in the cloud-provider-config and the IsOctaviaFeatureSupported should pass ( https://github.com/kubernetes/cloud-provider-openstack/blob/18aafcca6075dfb54d620e322b267bc334e33e1b/pkg/util/openstack/loadbalancer.go#L104 ) since we have octavia api version v2.12+:
Not sure what I'm doing wrong exactly.
Regards, Paul
What you expected to happen: Able to create loadbalancer type service with loadBalancerSourceRanges
How to reproduce it:
Anything else we need to know?:
Environment: