{"action":"closed","number":12057,"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/12057","id":95729138,"html_url":"https://github.com/openshift/origin/pull/12057","diff_url":"https://github.com/openshift/origin/pull/12057.diff","patch_url":"https://github.com/openshift/origin/pull/12057.patch","issue_url":"https://api.github.com/repos/openshift/origin/issues/12057","number":12057,"state":"closed","locked":false,"title":"Fail new builds that can't start build pod because it already exists","user":{"login":"mmilata","id":85857,"avatar_url":"https://avatars.githubusercontent.com/u/85857?v=3","gravatar_id":"","url":"https://api.github.com/users/mmilata","html_url":"https://github.com/mmilata","followers_url":"https://api.github.com/users/mmilata/followers","following_url":"https://api.github.com/users/mmilata/following{/other_user}","gists_url":"https://api.github.com/users/mmilata/gists{/gist_id}","starred_url":"https://api.github.com/users/mmilata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmilata/subscriptions","organizations_url":"https://api.github.com/users/mmilata/orgs","repos_url":"https://api.github.com/users/mmilata/repos","events_url":"https://api.github.com/users/mmilata/events{/privacy}","received_events_url":"https://api.github.com/users/mmilata/received_events","type":"User","site_admin":false},"body":"Consider following scenario:\r\n\r\n- build is started by user\r\n- build controller creates build pod\r\n- build is deleted by user\r\n- build pod is killed but remains Terminating during grace period\r\n- build with same name as in first step is started by user\r\n\r\nPreviously the new build stayed in New phase until the old build pod finished and then went into Failed after the pod terminated. This commit causes the new build to go into Error phase when it first tries creating build pod and fails because pod with the same name exists.\r\n\r\nSlightly improves bug 1300949 (the described behavior is still very similar).","created_at":"2016-11-29T16:41:37Z","updated_at":"2016-12-01T18:56:48Z","closed_at":"2016-12-01T18:56:48Z","merged_at":"2016-12-01T18:56:48Z","merge_commit_sha":"b7eca0d2f0686dad11b5ac90389d4bb14350fd73","assignee":{"login":"bparees","id":4974046,"avatar_url":"https://avatars.githubusercontent.com/u/4974046?v=3","gravatar_id":"","url":"https://api.github.com/users/bparees","html_url":"https://github.com/bparees","followers_url":"https://api.github.com/users/bparees/followers","following_url":"https://api.github.com/users/bparees/following{/other_user}","gists_url":"https://api.github.com/users/bparees/gists{/gist_id}","starred_url":"https://api.github.com/users/bparees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bparees/subscriptions","organizations_url":"https://api.github.com/users/bparees/orgs","repos_url":"https://api.github.com/users/bparees/repos","events_url":"https://api.github.com/users/bparees/events{/privacy}","received_events_url":"https://api.github.com/users/bparees/received_events","type":"User","site_admin":false},"assignees":[{"login":"bparees","id":4974046,"avatar_url":"https://avatars.githubusercontent.com/u/4974046?v=3","gravatar_id":"","url":"https://api.github.com/users/bparees","html_url":"https://github.com/bparees","followers_url":"https://api.github.com/users/bparees/followers","following_url":"https://api.github.com/users/bparees/following{/other_user}","gists_url":"https://api.github.com/users/bparees/gists{/gist_id}","starred_url":"https://api.github.com/users/bparees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bparees/subscriptions","organizations_url":"https://api.github.com/users/bparees/orgs","repos_url":"https://api.github.com/users/bparees/repos","events_url":"https://api.github.com/users/bparees/events{/privacy}","received_events_url":"https://api.github.com/users/bparees/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openshift/origin/pulls/12057/commits","review_comments_url":"https://api.github.com/repos/openshift/origin/pulls/12057/comments","review_comment_url":"https://api.github.com/repos/openshift/origin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openshift/origin/issues/12057/comments","statuses_url":"https://api.github.com/repos/openshift/origin/statuses/0cfb747a088461f03fab091c61759b576a926e3e","head":{"label":"mmilata:bz1300949-buildconfig-deletion","ref":"bz1300949-buildconfig-deletion","sha":"0cfb747a088461f03fab091c61759b576a926e3e","user":{"login":"mmilata","id":85857,"avatar_url":"https://avatars.githubusercontent.com/u/85857?v=3","gravatar_id":"","url":"https://api.github.com/users/mmilata","html_url":"https://github.com/mmilata","followers_url":"https://api.github.com/users/mmilata/followers","following_url":"https://api.github.com/users/mmilata/following{/other_user}","gists_url":"https://api.github.com/users/mmilata/gists{/gist_id}","starred_url":"https://api.github.com/users/mmilata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmilata/subscriptions","organizations_url":"https://api.github.com/users/mmilata/orgs","repos_url":"https://api.github.com/users/mmilata/repos","events_url":"https://api.github.com/users/mmilata/events{/privacy}","received_events_url":"https://api.github.com/users/mmilata/received_events","type":"User","site_admin":false},"repo":{"id":67504809,"name":"origin","full_name":"mmilata/origin","owner":{"login":"mmilata","id":85857,"avatar_url":"https://avatars.githubusercontent.com/u/85857?v=3","gravatar_id":"","url":"https://api.github.com/users/mmilata","html_url":"https://github.com/mmilata","followers_url":"https://api.github.com/users/mmilata/followers","following_url":"https://api.github.com/users/mmilata/following{/other_user}","gists_url":"https://api.github.com/users/mmilata/gists{/gist_id}","starred_url":"https://api.github.com/users/mmilata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmilata/subscriptions","organizations_url":"https://api.github.com/users/mmilata/orgs","repos_url":"https://api.github.com/users/mmilata/repos","events_url":"https://api.github.com/users/mmilata/events{/privacy}","received_events_url":"https://api.github.com/users/mmilata/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mmilata/origin","description":"Enterprise-Ready Kubernetes for Developers","fork":true,"url":"https://api.github.com/repos/mmilata/origin","forks_url":"https://api.github.com/repos/mmilata/origin/forks","keys_url":"https://api.github.com/repos/mmilata/origin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmilata/origin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmilata/origin/teams","hooks_url":"https://api.github.com/repos/mmilata/origin/hooks","issue_events_url":"https://api.github.com/repos/mmilata/origin/issues/events{/number}","events_url":"https://api.github.com/repos/mmilata/origin/events","assignees_url":"https://api.github.com/repos/mmilata/origin/assignees{/user}","branches_url":"https://api.github.com/repos/mmilata/origin/branches{/branch}","tags_url":"https://api.github.com/repos/mmilata/origin/tags","blobs_url":"https://api.github.com/repos/mmilata/origin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmilata/origin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmilata/origin/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmilata/origin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmilata/origin/statuses/{sha}","languages_url":"https://api.github.com/repos/mmilata/origin/languages","stargazers_url":"https://api.github.com/repos/mmilata/origin/stargazers","contributors_url":"https://api.github.com/repos/mmilata/origin/contributors","subscribers_url":"https://api.github.com/repos/mmilata/origin/subscribers","subscription_url":"https://api.github.com/repos/mmilata/origin/subscription","commits_url":"https://api.github.com/repos/mmilata/origin/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmilata/origin/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmilata/origin/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmilata/origin/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmilata/origin/contents/{+path}","compare_url":"https://api.github.com/repos/mmilata/origin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmilata/origin/merges","archive_url":"https://api.github.com/repos/mmilata/origin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmilata/origin/downloads","issues_url":"https://api.github.com/repos/mmilata/origin/issues{/number}","pulls_url":"https://api.github.com/repos/mmilata/origin/pulls{/number}","milestones_url":"https://api.github.com/repos/mmilata/origin/milestones{/number}","notifications_url":"https://api.github.com/repos/mmilata/origin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmilata/origin/labels{/name}","releases_url":"https://api.github.com/repos/mmilata/origin/releases{/id}","deployments_url":"https://api.github.com/repos/mmilata/origin/deployments","created_at":"2016-09-06T12:10:42Z","updated_at":"2016-09-06T12:10:51Z","pushed_at":"2016-12-01T14:59:06Z","git_url":"git://github.com/mmilata/origin.git","ssh_url":"git@github.com:mmilata/origin.git","clone_url":"https://github.com/mmilata/origin.git","svn_url":"https://github.com/mmilata/origin","homepage":"http://www.openshift.org","size":390995,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openshift:master","ref":"master","sha":"ff5bd5a316adf3467e52d6dbbc827ff729dd0aeb","user":{"login":"openshift","id":792337,"avatar_url":"https://avatars.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"repo":{"id":22442668,"name":"origin","full_name":"openshift/origin","owner":{"login":"openshift","id":792337,"avatar_url":"https://avatars.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openshift/origin","description":"Enterprise Kubernetes for Developers","fork":false,"url":"https://api.github.com/repos/openshift/origin","forks_url":"https://api.github.com/repos/openshift/origin/forks","keys_url":"https://api.github.com/repos/openshift/origin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openshift/origin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openshift/origin/teams","hooks_url":"https://api.github.com/repos/openshift/origin/hooks","issue_events_url":"https://api.github.com/repos/openshift/origin/issues/events{/number}","events_url":"https://api.github.com/repos/openshift/origin/events","assignees_url":"https://api.github.com/repos/openshift/origin/assignees{/user}","branches_url":"https://api.github.com/repos/openshift/origin/branches{/branch}","tags_url":"https://api.github.com/repos/openshift/origin/tags","blobs_url":"https://api.github.com/repos/openshift/origin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openshift/origin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openshift/origin/git/refs{/sha}","trees_url":"https://api.github.com/repos/openshift/origin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openshift/origin/statuses/{sha}","languages_url":"https://api.github.com/repos/openshift/origin/languages","stargazers_url":"https://api.github.com/repos/openshift/origin/stargazers","contributors_url":"https://api.github.com/repos/openshift/origin/contributors","subscribers_url":"https://api.github.com/repos/openshift/origin/subscribers","subscription_url":"https://api.github.com/repos/openshift/origin/subscription","commits_url":"https://api.github.com/repos/openshift/origin/commits{/sha}","git_commits_url":"https://api.github.com/repos/openshift/origin/git/commits{/sha}","comments_url":"https://api.github.com/repos/openshift/origin/comments{/number}","issue_comment_url":"https://api.github.com/repos/openshift/origin/issues/comments{/number}","contents_url":"https://api.github.com/repos/openshift/origin/contents/{+path}","compare_url":"https://api.github.com/repos/openshift/origin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openshift/origin/merges","archive_url":"https://api.github.com/repos/openshift/origin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openshift/origin/downloads","issues_url":"https://api.github.com/repos/openshift/origin/issues{/number}","pulls_url":"https://api.github.com/repos/openshift/origin/pulls{/number}","milestones_url":"https://api.github.com/repos/openshift/origin/milestones{/number}","notifications_url":"https://api.github.com/repos/openshift/origin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openshift/origin/labels{/name}","releases_url":"https://api.github.com/repos/openshift/origin/releases{/id}","deployments_url":"https://api.github.com/repos/openshift/origin/deployments","created_at":"2014-07-30T20:04:05Z","updated_at":"2016-12-01T18:09:51Z","pushed_at":"2016-12-01T18:56:48Z","git_url":"git://github.com/openshift/origin.git","ssh_url":"git@github.com:openshift/origin.git","clone_url":"https://github.com/openshift/origin.git","svn_url":"https://github.com/openshift/origin","homepage":"http://www.openshift.org","size":646964,"stargazers_count":2089,"watchers_count":2089,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1388,"mirror_url":null,"open_issues_count":1166,"forks":1388,"open_issues":1166,"watchers":2089,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openshift/origin/pulls/12057"},"html":{"href":"https://github.com/openshift/origin/pull/12057"},"issue":{"href":"https://api.github.com/repos/openshift/origin/issues/12057"},"comments":{"href":"https://api.github.com/repos/openshift/origin/issues/12057/comments"},"review_comments":{"href":"https://api.github.com/repos/openshift/origin/pulls/12057/comments"},"review_comment":{"href":"https://api.github.com/repos/openshift/origin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openshift/origin/pulls/12057/commits"},"statuses":{"href":"https://api.github.com/repos/openshift/origin/statuses/0cfb747a088461f03fab091c61759b576a926e3e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"openshift-bot","id":1779249,"avatar_url":"https://avatars.githubusercontent.com/u/1779249?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift-bot","html_url":"https://github.com/openshift-bot","followers_url":"https://api.github.com/users/openshift-bot/followers","following_url":"https://api.github.com/users/openshift-bot/following{/other_user}","gists_url":"https://api.github.com/users/openshift-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift-bot/subscriptions","organizations_url":"https://api.github.com/users/openshift-bot/orgs","repos_url":"https://api.github.com/users/openshift-bot/repos","events_url":"https://api.github.com/users/openshift-bot/events{/privacy}","received_events_url":"https://api.github.com/users/openshift-bot/received_events","type":"User","site_admin":false},"comments":11,"review_comments":2,"commits":1,"additions":13,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"openshift-bot"}}