{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/1859","labels_url":"https://api.github.com/repos/openshift/origin/issues/1859/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/1859/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/1859/events","html_url":"https://github.com/openshift/origin/issues/1859","id":70042180,"number":1859,"title":"After manually removing containers, master reschedules all the builds","user":{"login":"TomasTomecek","id":1662493,"avatar_url":"https://avatars.githubusercontent.com/u/1662493?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasTomecek","html_url":"https://github.com/TomasTomecek","followers_url":"https://api.github.com/users/TomasTomecek/followers","following_url":"https://api.github.com/users/TomasTomecek/following{/other_user}","gists_url":"https://api.github.com/users/TomasTomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasTomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasTomecek/subscriptions","organizations_url":"https://api.github.com/users/TomasTomecek/orgs","repos_url":"https://api.github.com/users/TomasTomecek/repos","events_url":"https://api.github.com/users/TomasTomecek/events{/privacy}","received_events_url":"https://api.github.com/users/TomasTomecek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-22T07:04:24Z","updated_at":"2015-04-22T12:35:16Z","closed_at":null,"body":"Wanted to clean my docker environment (by doing `docker rm` on all containers) after doing some builds with OpenShift: there was a couple build containers and a couple of pods. When I started master after the cleanup, it started all the pods and started building everything all over. Is this expected? If so, how should I purge all the containers?\r\n\r\n#### Environment\r\n\r\n```\r\n$ docker ps -a\r\nCONTAINER ID        IMAGE                             COMMAND                CREATED             STATUS                    PORTS               NAMES\r\n7d7b045a527b        buildroot:latest                  \"dock --verbose insi   17 hours ago        Exited (0) 17 hours ago                       k8s_custom-build.c2565220_rsyslog-docker-20150421-150107_default_799e7613-e826-11e4-ab1c-fa163e1012c3_8ad66cd2\r\n18ff6788612b        openshift/origin-pod:v0.3.3       \"/pod\"                 17 hours ago        Exited (0) 17 hours ago                       k8s_POD.8081d85a_rsyslog-docker-20150421-150107_default_799e7613-e826-11e4-ab1c-fa163e1012c3_88224ca2\r\na3d9d170d21f        buildroot:latest                  \"dock --verbose insi   17 hours ago        Exited (0) 17 hours ago                       k8s_custom-build.248c5324_rsyslog-docker-20150421-144916_default_d1eaf208-e824-11e4-ab1c-fa163e1012c3_7db01433\r\n1c69686e28e4        openshift/origin-pod:v0.3.3       \"/pod\"                 17 hours ago        Exited (0) 17 hours ago                       k8s_POD.8081d85a_rsyslog-docker-20150421-144916_default_d1eaf208-e824-11e4-ab1c-fa163e1012c3_0714a760\r\n769b4f954efb        buildroot:latest                  \"dock --verbose insi   18 hours ago        Exited (0) 18 hours ago                       k8s_custom-build.b6914d7e_rsyslog-docker-20150421-142545_default_88aa2207-e821-11e4-ab1c-fa163e1012c3_43cb1a7a\r\n8cecdd462e99        openshift/origin-pod:v0.3.3       \"/pod\"                 18 hours ago        Exited (0) 18 hours ago                       k8s_POD.8081d85a_rsyslog-docker-20150421-142545_default_88aa2207-e821-11e4-ab1c-fa163e1012c3_72b10de6\r\n4566ec9d2564        buildroot:latest                  \"dock --verbose insi   18 hours ago        Exited (0) 18 hours ago                       k8s_custom-build.b7ec4d8b_rsyslog-docker-20150421-141246_default_b8317b55-e81f-11e4-ab1c-fa163e1012c3_52e5fcb9\r\n35cdd993fca0        openshift/origin-pod:v0.3.3       \"/pod\"                 18 hours ago        Exited (0) 18 hours ago                       k8s_POD.8081d85a_rsyslog-docker-20150421-141246_default_b8317b55-e81f-11e4-ab1c-fa163e1012c3_9d874559\r\n...\r\n```\r\n```\r\n$ osc get builds\r\nNAME                             TYPE                STATUS              POD\r\nhello-world-20150420-171223      Custom              Failed              hello-world-20150420-171223\r\nhello-world-20150420-172801      Custom              Complete            hello-world-20150420-172801\r\nhello-world-20150420-173903      Custom              Complete            hello-world-20150420-173903\r\nhello-world-20150420-174440      Custom              Complete            hello-world-20150420-174440\r\nhello-world-20150420-174603      Custom              Complete            hello-world-20150420-174603\r\nhello-world-20150421-084851      Custom              Complete            hello-world-20150421-084851\r\nhello-world-20150421-085651      Custom              Complete            hello-world-20150421-085651\r\nhello-world-20150421-123151      Custom              Complete            hello-world-20150421-123151\r\nhello-world-20150421-123305      Custom              Complete            hello-world-20150421-123305\r\nrsyslog-docker-20150421-125910   Custom              Failed              rsyslog-docker-20150421-125910\r\nrsyslog-docker-20150421-125950   Custom              Failed              rsyslog-docker-20150421-125950\r\nrsyslog-docker-20150421-133707   Custom              Complete            rsyslog-docker-20150421-133707\r\nrsyslog-docker-20150421-141246   Custom              Complete            rsyslog-docker-20150421-141246\r\nrsyslog-docker-20150421-142545   Custom              Complete            rsyslog-docker-20150421-142545\r\nrsyslog-docker-20150421-144916   Custom              Complete            rsyslog-docker-20150421-144916\r\nrsyslog-docker-20150421-150107   Custom              Complete            rsyslog-docker-20150421-150107\r\n```\r\n\r\n#### Steps to reproduce\r\n\r\n1. stop (all-in-one) master\r\n2. remove all docker containers (`docker rm -f $(docker ps -a -q)`)\r\n3. start master\r\n\r\n#### Actual result\r\n\r\nmaster schedules all builds\r\n\r\n#### Expected result\r\n\r\nmaster does *NOT* schedule all builds\r\n"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/95158476","html_url":"https://github.com/openshift/origin/issues/1859#issuecomment-95158476","issue_url":"https://api.github.com/repos/openshift/origin/issues/1859","id":95158476,"user":{"login":"soltysh","id":576341,"avatar_url":"https://avatars.githubusercontent.com/u/576341?v=3","gravatar_id":"","url":"https://api.github.com/users/soltysh","html_url":"https://github.com/soltysh","followers_url":"https://api.github.com/users/soltysh/followers","following_url":"https://api.github.com/users/soltysh/following{/other_user}","gists_url":"https://api.github.com/users/soltysh/gists{/gist_id}","starred_url":"https://api.github.com/users/soltysh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soltysh/subscriptions","organizations_url":"https://api.github.com/users/soltysh/orgs","repos_url":"https://api.github.com/users/soltysh/repos","events_url":"https://api.github.com/users/soltysh/events{/privacy}","received_events_url":"https://api.github.com/users/soltysh/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T12:35:16Z","updated_at":"2015-04-22T12:35:16Z","body":"It should, based on comments from archived [trello](https://trello.com/c/1Zfnp9u1/497-garbage-collect-pods-used-for-builds) should be handled with https://github.com/GoogleCloudPlatform/kubernetes/issues/4731"}}