{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/50364","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/50364/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/50364/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/50364/events","html_url":"https://github.com/kubernetes/kubernetes/issues/50364","id":248973054,"number":50364,"title":"External load balancer is not removed after the service is deleted on OpenStack cloud provider","user":{"login":"yuyangbj","id":4157428,"avatar_url":"https://avatars0.githubusercontent.com/u/4157428?v=4","gravatar_id":"","url":"https://api.github.com/users/yuyangbj","html_url":"https://github.com/yuyangbj","followers_url":"https://api.github.com/users/yuyangbj/followers","following_url":"https://api.github.com/users/yuyangbj/following{/other_user}","gists_url":"https://api.github.com/users/yuyangbj/gists{/gist_id}","starred_url":"https://api.github.com/users/yuyangbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuyangbj/subscriptions","organizations_url":"https://api.github.com/users/yuyangbj/orgs","repos_url":"https://api.github.com/users/yuyangbj/repos","events_url":"https://api.github.com/users/yuyangbj/events{/privacy}","received_events_url":"https://api.github.com/users/yuyangbj/received_events","type":"User","site_admin":false},"labels":[{"id":116712108,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/network","name":"sig/network","color":"d2b48c","default":false},{"id":239914558,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/openstack","name":"sig/openstack","color":"d2b48c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-08-09T09:38:00Z","updated_at":"2017-08-09T10:52:20Z","closed_at":null,"body":"<!-- This form is for bug reports and feature requests ONLY! \r\n\r\nIf you're looking for help check [Stack Overflow](https://stackoverflow.com/questions/tagged/kubernetes) and the [troubleshooting guide](https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/).\r\n-->\r\n\r\n**Is this a BUG REPORT or FEATURE REQUEST?**:\r\n\r\n> Uncomment only one, leave it on its own line: \r\n>\r\n> /kind bug\r\n> /sig network\r\n\r\n**What happened**:\r\n\r\nWhen I deployed a service with type load balancer, the service controller will create an external load balancer on OpenStack, but when I delete this service, the load balancer will still exist on OpenStack cloud provider.\r\n\r\n#kubectl get svc\r\nNAME         CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE\r\nkubernetes   10.248.0.1   <none>        443/TCP   5d\r\n\r\n#neutron lbaas-loadbalancer-list\r\n+--------------------------------------+----------------------------------------------------+-------------+---------------------+------------+\r\n| id                                   | name                                               | vip_address | provisioning_status | provider   |\r\n+--------------------------------------+----------------------------------------------------+-------------+---------------------+------------+\r\n| 021e6a63-1643-4557-aaca-37c9fb3b3ad1 | k8s-master-lb-4378c909-26fd-4254-9f34-17976b292014 | 192.168.0.3 | ERROR               | vmwareedge |\r\n| 1392daee-40fd-48d8-91e8-37ffef4eb41c | a3a9866527ce211e79504fa163e95de4                   | 192.168.0.8 | ACTIVE              | vmwareedge |\r\n| e7864372-3ed4-4ae9-849d-db71f5a2c041 | k8s-master-lb-4378c909-26fd-4254-9f34-17976b292014 | 192.168.0.7 | ACTIVE              | vmwareedge |\r\n+--------------------------------------+----------------------------------------------------+-------------+---------------------+------------+\r\n\r\n**What you expected to happen**:\r\n\r\nThe load balancer created for the kubernetes service should be deleted automatically.\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\n\r\n1> Create a service with load balancer type\r\n2> Check the OpenStack load balancer using command: neutron lbaas-loadbalancer-list\r\n3> Delete the service defined in step 1\r\n4> do same as step 2\r\n\r\n**Anything else we need to know?**:\r\n\r\n1. The kubernetes controller manager does not restart during these ops. I checked the process number, it keeps same.\r\n2. The floating ip related to the load balancer vip is deleted.\r\n\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`):\r\n\r\n#kubectl version\r\n2017-08-09 02:37:01.607289 I | proto: duplicate proto type registered: google.protobuf.Any\r\n2017-08-09 02:37:01.607883 I | proto: duplicate proto type registered: google.protobuf.Duration\r\n2017-08-09 02:37:01.608000 I | proto: duplicate proto type registered: google.protobuf.Timestamp\r\nClient Version: version.Info{Major:\"1\", Minor:\"7\", GitVersion:\"v1.7.0\", GitCommit:\"50ce6464749d05317882f2a4e5e06b3709d59737\", GitTreeState:\"clean\", BuildDate:\"2017-07-26T04:38:26Z\", GoVersion:\"go1.8.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"7\", GitVersion:\"v1.7.0\", GitCommit:\"50ce6464749d05317882f2a4e5e06b3709d59737\", GitTreeState:\"clean\", BuildDate:\"2017-07-26T04:38:26Z\", GoVersion:\"go1.8.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n\r\n- Cloud provider or hardware configuration**:\r\nOpenStack provider\r\n- OS (e.g. from /etc/os-release):\r\nUbuntu\r\n- Kernel (e.g. `uname -a`):\r\n#cat /etc/lsb-release \r\nDISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=16.04\r\nDISTRIB_CODENAME=xenial\r\nDISTRIB_DESCRIPTION=\"Ubuntu 16.04.2 LTS\"\r\n\r\n- Install tools:\r\nKubespray\r\n\r\n- Others:\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/321221615","html_url":"https://github.com/kubernetes/kubernetes/issues/50364#issuecomment-321221615","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/50364","id":321221615,"user":{"login":"yuyangbj","id":4157428,"avatar_url":"https://avatars0.githubusercontent.com/u/4157428?v=4","gravatar_id":"","url":"https://api.github.com/users/yuyangbj","html_url":"https://github.com/yuyangbj","followers_url":"https://api.github.com/users/yuyangbj/followers","following_url":"https://api.github.com/users/yuyangbj/following{/other_user}","gists_url":"https://api.github.com/users/yuyangbj/gists{/gist_id}","starred_url":"https://api.github.com/users/yuyangbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuyangbj/subscriptions","organizations_url":"https://api.github.com/users/yuyangbj/orgs","repos_url":"https://api.github.com/users/yuyangbj/repos","events_url":"https://api.github.com/users/yuyangbj/events{/privacy}","received_events_url":"https://api.github.com/users/yuyangbj/received_events","type":"User","site_admin":false},"created_at":"2017-08-09T10:52:20Z","updated_at":"2017-08-09T10:52:20Z","body":"but no, I can see the load balancer resources in OpenStack."}}
{"actor":{"display_login":"yuyangbj"}}