{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/3391","labels_url":"https://api.github.com/repos/openshift/origin/issues/3391/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/3391/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/3391/events","html_url":"https://github.com/openshift/origin/issues/3391","id":90354808,"number":3391,"title":"Build hangs in New when BuildOutput is missing","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},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/build","name":"component/build","color":"0052cc"}],"state":"closed","locked":false,"assignee":{"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},"milestone":null,"comments":10,"created_at":"2015-06-23T10:59:24Z","updated_at":"2015-06-29T09:31:19Z","closed_at":"2015-06-26T17:50:40Z","body":"### Steps to reproduce\r\n\r\nUsing openshift 1.0.0 built from source on RHEL 7.1.\r\n```\r\n$ cat f.json\r\n{\r\n    \"kind\": \"Build\",\r\n    \"apiVersion\": \"v1\",\r\n    \"spec\": {\r\n        \"source\": {\r\n            \"git\": {\r\n                \"ref\": \"master\",\r\n                \"uri\": \"https://github.com/mmilata/docker-hello-world.git\"\r\n            },\r\n            \"type\": \"Git\"\r\n        },\r\n        \"strategy\": {\r\n            \"customStrategy\": {\r\n                \"exposeDockerSocket\": true,\r\n                \"from\": {\r\n                    \"kind\": \"ImageStreamTag\",\r\n                    \"name\": \"buildroot:latest\"\r\n                }\r\n            },\r\n            \"type\": \"Custom\"\r\n        }\r\n    },\r\n    \"metadata\": {\r\n        \"name\": \"test-build-123\"\r\n    }\r\n}\r\n\r\n$ curl -k -X POST https://localhost:8443/oapi/v1/namespaces/default/builds/ --data @f.json\r\n{\r\n  \"kind\": \"Build\",\r\n  \"apiVersion\": \"v1\",\r\n  \"metadata\": {\r\n    \"name\": \"test-build-123\",\r\n    \"namespace\": \"default\",\r\n    \"selfLink\": \"/oapi/v1/namespaces/default/builds/test-build-123\",\r\n    \"uid\": \"6384ccea-1995-11e5-8a39-525400189322\",\r\n    \"resourceVersion\": \"965\",\r\n    \"creationTimestamp\": \"2015-06-23T10:48:31Z\"\r\n  },\r\n  \"spec\": {\r\n    \"source\": {\r\n      \"type\": \"Git\",\r\n      \"git\": {\r\n        \"uri\": \"https://github.com/mmilata/docker-hello-world.git\",\r\n        \"ref\": \"master\"\r\n      }\r\n    },\r\n    \"strategy\": {\r\n      \"type\": \"Custom\",\r\n      \"customStrategy\": {\r\n        \"from\": {\r\n          \"kind\": \"ImageStreamTag\",\r\n          \"name\": \"buildroot:latest\"\r\n        },\r\n        \"exposeDockerSocket\": true\r\n      }\r\n    },\r\n    \"output\": {},\r\n    \"resources\": {}\r\n  },\r\n  \"status\": {\r\n    \"phase\": \"New\"\r\n  }\r\n}\r\n\r\n$ oc get builds\r\nNAME                          TYPE      STATUS     POD\r\ntest-build-123                Custom    New        test-build-123-build\r\n\r\n$ oc get pods\r\nNAME                                READY     REASON       RESTARTS   AGE\r\n```\r\n\r\n### Results\r\n\r\nBuild stays in New state forever, no pods are created.\r\n\r\n### Expected results\r\n\r\nBuild is started and the result is not pushed anywhere.\r\nOR\r\nAPI call returns an error.\r\n\r\n### Context\r\n\r\n[OSBS](https://github.com/DBuildService/osbs) uses custom builds where the build image pushes the result into [pulp server](http://www.pulpproject.org/) and discards the built docker image. Currently we need to provide dummy docker repository for `BuildOutput` to work around this issue.\r\n\r\nPlease note that [API docs](http://docs.openshift.org/latest/rest_api/openshift_v1.html#v1-buildspec) list the `BuildOutput` as optional."},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/116569827","html_url":"https://github.com/openshift/origin/issues/3391#issuecomment-116569827","issue_url":"https://api.github.com/repos/openshift/origin/issues/3391","id":116569827,"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},"created_at":"2015-06-29T09:31:19Z","updated_at":"2015-06-29T09:31:19Z","body":"Thank you!"}}