{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/10651","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/10651/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/10651/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/10651/events","html_url":"https://github.com/openshift/origin/issues/10651","id":173293956,"number":10651,"title":"User cannot create imagestreammappings in project - Trying to push images from docker to openshift registry pod","user":{"login":"Shyckymn","id":21058463,"avatar_url":"https://avatars.githubusercontent.com/u/21058463?v=3","gravatar_id":"","url":"https://api.github.com/users/Shyckymn","html_url":"https://github.com/Shyckymn","followers_url":"https://api.github.com/users/Shyckymn/followers","following_url":"https://api.github.com/users/Shyckymn/following{/other_user}","gists_url":"https://api.github.com/users/Shyckymn/gists{/gist_id}","starred_url":"https://api.github.com/users/Shyckymn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shyckymn/subscriptions","organizations_url":"https://api.github.com/users/Shyckymn/orgs","repos_url":"https://api.github.com/users/Shyckymn/repos","events_url":"https://api.github.com/users/Shyckymn/events{/privacy}","received_events_url":"https://api.github.com/users/Shyckymn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/auth","name":"component/auth","color":"0052cc"},{"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/kind/question","name":"kind/question","color":"cc317c"},{"url":"https://api.github.com/repos/openshift/origin/labels/priority/P2","name":"priority/P2","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"liggitt","id":980082,"avatar_url":"https://avatars.githubusercontent.com/u/980082?v=3","gravatar_id":"","url":"https://api.github.com/users/liggitt","html_url":"https://github.com/liggitt","followers_url":"https://api.github.com/users/liggitt/followers","following_url":"https://api.github.com/users/liggitt/following{/other_user}","gists_url":"https://api.github.com/users/liggitt/gists{/gist_id}","starred_url":"https://api.github.com/users/liggitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liggitt/subscriptions","organizations_url":"https://api.github.com/users/liggitt/orgs","repos_url":"https://api.github.com/users/liggitt/repos","events_url":"https://api.github.com/users/liggitt/events{/privacy}","received_events_url":"https://api.github.com/users/liggitt/received_events","type":"User","site_admin":false},"assignees":[{"login":"liggitt","id":980082,"avatar_url":"https://avatars.githubusercontent.com/u/980082?v=3","gravatar_id":"","url":"https://api.github.com/users/liggitt","html_url":"https://github.com/liggitt","followers_url":"https://api.github.com/users/liggitt/followers","following_url":"https://api.github.com/users/liggitt/following{/other_user}","gists_url":"https://api.github.com/users/liggitt/gists{/gist_id}","starred_url":"https://api.github.com/users/liggitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liggitt/subscriptions","organizations_url":"https://api.github.com/users/liggitt/orgs","repos_url":"https://api.github.com/users/liggitt/repos","events_url":"https://api.github.com/users/liggitt/events{/privacy}","received_events_url":"https://api.github.com/users/liggitt/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-08-25T19:53:33Z","updated_at":"2016-08-26T19:45:54Z","closed_at":"2016-08-26T19:45:54Z","body":"I'm trying to push images from my docker server to openshift registry pod (using --insecury-registry option) - All in the same server.\r\n\r\nWhen I run \"docker login\" to my openshift registry pod, I got \"Login Succeeded\".\r\n\r\nTrying to push images:\r\n\r\nThe push refers to a repository [192.168.169.3:5000/fap/nginx-php-fpm]\r\n7c3b8374d271: Layer already exists\r\n89e8906b34ea: Layer already exists\r\nc31410f0c313: Layer already exists\r\n2cabfdd3a814: Layer already exists\r\n9532bea0a2a8: Layer already exists\r\nc7075a30f0d0: Layer already exists\r\n81065226de3c: Layer already exists\r\n52173972f530: Layer already exists\r\ndbc47c28af5e: Layer already exists\r\n15958368299e: Layer already exists\r\nefcbc44ba6d0: Layer already exists\r\n526b6620c0c4: Layer already exists\r\n8b0be68b7bd9: Layer already exists\r\n15f1eedde63a: Layer already exists\r\n921a96fb3071: Layer already exists\r\nb95e2d0f329b: Layer already exists\r\n3220fa602677: Layer already exists\r\n4a33fced152f: Layer already exists\r\n4fe15f8d0ae6: Layer already exists\r\nReceived unexpected HTTP status: 500 Internal Server Error\r\n\r\nSeeing the registry pod logs:\r\n\r\ntime=\"2016-08-25T19:07:15.565760159Z\" level=info msg=\"total size of image sha256:f1a8ca09ec471b99007c42f63348908b389cc500e1806f52da343b4be34afdea with docker ref 172.30.139.215:5000/fap/nginx-php-fpm@sha256:f1a8ca09ec471b99007c42f63348908b389cc500e1806f52da343b4be34afdea: 66887912\" go.version=go1.6.3 http.request.contenttype=\"application/vnd.docker.distribution.manifest.v1+prettyjws\" http.request.host=\"192.168.169.3:5000\" http.request.id=8df35956-3225-43df-ad99-f2d88939f4c8 http.request.method=PUT http.request.remoteaddr=\"192.168.169.1:46334\" http.request.uri=\"/v2/fap/nginx-php-fpm/manifests/latest\" http.request.useragent=\"docker/1.10.3 go/go1.4.2 git-commit/7ffc8ee-unsupported kernel/3.10.0-327.22.2.el7.x86_64 os/linux arch/amd64\" instance.id=ed892659-fbaf-41f8-b7fa-43192e8f8d35 vars.name=\"fap/nginx-php-fpm\" vars.reference=latest\r\ntime=\"2016-08-25T19:07:15.572663801Z\" level=error msg=*\"error creating ImageStreamMapping: User \\\"system:serviceaccount:fap:registry\\\" cannot create imagestreammappings in project \\\"fap\\\"\"* go.version=go1.6.3 http.request.contenttype=\"application/vnd.docker.distribution.manifest.v1+prettyjws\" http.request.host=\"192.168.169.3:5000\" http.request.id=8df35956-3225-43df-ad99-f2d88939f4c8 http.request.method=PUT http.request.remoteaddr=\"192.168.169.1:46334\" http.request.uri=\"/v2/fap/nginx-php-fpm/manifests/latest\" http.request.useragent=\"docker/1.10.3 go/go1.4.2 git-commit/7ffc8ee-unsupported kernel/3.10.0-327.22.2.el7.x86_64 os/linux arch/amd64\" instance.id=ed892659-fbaf-41f8-b7fa-43192e8f8d35 vars.name=\"fap/nginx-php-fpm\" vars.reference=latest\r\n\r\nHow can I give the necessary permissions for push images to openshift registry?\r\n\r\n##### Version\r\ndocker version\r\nClient:\r\n Version:         1.10.3\r\n API version:     1.22\r\n Package version: docker-common-1.10.3-44.el7.x86_64\r\n Go version:      go1.4.2\r\n Git commit:      7ffc8ee-unsupported\r\n Built:           Fri Jun 17 15:27:21 2016\r\n OS/Arch:         linux/amd64\r\n\r\nServer:\r\n Version:         1.10.3\r\n API version:     1.22\r\n Package version: docker-common-1.10.3-44.el7.x86_64\r\n Go version:      go1.4.2\r\n Git commit:      7ffc8ee-unsupported\r\n Built:           Fri Jun 17 15:27:21 2016\r\n OS/Arch:         linux/amd64\r\n\r\noc version\r\noc v1.3.0-alpha.3+1148c68\r\nkubernetes v1.3.0+507d3a7\r\nfeatures: Basic-Auth GSSAPI Kerberos SPNEGO\r\n\r\nServer https://10.8.7.213:8443\r\nopenshift v1.3.0-alpha.3+1148c68\r\nkubernetes v1.3.0+507d3a7\r\n\r\n##### Additional Information\r\n[try to run `$ oadm diagnostics` command if possible]\r\n[if you are reporting issue related to builds, provide build logs with `BUILD_LOGLEVEL=5`]\r\n[consider attaching output of the `$ oc get all -o json -n <namespace>` command to the issue]\r\n[visit https://docs.openshift.org/latest/welcome/index.html]\r\n"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/242833136","html_url":"https://github.com/openshift/origin/issues/10651#issuecomment-242833136","issue_url":"https://api.github.com/repos/openshift/origin/issues/10651","id":242833136,"user":{"login":"Shyckymn","id":21058463,"avatar_url":"https://avatars.githubusercontent.com/u/21058463?v=3","gravatar_id":"","url":"https://api.github.com/users/Shyckymn","html_url":"https://github.com/Shyckymn","followers_url":"https://api.github.com/users/Shyckymn/followers","following_url":"https://api.github.com/users/Shyckymn/following{/other_user}","gists_url":"https://api.github.com/users/Shyckymn/gists{/gist_id}","starred_url":"https://api.github.com/users/Shyckymn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shyckymn/subscriptions","organizations_url":"https://api.github.com/users/Shyckymn/orgs","repos_url":"https://api.github.com/users/Shyckymn/repos","events_url":"https://api.github.com/users/Shyckymn/events{/privacy}","received_events_url":"https://api.github.com/users/Shyckymn/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T19:45:54Z","updated_at":"2016-08-26T19:45:54Z","body":"Restarting the enrivonment and following the instructions from:\r\nhttps://docs.openshift.com/enterprise/3.1/install_config/install/docker_registry.html\r\nNow everything works!\r\nThanks @liggitt & @danmcp!"}}
{"actor":{"display_login":"Shyckymn"}}