{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/8581","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/8581/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/8581/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/8581/events","html_url":"https://github.com/openshift/origin/issues/8581","id":149896650,"number":8581,"title":"Cannot push to registry based on dns","user":{"login":"sdodson","id":48161,"avatar_url":"https://avatars.githubusercontent.com/u/48161?v=3","gravatar_id":"","url":"https://api.github.com/users/sdodson","html_url":"https://github.com/sdodson","followers_url":"https://api.github.com/users/sdodson/followers","following_url":"https://api.github.com/users/sdodson/following{/other_user}","gists_url":"https://api.github.com/users/sdodson/gists{/gist_id}","starred_url":"https://api.github.com/users/sdodson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdodson/subscriptions","organizations_url":"https://api.github.com/users/sdodson/orgs","repos_url":"https://api.github.com/users/sdodson/repos","events_url":"https://api.github.com/users/sdodson/events{/privacy}","received_events_url":"https://api.github.com/users/sdodson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/imageregistry","name":"component/imageregistry","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/priority/P2","name":"priority/P2","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"pweil-","id":5230419,"avatar_url":"https://avatars.githubusercontent.com/u/5230419?v=3","gravatar_id":"","url":"https://api.github.com/users/pweil-","html_url":"https://github.com/pweil-","followers_url":"https://api.github.com/users/pweil-/followers","following_url":"https://api.github.com/users/pweil-/following{/other_user}","gists_url":"https://api.github.com/users/pweil-/gists{/gist_id}","starred_url":"https://api.github.com/users/pweil-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pweil-/subscriptions","organizations_url":"https://api.github.com/users/pweil-/orgs","repos_url":"https://api.github.com/users/pweil-/repos","events_url":"https://api.github.com/users/pweil-/events{/privacy}","received_events_url":"https://api.github.com/users/pweil-/received_events","type":"User","site_admin":false},"assignees":[{"login":"pweil-","id":5230419,"avatar_url":"https://avatars.githubusercontent.com/u/5230419?v=3","gravatar_id":"","url":"https://api.github.com/users/pweil-","html_url":"https://github.com/pweil-","followers_url":"https://api.github.com/users/pweil-/followers","following_url":"https://api.github.com/users/pweil-/following{/other_user}","gists_url":"https://api.github.com/users/pweil-/gists{/gist_id}","starred_url":"https://api.github.com/users/pweil-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pweil-/subscriptions","organizations_url":"https://api.github.com/users/pweil-/orgs","repos_url":"https://api.github.com/users/pweil-/repos","events_url":"https://api.github.com/users/pweil-/events{/privacy}","received_events_url":"https://api.github.com/users/pweil-/received_events","type":"User","site_admin":false}],"milestone":null,"comments":11,"created_at":"2016-04-20T21:50:59Z","updated_at":"2016-09-09T17:07:04Z","closed_at":"2016-08-15T12:50:26Z","body":"Builds cannot push to the registry when OPENSHIFT_DEFAULT_REGISTRY=docker-registry.default.svc.cluster.local because they at least lack secrets, possibly other things. I wasn't able to follow all the technical details, but for some reason secrets aren't generated when using dns name.\r\n\r\nThere may be other issues too. @liggitt and @csrwng mentioned these as being related\r\nhttps://github.com/openshift/origin/issues/6924\r\nhttps://github.com/openshift/origin/issues/1723\r\nhttps://github.com/openshift/origin/issues/6283\r\nhttps://github.com/openshift/origin/pull/6385\r\n\r\n##### Version\r\noc v3.2.0.18 (basically origin master)\r\nkubernetes v1.2.0-36-g4a3f9c5\r\n\r\n##### Steps To Reproduce\r\n1. Provision Origin 1.2 / OSE 3.2 environment with node dnsmasq\r\n2. Add OPENSHIFT_DEFAULT_REGISTRY=docker-registry.default.svc.cluster.local to /etc/sysconfig/origin-master restart if necessary\r\n3. Provision registry.\r\n3. Run an S2I build\r\n\r\n##### Current Result\r\n```\r\nI0420 17:46:43.881001       1 sti.go:269] No push secret provided\r\nI0420 17:46:43.881014       1 sti.go:271] Pushing docker-registry.default.svc.cluster.local:5000/test/cakephp-example:latest image ...\r\nF0420 17:46:43.910780 1 builder.go:204] Error: build error: Failed to push image. Response from registry is: Post http://docker-registry.default.svc.cluster.local:5000/v2/test/cakephp-example/blobs/uploads/: no basic auth credentials\r\n```\r\n\r\n##### Expected Result\r\nsuccess\r\n\r\n##### Additional Information\r\noadm diagnostics yields this too\r\n```\r\nERROR: [DClu1019 from diagnostic ClusterRegistry@openshift/origin/pkg/diagnostics/cluster/registry.go:319]\r\n       Diagnostics created a test ImageStream and compared the registry IP\r\n       it received to the registry IP available via the docker-registry service.\r\n       \r\n       docker-registry      : 172.30.159.1:5000\r\n       ImageStream registry : docker-registry.default.svc.cluster.local:5000\r\n       \r\n       They do not match, which probably means that an administrator re-created\r\n       the docker-registry service but the master has cached the old service\r\n       IP address. Builds or deployments that use ImageStreams with the wrong\r\n       docker-registry IP will fail under this condition.\r\n       \r\n       To resolve this issue, restarting the master (to clear the cache) should\r\n       be sufficient. Existing ImageStreams may need to be re-created.\r\n```"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/245975976","html_url":"https://github.com/openshift/origin/issues/8581#issuecomment-245975976","issue_url":"https://api.github.com/repos/openshift/origin/issues/8581","id":245975976,"user":{"login":"deads2k","id":8225098,"avatar_url":"https://avatars.githubusercontent.com/u/8225098?v=3","gravatar_id":"","url":"https://api.github.com/users/deads2k","html_url":"https://github.com/deads2k","followers_url":"https://api.github.com/users/deads2k/followers","following_url":"https://api.github.com/users/deads2k/following{/other_user}","gists_url":"https://api.github.com/users/deads2k/gists{/gist_id}","starred_url":"https://api.github.com/users/deads2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deads2k/subscriptions","organizations_url":"https://api.github.com/users/deads2k/orgs","repos_url":"https://api.github.com/users/deads2k/repos","events_url":"https://api.github.com/users/deads2k/events{/privacy}","received_events_url":"https://api.github.com/users/deads2k/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T17:07:04Z","updated_at":"2016-09-09T17:07:04Z","body":"> Can we re-consider this limitation? This means we'd have to add cluster.local to the search path on the host in order for this to work and I don't think that we should do that. I can understand the desire to avoid suffix changes but is that something we generally try to accommodate? I imagine most of the cluster will break on suffix changes.\r\n\r\n@mfojtik "}}
{"actor":{"display_login":"deads2k"}}