{"action":"created","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/757","labels_url":"https://api.github.com/repos/docker/distribution/issues/757/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/757/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/757/events","html_url":"https://github.com/docker/distribution/issues/757","id":97424216,"number":757,"title":"Push to swift storage fails to upload manifest with a 404","user":{"login":"fandav73","id":8652865,"avatar_url":"https://avatars.githubusercontent.com/u/8652865?v=3","gravatar_id":"","url":"https://api.github.com/users/fandav73","html_url":"https://github.com/fandav73","followers_url":"https://api.github.com/users/fandav73/followers","following_url":"https://api.github.com/users/fandav73/following{/other_user}","gists_url":"https://api.github.com/users/fandav73/gists{/gist_id}","starred_url":"https://api.github.com/users/fandav73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fandav73/subscriptions","organizations_url":"https://api.github.com/users/fandav73/orgs","repos_url":"https://api.github.com/users/fandav73/repos","events_url":"https://api.github.com/users/fandav73/events{/privacy}","received_events_url":"https://api.github.com/users/fandav73/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/distribution/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"RichardScothern","id":922018,"avatar_url":"https://avatars.githubusercontent.com/u/922018?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardScothern","html_url":"https://github.com/RichardScothern","followers_url":"https://api.github.com/users/RichardScothern/followers","following_url":"https://api.github.com/users/RichardScothern/following{/other_user}","gists_url":"https://api.github.com/users/RichardScothern/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardScothern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardScothern/subscriptions","organizations_url":"https://api.github.com/users/RichardScothern/orgs","repos_url":"https://api.github.com/users/RichardScothern/repos","events_url":"https://api.github.com/users/RichardScothern/events{/privacy}","received_events_url":"https://api.github.com/users/RichardScothern/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-07-27T09:38:42Z","updated_at":"2015-07-27T17:02:30Z","closed_at":null,"body":"Hello,\r\n\r\ni have tested the brand new Openstack Swift storage driver (#493) against our Ceph Swift cluster, and images are failing to upload with a 404 on the manifest file. \r\n\r\nThe storage configuration used is the following : \r\n\r\n```\r\nstorage:\r\n    cache:\r\n        blobdescriptor: inmemory\r\n    swift:\r\n        username: ticloud\r\n        password: <THE_PASS>\r\n        authurl: http://172.16.1.5/v2.0\r\n        tenant: ticloud\r\n        insecureskipverify: true\r\n        region: chgva-01\r\n        container: docker-registry\r\n        rootdirectory: \r\n    maintenance:\r\n        uploadpurging:\r\n            enabled: false\r\n```\r\n\r\nThe operation for the test :\r\n```\r\ndocker tag golang:1.4 localhost:443/ticloud/golang:1.4\r\ndocker push localhost:443/ticloud/golang:1.4\r\n```\r\n\r\nThe error logs :\r\n\r\n```\r\ntime=\"2015-07-27T08:25:32.244845786Z\" level=error msg=\"An error occured\" err.code=\"BLOB_UNKNOWN\" err.detail=sha256:4d2e9ae40c411dd421f35dd20c133152bed21f8f9b903ba265a5d77c69a79edc err.message=\"blob unknown to registry\" http.request.host=\"localhost:443\" http.request.id=3b3244d5-62bd-432e-9200-9dc000df6f1c http.request.method=PUT http.request.remoteaddr=\"172.17.42.1:59009\" http.request.uri=\"/v2/ticloud/golang/manifests/1.4\" http.request.useragent=\"docker/1.7.1 go/go1.4.2 git-commit/786b29d kernel/3.13.0-58-generic os/linux arch/amd64\" vars.name=\"ticloud/golang\" vars.reference=1.4 \r\ntime=\"2015-07-27T08:25:32.245177622Z\" level=info msg=\"response completed\" http.request.host=\"localhost:443\" http.request.id=3b3244d5-62bd-432e-9200-9dc000df6f1c http.request.method=PUT http.request.remoteaddr=\"172.17.42.1:59009\" http.request.uri=\"/v2/ticloud/golang/manifests/1.4\" http.request.useragent=\"docker/1.7.1 go/go1.4.2 git-commit/786b29d kernel/3.13.0-58-generic os/linux arch/amd64\" http.response.contenttype=\"application/json; charset=utf-8\" http.response.duration=139.517898ms http.response.status=404 http.response.written=2173 \r\n172.17.42.1 - - [27/Jul/2015:08:25:32 +0000] \"PUT /v2/ticloud/golang/manifests/1.4 HTTP/1.1\" 404 2173 \"\" \"docker/1.7.1 go/go1.4.2 git-commit/786b29d kernel/3.13.0-58-generic os/linux arch/amd64\"\r\n```\r\n\r\nAll previous layers of the image seems to upload fine. The error is preceded by numerous BLOB_UNKNOWN errors. The full trace it's [here](http://pastebin.com/MMLyntTW)\r\n\r\nIf needed the listing of the swift container after this operation has been uploaded [here](http://pastebin.com/KF5W810m)\r\n\r\nI will keep the infrastructure as is, so let me know if i can help more, just bear in mind im not a go dev :)"},"comment":{"url":"https://api.github.com/repos/docker/distribution/issues/comments/125272497","html_url":"https://github.com/docker/distribution/issues/757#issuecomment-125272497","issue_url":"https://api.github.com/repos/docker/distribution/issues/757","id":125272497,"user":{"login":"RichardScothern","id":922018,"avatar_url":"https://avatars.githubusercontent.com/u/922018?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardScothern","html_url":"https://github.com/RichardScothern","followers_url":"https://api.github.com/users/RichardScothern/followers","following_url":"https://api.github.com/users/RichardScothern/following{/other_user}","gists_url":"https://api.github.com/users/RichardScothern/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardScothern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardScothern/subscriptions","organizations_url":"https://api.github.com/users/RichardScothern/orgs","repos_url":"https://api.github.com/users/RichardScothern/repos","events_url":"https://api.github.com/users/RichardScothern/events{/privacy}","received_events_url":"https://api.github.com/users/RichardScothern/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T17:02:30Z","updated_at":"2015-07-27T17:02:30Z","body":"@lebauce : any ideas?"}}