{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/13281","labels_url":"https://api.github.com/repos/saltstack/salt/issues/13281/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/13281/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/13281/events","html_url":"https://github.com/saltstack/salt/issues/13281","id":35113092,"number":13281,"title":"RunnerClient.async() causes zombie processes to be created. ","user":{"login":"felix-deschamps","id":6867389,"avatar_url":"https://avatars.githubusercontent.com/u/6867389?v=3","gravatar_id":"","url":"https://api.github.com/users/felix-deschamps","html_url":"https://github.com/felix-deschamps","followers_url":"https://api.github.com/users/felix-deschamps/followers","following_url":"https://api.github.com/users/felix-deschamps/following{/other_user}","gists_url":"https://api.github.com/users/felix-deschamps/gists{/gist_id}","starred_url":"https://api.github.com/users/felix-deschamps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felix-deschamps/subscriptions","organizations_url":"https://api.github.com/users/felix-deschamps/orgs","repos_url":"https://api.github.com/users/felix-deschamps/repos","events_url":"https://api.github.com/users/felix-deschamps/events{/privacy}","received_events_url":"https://api.github.com/users/felix-deschamps/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Console","name":"Console","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P3","name":"P3","color":"0a3d77"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Salt-API","name":"Salt-API","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":2411,"closed_issues":2289,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-07-14T21:02:58Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2014-06-06T01:47:40Z","updated_at":"2015-07-14T21:02:58Z","closed_at":"2015-07-14T21:02:58Z","body":"It appears that calls to RunnerClient.async() lead a new zombie process to be created. I ran into this under several different circumstances: 1. while calling from a standalone python script caling RunnerClient.async() directly. 2. While invoking inside of a runner module. 3. While called during a peer publish event. In the last two cases this led to a zombie salt-master process to be spanned. My guess it has to do with holding onto a subprocess reference somewhere in the bowels of the async() call and not calling wait() or poll() somewhere along the line. "},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/121386052","html_url":"https://github.com/saltstack/salt/issues/13281#issuecomment-121386052","issue_url":"https://api.github.com/repos/saltstack/salt/issues/13281","id":121386052,"user":{"login":"cachedout","id":111616,"avatar_url":"https://avatars.githubusercontent.com/u/111616?v=3","gravatar_id":"","url":"https://api.github.com/users/cachedout","html_url":"https://github.com/cachedout","followers_url":"https://api.github.com/users/cachedout/followers","following_url":"https://api.github.com/users/cachedout/following{/other_user}","gists_url":"https://api.github.com/users/cachedout/gists{/gist_id}","starred_url":"https://api.github.com/users/cachedout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cachedout/subscriptions","organizations_url":"https://api.github.com/users/cachedout/orgs","repos_url":"https://api.github.com/users/cachedout/repos","events_url":"https://api.github.com/users/cachedout/events{/privacy}","received_events_url":"https://api.github.com/users/cachedout/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T21:02:58Z","updated_at":"2015-07-14T21:02:58Z","body":"I'm reasonably sure we've fixed this. I'm closing this issue."}}