{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/skopeo/issues/258","repository_url":"https://api.github.com/repos/projectatomic/skopeo","labels_url":"https://api.github.com/repos/projectatomic/skopeo/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/skopeo/issues/258/comments","events_url":"https://api.github.com/repos/projectatomic/skopeo/issues/258/events","html_url":"https://github.com/projectatomic/skopeo/issues/258","id":192735175,"number":258,"title":"error uploading imagine to openshift integrated registry","user":{"login":"raffaelespazzoli","id":6179036,"avatar_url":"https://avatars.githubusercontent.com/u/6179036?v=3","gravatar_id":"","url":"https://api.github.com/users/raffaelespazzoli","html_url":"https://github.com/raffaelespazzoli","followers_url":"https://api.github.com/users/raffaelespazzoli/followers","following_url":"https://api.github.com/users/raffaelespazzoli/following{/other_user}","gists_url":"https://api.github.com/users/raffaelespazzoli/gists{/gist_id}","starred_url":"https://api.github.com/users/raffaelespazzoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raffaelespazzoli/subscriptions","organizations_url":"https://api.github.com/users/raffaelespazzoli/orgs","repos_url":"https://api.github.com/users/raffaelespazzoli/repos","events_url":"https://api.github.com/users/raffaelespazzoli/events{/privacy}","received_events_url":"https://api.github.com/users/raffaelespazzoli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-01T02:01:16Z","updated_at":"2016-12-02T17:15:53Z","closed_at":null,"body":"I'm using openshift 3.3.0 (cdk) with integrated registry. when I upload an image I get the following error:\r\nI'm running skopeo on fedora 24\r\n\r\n\r\nskopeo version:\r\n```\r\n[rspazzol@localhost tmp]$ skopeo -v\r\nskopeo version 0.1.17-dev commit: 980ff3eadd57f46479c28078c2489058081b0165\r\n```\r\n\r\n\r\nskopeo command and log:\r\n\r\n```\r\n[rspazzol@localhost tmp]$ skopeo --debug --tls-verify=false copy --dest-creds `oc whoami`:`oc whoami -t` --src-creds `oc whoami`:`oc whoami -t` docker://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/jenkins2/docker:latest docker://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/jenkins2/docker:ciao2\r\nDEBU[0000] Using registries.d directory /etc/containers/registries.d for sigstore configuration \r\nDEBU[0000]  Using \"default-docker\" configuration        \r\nDEBU[0000]   Using file:///var/lib/atomic/sigstore      \r\nDEBU[0000] Using registries.d directory /etc/containers/registries.d for sigstore configuration \r\nDEBU[0000]  Using \"default-docker\" configuration        \r\nDEBU[0000]  No signature storage configuration found for hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/jenkins2/docker:latest \r\nDEBU[0000] IsRunningImageAllowed for image docker:hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/jenkins2/docker:latest \r\nDEBU[0000]  Using default policy section                \r\nDEBU[0000]  Requirement 0: allowed                      \r\nDEBU[0000] Overall: allowed                             \r\nDEBU[0000] GET https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/ \r\nDEBU[0000] Ping https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/ err <nil> \r\nDEBU[0000] Ping https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/ status 401 \r\nDEBU[0000] GET https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/jenkins2/docker/manifests/latest \r\nGetting image source signatures\r\nDEBU[0000] Manifest MIME type application/vnd.docker.distribution.manifest.v2+json is declared supported by the destination \r\nCopying blob sha256:3690ec4760f95690944da86dc4496148a63d85c9e3100669a318110092f6862f\r\nDEBU[0000] Downloading jenkins2/docker/blobs/sha256:3690ec4760f95690944da86dc4496148a63d85c9e3100669a318110092f6862f \r\nDEBU[0000] GET https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/jenkins2/docker/blobs/sha256:3690ec4760f95690944da86dc4496148a63d85c9e3100669a318110092f6862f \r\nDEBU[0001] Detected compression format gzip             \r\n 0 B / 2.21 MB [---------------------------------------------------------------]DEBU[0001] Using original blob without modification     \r\nDEBU[0001] Checking jenkins2/docker/blobs/sha256:3690ec4760f95690944da86dc4496148a63d85c9e3100669a318110092f6862f \r\nDEBU[0001] GET https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/ \r\nDEBU[0001] Ping https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/ err <nil> \r\nDEBU[0001] Ping https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/ status 401 \r\nDEBU[0001] HEAD https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/jenkins2/docker/blobs/sha256:3690ec4760f95690944da86dc4496148a63d85c9e3100669a318110092f6862f \r\nDEBU[0001] ... already exists, not uploading            \r\n\r\nCopying blob sha256:7601c2ad1cd11213e66512af4a8f4372a4870541b8cf79a9a1058742bf65d6e7\r\nDEBU[0001] Downloading jenkins2/docker/blobs/sha256:7601c2ad1cd11213e66512af4a8f4372a4870541b8cf79a9a1058742bf65d6e7 \r\nDEBU[0001] GET https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/jenkins2/docker/blobs/sha256:7601c2ad1cd11213e66512af4a8f4372a4870541b8cf79a9a1058742bf65d6e7 \r\nDEBU[0003] Detected compression format gzip             \r\n 0 B / 893.61 KB [-------------------------------------------------------------]DEBU[0003] Using original blob without modification     \r\nDEBU[0003] Checking jenkins2/docker/blobs/sha256:7601c2ad1cd11213e66512af4a8f4372a4870541b8cf79a9a1058742bf65d6e7 \r\nDEBU[0003] HEAD https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/jenkins2/docker/blobs/sha256:7601c2ad1cd11213e66512af4a8f4372a4870541b8cf79a9a1058742bf65d6e7 \r\nDEBU[0003] ... already exists, not uploading            \r\n\r\nCopying blob sha256:a2fa41e1947e55748e6bb64fdc8decb92de95bf1f7f69c9da3ed022983953a9f\r\nDEBU[0003] Downloading jenkins2/docker/blobs/sha256:a2fa41e1947e55748e6bb64fdc8decb92de95bf1f7f69c9da3ed022983953a9f \r\nDEBU[0003] GET https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/jenkins2/docker/blobs/sha256:a2fa41e1947e55748e6bb64fdc8decb92de95bf1f7f69c9da3ed022983953a9f \r\nDEBU[0004] Detected compression format gzip             \r\n 0 B / 27.43 MB [--------------------------------------------------------------]DEBU[0004] Using original blob without modification     \r\nDEBU[0004] Checking jenkins2/docker/blobs/sha256:a2fa41e1947e55748e6bb64fdc8decb92de95bf1f7f69c9da3ed022983953a9f \r\nDEBU[0004] HEAD https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/jenkins2/docker/blobs/sha256:a2fa41e1947e55748e6bb64fdc8decb92de95bf1f7f69c9da3ed022983953a9f \r\nDEBU[0005] ... already exists, not uploading            \r\n\r\nCopying blob sha256:7ee74a896d835287baba1aa769cdc88ec2b48879aabd9e1bfb3382de803495d0\r\nDEBU[0005] Downloading jenkins2/docker/blobs/sha256:7ee74a896d835287baba1aa769cdc88ec2b48879aabd9e1bfb3382de803495d0 \r\nDEBU[0005] GET https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/jenkins2/docker/blobs/sha256:7ee74a896d835287baba1aa769cdc88ec2b48879aabd9e1bfb3382de803495d0 \r\nDEBU[0005] Detected compression format gzip             \r\n 0 B / 489 B [-----------------------------------------------------------------]DEBU[0005] Using original blob without modification     \r\nDEBU[0005] Checking jenkins2/docker/blobs/sha256:7ee74a896d835287baba1aa769cdc88ec2b48879aabd9e1bfb3382de803495d0 \r\nDEBU[0005] HEAD https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/jenkins2/docker/blobs/sha256:7ee74a896d835287baba1aa769cdc88ec2b48879aabd9e1bfb3382de803495d0 \r\nDEBU[0006] ... already exists, not uploading            \r\n\r\nCopying config sha256:cf693ec9b5c76a8d05bb5e0c38257d5a575b0e1a7af56037cea8f54e9a751cab\r\nDEBU[0006] Downloading jenkins2/docker/blobs/sha256:cf693ec9b5c76a8d05bb5e0c38257d5a575b0e1a7af56037cea8f54e9a751cab \r\nDEBU[0006] GET https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/jenkins2/docker/blobs/sha256:cf693ec9b5c76a8d05bb5e0c38257d5a575b0e1a7af56037cea8f54e9a751cab \r\nDEBU[0007] No compression detected                      \r\n 0 B / 3.26 KB [---------------------------------------------------------------]DEBU[0007] Using original blob without modification     \r\nDEBU[0007] Checking jenkins2/docker/blobs/sha256:cf693ec9b5c76a8d05bb5e0c38257d5a575b0e1a7af56037cea8f54e9a751cab \r\nDEBU[0007] HEAD https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/jenkins2/docker/blobs/sha256:cf693ec9b5c76a8d05bb5e0c38257d5a575b0e1a7af56037cea8f54e9a751cab \r\nDEBU[0007] ... already exists, not uploading            \r\n\r\nWriting manifest to image destination\r\nDEBU[0007] PUT https://hub.openshift.rhel-cdk.10.1.2.2.xip.io:443/v2/jenkins2/docker/manifests/ciao2 \r\nDEBU[0007] Error body {\"errors\":[{\"code\":\"UNKNOWN\",\"message\":\"unknown error\",\"detail\":{\"code\":\"MANIFEST_INVALID\",\"message\":\"manifest invalid\",\"detail\":{}}}]}\r\n \r\nDEBU[0007] Error uploading manifest, status 500, &http.Response{Status:\"500 Internal Server Error\", StatusCode:500, Proto:\"HTTP/1.1\", ProtoMajor:1, ProtoMinor:1, Header:http.Header{\"Content-Type\":[]string{\"application/json; charset=utf-8\"}, \"Docker-Distribution-Api-Version\":[]string{\"registry/2.0\"}, \"Date\":[]string{\"Thu, 01 Dec 2016 01:49:25 GMT\"}, \"Content-Length\":[]string{\"136\"}}, Body:(*http.bodyEOFSignal)(0xc8201320c0), ContentLength:136, TransferEncoding:[]string(nil), Close:true, Trailer:http.Header(nil), Request:(*http.Request)(0xc8204c1340), TLS:(*tls.ConnectionState)(0xc8200c91e0)} \r\nFATA[0007] Error writing manifest: Error uploading manifest to jenkins2/docker/manifests/ciao2, status 500\r\n```\r\n\r\nregistry log:\r\n\r\n```\r\ntime=\"2016-11-30T20:49:25.991156037-05:00\" level=debug msg=\"Origin auth: checking for access to repository:jenkins2/docker:push\" go.version=go1.6.2 http.request.contenttype=\"application/vnd.docker.distribution.manifest.v2+json\" http.request.host=\"hub.openshift.rhel-cdk.10.1.2.2.xip.io:443\" http.request.id=7e0c2a0d-165b-4c9c-9d1b-c1c1fb3391a5 http.request.method=PUT http.request.remoteaddr=\"172.17.0.1:41536\" http.request.uri=\"/v2/jenkins2/docker/manifests/ciao2\" http.request.useragent=\"Go-http-client/1.1\" instance.id=ea1c8051-02f8-410f-b4fb-a81bd8cec902 vars.name=\"jenkins2/docker\" vars.reference=ciao2 \r\ntime=\"2016-11-30T20:49:25.993886421-05:00\" level=debug msg=PutImageManifest go.version=go1.6.2 http.request.contenttype=\"application/vnd.docker.distribution.manifest.v2+json\" http.request.host=\"hub.openshift.rhel-cdk.10.1.2.2.xip.io:443\" http.request.id=7e0c2a0d-165b-4c9c-9d1b-c1c1fb3391a5 http.request.method=PUT http.request.remoteaddr=\"172.17.0.1:41536\" http.request.uri=\"/v2/jenkins2/docker/manifests/ciao2\" http.request.useragent=\"Go-http-client/1.1\" instance.id=ea1c8051-02f8-410f-b4fb-a81bd8cec902 vars.name=\"jenkins2/docker\" vars.reference=ciao2 \r\n172.17.0.1 - - [30/Nov/2016:20:49:25 -0500] \"PUT /v2/jenkins2/docker/manifests/ciao2 HTTP/1.1\" 500 136 \"\" \"Go-http-client/1.1\"\r\ntime=\"2016-11-30T20:49:25.994113514-05:00\" level=warning msg=\"the ResponseWriter does not implement CloseNotifier (type: *context.instrumentedResponseWriter)\" go.version=go1.6.2 http.request.contenttype=\"application/vnd.docker.distribution.manifest.v2+json\" http.request.host=\"hub.openshift.rhel-cdk.10.1.2.2.xip.io:443\" http.request.id=7e0c2a0d-165b-4c9c-9d1b-c1c1fb3391a5 http.request.method=PUT http.request.remoteaddr=\"172.17.0.1:41536\" http.request.uri=\"/v2/jenkins2/docker/manifests/ciao2\" http.request.useragent=\"Go-http-client/1.1\" instance.id=ea1c8051-02f8-410f-b4fb-a81bd8cec902 vars.name=\"jenkins2/docker\" vars.reference=ciao2 \r\ntime=\"2016-11-30T20:49:25.99436406-05:00\" level=error msg=\"response completed with error\" err.code=unknown err.detail=\"manifest invalid: manifest invalid\" err.message=\"unknown error\" go.version=go1.6.2 http.request.contenttype=\"application/vnd.docker.distribution.manifest.v2+json\" http.request.host=\"hub.openshift.rhel-cdk.10.1.2.2.xip.io:443\" http.request.id=7e0c2a0d-165b-4c9c-9d1b-c1c1fb3391a5 http.request.method=PUT http.request.remoteaddr=\"172.17.0.1:41536\" http.request.uri=\"/v2/jenkins2/docker/manifests/ciao2\" http.request.useragent=\"Go-http-client/1.1\" http.response.contenttype=\"application/json; charset=utf-8\" http.response.duration=7.452421ms http.response.status=500 http.response.written=136 instance.id=ea1c8051-02f8-410f-b4fb-a81bd8cec902 vars.name=\"jenkins2/docker\" vars.reference=ciao2 \r\n```\r\n\r\nI'm not sure if I'm doing something wrong or I'm finding a bug.\r\nThanks.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/projectatomic/skopeo/issues/comments/264508391","html_url":"https://github.com/projectatomic/skopeo/issues/258#issuecomment-264508391","issue_url":"https://api.github.com/repos/projectatomic/skopeo/issues/258","id":264508391,"user":{"login":"mtrmac","id":7052838,"avatar_url":"https://avatars.githubusercontent.com/u/7052838?v=3","gravatar_id":"","url":"https://api.github.com/users/mtrmac","html_url":"https://github.com/mtrmac","followers_url":"https://api.github.com/users/mtrmac/followers","following_url":"https://api.github.com/users/mtrmac/following{/other_user}","gists_url":"https://api.github.com/users/mtrmac/gists{/gist_id}","starred_url":"https://api.github.com/users/mtrmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtrmac/subscriptions","organizations_url":"https://api.github.com/users/mtrmac/orgs","repos_url":"https://api.github.com/users/mtrmac/repos","events_url":"https://api.github.com/users/mtrmac/events{/privacy}","received_events_url":"https://api.github.com/users/mtrmac/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T17:15:53Z","updated_at":"2016-12-02T17:15:53Z","body":"> Using the following command, I was able to copy between two OpenShift registries\r\n\r\nIs the difference only in the image names? Do they differ in schema versions perhaps?"}}
{"actor":{"display_login":"mtrmac"}}