{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/7985","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/7985/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/7985/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/7985/events","html_url":"https://github.com/openshift/origin/issues/7985","id":140645603,"number":7985,"title":"Cannot import an image from internal registry if source and destination projects differ","user":{"login":"miminar","id":1478803,"avatar_url":"https://avatars.githubusercontent.com/u/1478803?v=3","gravatar_id":"","url":"https://api.github.com/users/miminar","html_url":"https://github.com/miminar","followers_url":"https://api.github.com/users/miminar/followers","following_url":"https://api.github.com/users/miminar/following{/other_user}","gists_url":"https://api.github.com/users/miminar/gists{/gist_id}","starred_url":"https://api.github.com/users/miminar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miminar/subscriptions","organizations_url":"https://api.github.com/users/miminar/orgs","repos_url":"https://api.github.com/users/miminar/repos","events_url":"https://api.github.com/users/miminar/events{/privacy}","received_events_url":"https://api.github.com/users/miminar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-14T11:21:39Z","updated_at":"2016-03-14T11:22:06Z","closed_at":null,"body":"## Version\r\n\r\n    openshift v1.1.3-600-g8c064d9-dirty\r\n    kubernetes v1.2.0-origin-41-g91d3e75\r\n    etcd 2.2.5\r\n\r\n## Description\r\nCannot import image from internal registry due to:\r\n\r\n    Reason:\"Unauthorized\", Message:\"you may not have access to the Docker image \\\"172.30.163.69:5000/extended-test-imagequota-admission-6znr2-shared/src@sha256:bb08da7a0b99af72aebe0ead77009d28771a30dbe4d99f49bf3d29407c72e48f\\\"\"\r\n\r\n## Steps To Reproduce\r\n\r\n1. deploy a registry\r\n2. create two projects with the same user (e.g. `foo` and `bar`)\r\n3. build an image or manually push it to some image stream in the first project (e.g. `foo/randdata@sha256:c8956f7fc18eb5a99a0bbf62c91d90ccd7cf16ec21f15ca901713c04d26`)\r\n4. switch to the other project (`oc project bar`)\r\n5. try to import the image to a new image stream\r\n\r\nUsing a command like:\r\n\r\n    oc import-image newis --confirm --insecure --loglevel=5 --from=172.30.104.152:5000/foo/randdata@sha256:c8956f7fc18eb5a99a0bbf62c91d90ccd7cf16ec21f15ca901713c04d26f8f9d\r\n\r\n## Current Result\r\n\r\n    The import completed successfully.\r\n\r\n    Name:                   newis\r\n    Created:                Less than a second ago\r\n    Labels:                 <none>\r\n    Annotations:            openshift.io/image.dockerRepositoryCheck=2016-03-14T10:47:27Z\r\n    Docker Pull Spec:       172.30.104.152:5000/foo/randdata\r\n\r\n    Tag     Spec                                                            Created                 PullSpec        Image\r\n    latest  172.30.104.152:5000/foo/randdata@sha256:c8956f7fc18eb5...      Less than a second ago                  import failed: you may not have access to the Docker image \"172.30....\r\n\r\n      ! tag is insecure and can be imported over HTTP or self-signed HTTPS\r\n\r\n## Expected Result\r\n\r\n    The import completed successfully.\r\n\r\n    Name:                   another\r\n    Created:                Less than a second ago\r\n    Labels:                 <none>\r\n    Annotations:            openshift.io/image.dockerRepositoryCheck=2016-03-14T10:57:37Z\r\n    Docker Pull Spec:       172.30.104.152:5000/foo/randdata\r\n\r\n    Tag     Spec                                                            Created                 PullSpec        Image\r\n    latest  172.30.104.152:5000/foo/randdata@sha256:c8956f7fc18eb5... !  Less than a second ago  <same>          <same>\r\n\r\n      ! tag is insecure and can be imported over HTTP or self-signed HTTPS\r\n\r\n## Additional Information\r\n\r\nIt's working if the source and destination namespace are the same.\r\n"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/196265781","html_url":"https://github.com/openshift/origin/issues/7985#issuecomment-196265781","issue_url":"https://api.github.com/repos/openshift/origin/issues/7985","id":196265781,"user":{"login":"miminar","id":1478803,"avatar_url":"https://avatars.githubusercontent.com/u/1478803?v=3","gravatar_id":"","url":"https://api.github.com/users/miminar","html_url":"https://github.com/miminar","followers_url":"https://api.github.com/users/miminar/followers","following_url":"https://api.github.com/users/miminar/following{/other_user}","gists_url":"https://api.github.com/users/miminar/gists{/gist_id}","starred_url":"https://api.github.com/users/miminar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miminar/subscriptions","organizations_url":"https://api.github.com/users/miminar/orgs","repos_url":"https://api.github.com/users/miminar/repos","events_url":"https://api.github.com/users/miminar/events{/privacy}","received_events_url":"https://api.github.com/users/miminar/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T11:22:05Z","updated_at":"2016-03-14T11:22:05Z","body":"/cc @soltysh "}}