{"action":"created","issue":{"url":"https://api.github.com/repos/projectcalico/calico-containers/issues/942","repository_url":"https://api.github.com/repos/projectcalico/calico-containers","labels_url":"https://api.github.com/repos/projectcalico/calico-containers/issues/942/labels{/name}","comments_url":"https://api.github.com/repos/projectcalico/calico-containers/issues/942/comments","events_url":"https://api.github.com/repos/projectcalico/calico-containers/issues/942/events","html_url":"https://github.com/projectcalico/calico-containers/issues/942","id":151071762,"number":942,"title":"calico-cni plugin leaks `/tmp/_MEIxxx` directories after failure","user":{"login":"fasaxc","id":469264,"avatar_url":"https://avatars.githubusercontent.com/u/469264?v=3","gravatar_id":"","url":"https://api.github.com/users/fasaxc","html_url":"https://github.com/fasaxc","followers_url":"https://api.github.com/users/fasaxc/followers","following_url":"https://api.github.com/users/fasaxc/following{/other_user}","gists_url":"https://api.github.com/users/fasaxc/gists{/gist_id}","starred_url":"https://api.github.com/users/fasaxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fasaxc/subscriptions","organizations_url":"https://api.github.com/users/fasaxc/orgs","repos_url":"https://api.github.com/users/fasaxc/repos","events_url":"https://api.github.com/users/fasaxc/events{/privacy}","received_events_url":"https://api.github.com/users/fasaxc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-26T08:18:05Z","updated_at":"2016-04-26T14:51:40Z","closed_at":null,"body":"We use `pyinstaller` to pack calico CNI; when the `calico` command is run, pyinstaller unpacks a copy of the code and libraries to `/tmp/_MEIxxx`.  If the `calico` command dies or is killed, those temporary files are left in place leaking 10-20MB."},"comment":{"url":"https://api.github.com/repos/projectcalico/calico-containers/issues/comments/214771032","html_url":"https://github.com/projectcalico/calico-containers/issues/942#issuecomment-214771032","issue_url":"https://api.github.com/repos/projectcalico/calico-containers/issues/942","id":214771032,"user":{"login":"fasaxc","id":469264,"avatar_url":"https://avatars.githubusercontent.com/u/469264?v=3","gravatar_id":"","url":"https://api.github.com/users/fasaxc","html_url":"https://github.com/fasaxc","followers_url":"https://api.github.com/users/fasaxc/followers","following_url":"https://api.github.com/users/fasaxc/following{/other_user}","gists_url":"https://api.github.com/users/fasaxc/gists{/gist_id}","starred_url":"https://api.github.com/users/fasaxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fasaxc/subscriptions","organizations_url":"https://api.github.com/users/fasaxc/orgs","repos_url":"https://api.github.com/users/fasaxc/repos","events_url":"https://api.github.com/users/fasaxc/events{/privacy}","received_events_url":"https://api.github.com/users/fasaxc/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T14:51:40Z","updated_at":"2016-04-26T14:51:40Z","body":"That sounds sensible to me, it seems to be a bit of pain to package python for coreOS.  Either that, or ship the CNI plugin inside calico-node (or its own container) and exec it inside there.\r\n\r\nI also had a crack at running the CNI plugin as a one-dir pyinstaller build to see if it reduced its CPU load/startup time vs the one-file option.  It does seem to (load average is 15 rather than 20 in my test) and ping times are 20-30% better.  (Caveat: these are numbers captured in GCE so there's quite a big variation between runs anyway.)"}}