Description of problem: Cloud-provider LoadBalancer functionality seems to be active altough '[LoadBalancer]' section is empty or not present in openstack.cfg file. Version-Release number of selected component (if applicable): [openshift@master-0 ~]$ oc version oc v3.11.44 kubernetes v1.11.0+d4cacc0 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://192.168.99.6:8443 openshift v3.11.44 kubernetes v1.11.0+d4cacc0 [openshift@master-0 ~]$ How reproducible: run shiftstack deployment with cloud provider enabled, but without any 'LoadBalancer' option, the relevant part from OSEv3.yml file: " openshift_cloudprovider_kind: openstack openshift_cloudprovider_openstack_auth_url: "{{ lookup('env','OS_AUTH_URL') }}" openshift_cloudprovider_openstack_username: "{{ lookup('env','OS_USERNAME') }}" openshift_cloudprovider_openstack_password: "{{ lookup('env','OS_PASSWORD') }}" openshift_cloudprovider_openstack_tenant_name: "{{ lookup('env','OS_PROJECT_NAME') }}" openshift_cloudprovider_openstack_domain_name: "{{ lookup('env','OS_USER_DOMAIN_NAME') }}" openshift_cloudprovider_openstack_blockstorage_version: v2 " Actual results: Openstack Cloud-provider LoadBalacer functionality is active. Checking the master controllers logs, I can see that LB function is active. 'Claiming to support LoadBalancer' This behavior could lead to conflict in a case 'Kuryr' is configured as the SDN. Expected results: Openstack Cloud-provider LoadBalance functionality should be disabled. Additional info: Seems that this bug was resolved in K8S 1.12 upstream. https://github.com/kubernetes/kubernetes/blob/release-1.12/pkg/cloudprovider/providers/openstack/openstack.go#L589
Here is a link to upstream commit that fixes this issue: https://github.com/kubernetes/kubernetes/commit/a78fc5926d6091fcae9df2ccac3a5a3182832ce4
I sent this PR upstream to address this issue: https://github.com/openshift/origin/pull/21554
Hi Yossi, thanks for the PR and resolution of the issue. Jan
It is passed on openshift v3.11.69 kubernetes v1.11.0+d4cacc0 [root@qe-chaoyang-master-etcd-nfs-1 ~]# oc logs master-controllers-qe-chaoyang-master-etcd-nfs-1 | grep LoadBalancer I0117 03:25:57.969058 1 openstack.go:575] openstack.LoadBalancer() called I0117 03:25:57.969093 1 openstack.go:578] LoadBalancer section is empty/not defined in cloud-config
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0096