{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/18967","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/18967/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/18967/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/18967/events","html_url":"https://github.com/kubernetes/kubernetes/issues/18967","id":123288861,"number":18967,"title":"Kubelet exec network plugin calls Setup Pod and TearDown pod in any order","user":{"login":"ssergiienko","id":9850672,"avatar_url":"https://avatars.githubusercontent.com/u/9850672?v=3","gravatar_id":"","url":"https://api.github.com/users/ssergiienko","html_url":"https://github.com/ssergiienko","followers_url":"https://api.github.com/users/ssergiienko/followers","following_url":"https://api.github.com/users/ssergiienko/following{/other_user}","gists_url":"https://api.github.com/users/ssergiienko/gists{/gist_id}","starred_url":"https://api.github.com/users/ssergiienko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssergiienko/subscriptions","organizations_url":"https://api.github.com/users/ssergiienko/orgs","repos_url":"https://api.github.com/users/ssergiienko/repos","events_url":"https://api.github.com/users/ssergiienko/events{/privacy}","received_events_url":"https://api.github.com/users/ssergiienko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/cluster","name":"team/cluster","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-21T14:29:13Z","updated_at":"2015-12-22T13:33:47Z","closed_at":null,"body":"Kubelet exec network plugin calls Setup Pod and TearDown pod in any order. This breaks logic, when Teardown is called for pod before this pod actually created (Setup not called at this moment).\r\n\r\nMore over sometimes Teardown even not called at all. When we create|delete pod fast - setup is called but Teardown - no.\r\n\r\nWe have made 3(!) workarounds to accomplish what we need.\r\n\r\nExpected behaviour:\r\n1. If Setup called then Teardown must be called too, in any case.\r\n2. Setup always needs to be called before Teardown, not in reverse order as in some cases."},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/166619781","html_url":"https://github.com/kubernetes/kubernetes/issues/18967#issuecomment-166619781","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/18967","id":166619781,"user":{"login":"ssergiienko","id":9850672,"avatar_url":"https://avatars.githubusercontent.com/u/9850672?v=3","gravatar_id":"","url":"https://api.github.com/users/ssergiienko","html_url":"https://github.com/ssergiienko","followers_url":"https://api.github.com/users/ssergiienko/followers","following_url":"https://api.github.com/users/ssergiienko/following{/other_user}","gists_url":"https://api.github.com/users/ssergiienko/gists{/gist_id}","starred_url":"https://api.github.com/users/ssergiienko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssergiienko/subscriptions","organizations_url":"https://api.github.com/users/ssergiienko/orgs","repos_url":"https://api.github.com/users/ssergiienko/repos","events_url":"https://api.github.com/users/ssergiienko/events{/privacy}","received_events_url":"https://api.github.com/users/ssergiienko/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T13:33:47Z","updated_at":"2015-12-22T13:33:47Z","body":"@AdoHe Yes, `if the setup teardown order is not guaranteed` - this is the most annoying issue. And if Teardown is absent at all - it's wrong too, but it's easier to workaround.\r\nAnyway, Thanks for help!"}}