Registry with swift storage (ceph rados gateway) fails with HTTP 500
I am using the swift storage backend for docker-registry. The swift backend is a ceph rados gateway. It partially completes then fails with an HTTP 500 while pushing an image. If I spin up a vanilla registry:2 with the ceph swift backend it works successfully. Can someone point out anything else I should look at for the cause? Because ceph is involved I understand it is not as trivial an issue to duplicate.
Version
oc v1.2.0
kubernetes v1.2.0-36-g4a3f9c5
Steps To Reproduce
Push anything to the registry with a similar config.yml using ceph-backed swift storage.
Current Result
I0609 20:22:04.106141 1 docker.go:118] Pushing image 192.168.0.121:5000/internal/ceph-openshift-manager:latest ...
F0609 20:22:17.063130 1 builder.go:204] Error: build error: Failed to push image: Received unexpected HTTP status: 500 Internal Server Error
Expected Result
I0609 19:52:05.937126 1 docker.go:118] Pushing image 192.168.0.121:5000/internal/ceph-openshift-manager:latest ...
I0609 19:53:24.818423 1 docker.go:122] Push successful
Additional Information
# oadm diagnostics
[Note] Determining if client configuration exists for client/cluster diagnostics
Info: Successfully read a client config file at '/root/.kube/config'
Info: Using context for cluster-admin access: 'default/192-0-2-101:8443/admin'
[Note] Performing systemd discovery
[Note] Running diagnostic: ConfigContexts[default/192-0-2-101:8443/admin]
Description: Validate client config context is complete and has connectivity
Info: The current client config context is 'default/192-0-2-101:8443/admin':
The server URL is 'https://192.0.2.101:8443'
The user authentication is 'admin/192-0-2-101:8443'
The current project is 'default'
Successfully requested project list; has access to project(s):
[internal metrics openshift openshift-infra default]
[Note] Running diagnostic: ConfigContexts[default/192-0-2-101:8443/system:admin]
Description: Validate client config context is complete and has connectivity
Info: For client config context 'default/192-0-2-101:8443/system:admin':
The server URL is 'https://192.0.2.101:8443'
The user authentication is 'system:admin/192-0-2-101:8443'
The current project is 'default'
Successfully requested project list; has access to project(s):
[openshift openshift-infra default internal metrics]
[Note] Running diagnostic: DiagnosticPod
Description: Create a pod to run diagnostics from the application standpoint
Info: Output from the diagnostic pod (image openshift/origin-deployer:v1.2.0):
[Note] Running diagnostic: PodCheckAuth
Description: Check that service account credentials authenticate as expected
Info: Service account token successfully authenticated to master
Info: Service account token was authenticated by the integrated registry.
[Note] Running diagnostic: PodCheckDns
Description: Check that DNS within a pod works as expected
[Note] Summary of diagnostics execution (version v1.2.0):
[Note] Completed with no errors or warnings seen.
[Note] Running diagnostic: ClusterRegistry
Description: Check that there is a working Docker registry
WARN: [DClu1012 from diagnostic ClusterRegistry@openshift/origin/pkg/diagnostics/cluster/registry.go:274]
The pod logs for the "docker-registry-7-b78rs" pod belonging to
the "docker-registry" service indicated unknown errors.
This could result in problems with builds or deployments.
Please examine the log entries to determine if there might be
any related problems:
time="2016-06-10T15:24:46.135829798Z" level=error msg="unknown error reading request payload: swift: Timeout expired while waiting for segments of /docker/registry/v2/repositories/internal/ceph-openshift-manager/_uploads/bd339104-494d-4aa3-9ea5-f1920d95d304/data to show up" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=c2fcc93e-2a5b-4160-8fdb-b00036351e58 http.request.method=PATCH http.request.remoteaddr="198.18.1.1:59696" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/bd339104-494d-4aa3-9ea5-f1920d95d304?_state=fxB-WQRo6KLlhF_9nRrP0oLvpBE44LQ7xHpjUSfk_ld7Ik5hbWUiOiJpbnRlcm5hbC9jZXBoLW9wZW5zaGlmdC1tYW5hZ2VyIiwiVVVJRCI6ImJkMzM5MTA0LTQ5NGQtNGFhMy05ZWE1LWYxOTIwZDk1ZDMwNCIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNi0wNi0xMFQxNToyNDozMy4wMzMwODcyNzZaIn0%3D" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=3c8594eb-42f5-4f8e-9e41-27ea3d315126 vars.name="internal/ceph-openshift-manager" vars.uuid=bd339104-494d-4aa3-9ea5-f1920d95d304
time="2016-06-10T15:24:46.176487766Z" level=error msg="response completed with error" err.code=UNKNOWN err.detail="swift: Timeout expired while waiting for segments of /docker/registry/v2/repositories/internal/ceph-openshift-manager/_uploads/bd339104-494d-4aa3-9ea5-f1920d95d304/data to show up" err.message="unknown error" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=c2fcc93e-2a5b-4160-8fdb-b00036351e58 http.request.method=PATCH http.request.remoteaddr="198.18.1.1:59696" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/bd339104-494d-4aa3-9ea5-f1920d95d304?_state=fxB-WQRo6KLlhF_9nRrP0oLvpBE44LQ7xHpjUSfk_ld7Ik5hbWUiOiJpbnRlcm5hbC9jZXBoLW9wZW5zaGlmdC1tYW5hZ2VyIiwiVVVJRCI6ImJkMzM5MTA0LTQ5NGQtNGFhMy05ZWE1LWYxOTIwZDk1ZDMwNCIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNi0wNi0xMFQxNToyNDozMy4wMzMwODcyNzZaIn0%3D" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=12.791827569s http.response.status=500 http.response.written=104 instance.id=3c8594eb-42f5-4f8e-9e41-27ea3d315126 vars.name="internal/ceph-openshift-manager" vars.uuid=bd339104-494d-4aa3-9ea5-f1920d95d304
[Note] Running diagnostic: ClusterRoleBindings
Description: Check that the default ClusterRoleBindings are present and contain the expected subjects
Info: clusterrolebinding/cluster-admins has more subjects than expected.
Use the `oadm policy reconcile-cluster-role-bindings` command to update the role binding to remove extra subjects.
Info: clusterrolebinding/cluster-admins has extra subject {User admin }.
Info: clusterrolebinding/cluster-admins has extra subject {ServiceAccount metrics default }.
Info: clusterrolebinding/cluster-admins has extra subject {ServiceAccount internal default }.
Info: clusterrolebinding/cluster-readers has more subjects than expected.
Use the `oadm policy reconcile-cluster-role-bindings` command to update the role binding to remove extra subjects.
Info: clusterrolebinding/cluster-readers has extra subject {ServiceAccount openshift-infra heapster }.
[Note] Running diagnostic: ClusterRoles
Description: Check that the default ClusterRoles are present and contain the expected permissions
[Note] Running diagnostic: ClusterRouterName
Description: Check there is a working router
[Note] Running diagnostic: MasterNode
Description: Check if master is also running node (for Open vSwitch)
Info: Found a node with same IP as master: 192.0.2.101
[Note] Running diagnostic: NodeDefinitions
Description: Check node records on master
[Note] Running diagnostic: AnalyzeLogs
Description: Check for recent problems in systemd service logs
Info: Checking journalctl logs for 'docker' service
[Note] Running diagnostic: MasterConfigCheck
Description: Check the master config file
Info: Found a master config file: /etc/origin/master/master-config.yaml
WARN: [DH0005 from diagnostic MasterConfigCheck@openshift/origin/pkg/diagnostics/host/check_master_config.go:58]
Validation of master config file '/etc/origin/master/master-config.yaml' warned:
assetConfig.loggingPublicURL: Invalid value: "": required to view aggregated container logs in the console
assetConfig.metricsPublicURL: Invalid value: "": required to view cluster metrics in the console
[Note] Running diagnostic: NodeConfigCheck
Description: Check the node config file
Info: Found a node config file: /etc/origin/node/node-config.yaml
[Note] Running diagnostic: UnitStatus
Description: Check status for related systemd units
[Note] Summary of diagnostics execution (version v1.2.0):
[Note] Warnings seen: 2
Using swift-based storage via ceph rados gateway
config.yml
version: 0.1
log:
level: debug
http:
addr: :5000
storage:
cache:
blobdescriptor: inmemory
swift:
authurl: http://ceph-objectstorage-v1:8080/auth/1.0
container: registry
password: redacted
username: registry:swift
delete:
enabled: true
auth:
openshift:
realm: openshift
middleware:
repository:
- name: openshift
options:
pullthrough: true
The push fails:
I0609 20:22:04.106141 1 docker.go:118] Pushing image 192.168.0.121:5000/internal/ceph-openshift-manager:latest ...
F0609 20:22:17.063130 1 builder.go:204] Error: build error: Failed to push image: Received unexpected HTTP status: 500 Internal Server Error
Logs from the registry:
time="2016-06-09T20:22:04.115736759Z" level=debug msg="authorizing request" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=81daac20-7228-4c30-aaf7-1d7b5d44880a http.request.method=GET http.request.remoteaddr="198.18.0.1:50998" http.request.uri="/v2/" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de
time="2016-06-09T20:22:04.116306313Z" level=error msg="error authorizing context: authorization header with basic token required" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=81daac20-7228-4c30-aaf7-1d7b5d44880a http.request.method=GET http.request.remoteaddr="198.18.0.1:50998" http.request.uri="/v2/" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de
198.18.0.1 - - [09/Jun/2016:20:22:04 +0000] "GET /v2/ HTTP/1.1" 401 87 "" "docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64"
time="2016-06-09T20:22:04.121900741Z" level=debug msg="authorizing request" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=682f0e58-2bca-4360-8936-31cbc869557b http.request.method=POST http.request.remoteaddr="198.18.0.1:50999" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de vars.name="internal/ceph-openshift-manager"
time="2016-06-09T20:22:04.122136349Z" level=debug msg="Origin auth: checking for access to repository:internal/ceph-openshift-manager:pull" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=682f0e58-2bca-4360-8936-31cbc869557b http.request.method=POST http.request.remoteaddr="198.18.0.1:50999" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de vars.name="internal/ceph-openshift-manager"
time="2016-06-09T20:22:04.156375292Z" level=debug msg="Origin auth: checking for access to repository:internal/ceph-openshift-manager:push" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=682f0e58-2bca-4360-8936-31cbc869557b http.request.method=POST http.request.remoteaddr="198.18.0.1:50999" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de vars.name="internal/ceph-openshift-manager"
time="2016-06-09T20:22:04.162048898Z" level=debug msg="(*quotaRestrictedBlobStore).Create: starting" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=682f0e58-2bca-4360-8936-31cbc869557b http.request.method=POST http.request.remoteaddr="198.18.0.1:50999" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de vars.name="internal/ceph-openshift-manager"
time="2016-06-09T20:22:04.162251444Z" level=debug msg="(*linkedBlobStore).Create" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=682f0e58-2bca-4360-8936-31cbc869557b http.request.method=POST http.request.remoteaddr="198.18.0.1:50999" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de vars.name="internal/ceph-openshift-manager"
time="2016-06-09T20:22:04.174840861Z" level=debug msg="swift.PutContent(\"/docker/registry/v2/repositories/internal/ceph-openshift-manager/_uploads/c70c7717-a837-43b3-be84-616f84d215e2/startedat\")" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=682f0e58-2bca-4360-8936-31cbc869557b http.request.method=POST http.request.remoteaddr="198.18.0.1:50999" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de trace.duration=12.510185ms trace.file="/go/src/github.com/openshift/origin/Godeps/_workspace/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).PutContent" trace.id=a5ea5177-bdd1-4831-9e62-a6d0e3b38696 trace.line=95 vars.name="internal/ceph-openshift-manager"
time="2016-06-09T20:22:04.225200643Z" level=debug msg="swift.Stat(\"/docker/registry/v2/repositories/internal/ceph-openshift-manager/_uploads/c70c7717-a837-43b3-be84-616f84d215e2/data\")" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=682f0e58-2bca-4360-8936-31cbc869557b http.request.method=POST http.request.remoteaddr="198.18.0.1:50999" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de trace.duration=50.195436ms trace.file="/go/src/github.com/openshift/origin/Godeps/_workspace/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).Stat" trace.id=9d3d14d2-d0db-473f-b187-39037fa7c7f9 trace.line=141 vars.name="internal/ceph-openshift-manager"
time="2016-06-09T20:22:04.23706165Z" level=debug msg="swift.PutContent(\"/docker/registry/v2/repositories/internal/ceph-openshift-manager/_uploads/c70c7717-a837-43b3-be84-616f84d215e2/hashstates/sha256/0\")" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=682f0e58-2bca-4360-8936-31cbc869557b http.request.method=POST http.request.remoteaddr="198.18.0.1:50999" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de trace.duration=7.194232ms trace.file="/go/src/github.com/openshift/origin/Godeps/_workspace/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).PutContent" trace.id=9a02d0f3-ea72-4306-ae70-cb2f68516213 trace.line=95 vars.name="internal/ceph-openshift-manager"
198.18.0.1 - - [09/Jun/2016:20:22:04 +0000] "POST /v2/internal/ceph-openshift-manager/blobs/uploads/ HTTP/1.1" 202 0 "" "docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64"
time="2016-06-09T20:22:04.23721156Z" level=info msg="response completed" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=682f0e58-2bca-4360-8936-31cbc869557b http.request.method=POST http.request.remoteaddr="198.18.0.1:50999" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" http.response.duration=116.778587ms http.response.status=202 http.response.written=0 instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de
time="2016-06-09T20:22:04.242201619Z" level=debug msg="authorizing request" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=7783d7bf-dd82-4056-936e-843115ce4d50 http.request.method=PATCH http.request.remoteaddr="198.18.0.1:51003" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/c70c7717-a837-43b3-be84-616f84d215e2?_state=R0Jf4eVIC6QgzeBh8HKwpmz5BpFkXEi1WR6f6-TLJHV7Ik5hbWUiOiJpbnRlcm5hbC9jZXBoLW9wZW5zaGlmdC1tYW5hZ2VyIiwiVVVJRCI6ImM3MGM3NzE3LWE4MzctNDNiMy1iZTg0LTYxNmY4NGQyMTVlMiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNi0wNi0wOVQyMDoyMjowNC4xNjIyNzdaIn0%3D" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de vars.name="internal/ceph-openshift-manager" vars.uuid=c70c7717-a837-43b3-be84-616f84d215e2
time="2016-06-09T20:22:04.242594003Z" level=debug msg="Origin auth: checking for access to repository:internal/ceph-openshift-manager:pull" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=7783d7bf-dd82-4056-936e-843115ce4d50 http.request.method=PATCH http.request.remoteaddr="198.18.0.1:51003" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/c70c7717-a837-43b3-be84-616f84d215e2?_state=R0Jf4eVIC6QgzeBh8HKwpmz5BpFkXEi1WR6f6-TLJHV7Ik5hbWUiOiJpbnRlcm5hbC9jZXBoLW9wZW5zaGlmdC1tYW5hZ2VyIiwiVVVJRCI6ImM3MGM3NzE3LWE4MzctNDNiMy1iZTg0LTYxNmY4NGQyMTVlMiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNi0wNi0wOVQyMDoyMjowNC4xNjIyNzdaIn0%3D" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de vars.name="internal/ceph-openshift-manager" vars.uuid=c70c7717-a837-43b3-be84-616f84d215e2
time="2016-06-09T20:22:04.248114253Z" level=debug msg="Origin auth: checking for access to repository:internal/ceph-openshift-manager:push" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=7783d7bf-dd82-4056-936e-843115ce4d50 http.request.method=PATCH http.request.remoteaddr="198.18.0.1:51003" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/c70c7717-a837-43b3-be84-616f84d215e2?_state=R0Jf4eVIC6QgzeBh8HKwpmz5BpFkXEi1WR6f6-TLJHV7Ik5hbWUiOiJpbnRlcm5hbC9jZXBoLW9wZW5zaGlmdC1tYW5hZ2VyIiwiVVVJRCI6ImM3MGM3NzE3LWE4MzctNDNiMy1iZTg0LTYxNmY4NGQyMTVlMiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNi0wNi0wOVQyMDoyMjowNC4xNjIyNzdaIn0%3D" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de vars.name="internal/ceph-openshift-manager" vars.uuid=c70c7717-a837-43b3-be84-616f84d215e2
time="2016-06-09T20:22:04.250926847Z" level=debug msg="(*quotaRestrictedBlobStore).Resume: starting" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=7783d7bf-dd82-4056-936e-843115ce4d50 http.request.method=PATCH http.request.remoteaddr="198.18.0.1:51003" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/c70c7717-a837-43b3-be84-616f84d215e2?_state=R0Jf4eVIC6QgzeBh8HKwpmz5BpFkXEi1WR6f6-TLJHV7Ik5hbWUiOiJpbnRlcm5hbC9jZXBoLW9wZW5zaGlmdC1tYW5hZ2VyIiwiVVVJRCI6ImM3MGM3NzE3LWE4MzctNDNiMy1iZTg0LTYxNmY4NGQyMTVlMiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNi0wNi0wOVQyMDoyMjowNC4xNjIyNzdaIn0%3D" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de vars.name="internal/ceph-openshift-manager" vars.uuid=c70c7717-a837-43b3-be84-616f84d215e2
time="2016-06-09T20:22:04.251120883Z" level=debug msg="(*linkedBlobStore).Resume" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=7783d7bf-dd82-4056-936e-843115ce4d50 http.request.method=PATCH http.request.remoteaddr="198.18.0.1:51003" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/c70c7717-a837-43b3-be84-616f84d215e2?_state=R0Jf4eVIC6QgzeBh8HKwpmz5BpFkXEi1WR6f6-TLJHV7Ik5hbWUiOiJpbnRlcm5hbC9jZXBoLW9wZW5zaGlmdC1tYW5hZ2VyIiwiVVVJRCI6ImM3MGM3NzE3LWE4MzctNDNiMy1iZTg0LTYxNmY4NGQyMTVlMiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNi0wNi0wOVQyMDoyMjowNC4xNjIyNzdaIn0%3D" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de vars.name="internal/ceph-openshift-manager" vars.uuid=c70c7717-a837-43b3-be84-616f84d215e2
time="2016-06-09T20:22:04.293987418Z" level=debug msg="swift.GetContent(\"/docker/registry/v2/repositories/internal/ceph-openshift-manager/_uploads/c70c7717-a837-43b3-be84-616f84d215e2/startedat\")" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=7783d7bf-dd82-4056-936e-843115ce4d50 http.request.method=PATCH http.request.remoteaddr="198.18.0.1:51003" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/c70c7717-a837-43b3-be84-616f84d215e2?_state=R0Jf4eVIC6QgzeBh8HKwpmz5BpFkXEi1WR6f6-TLJHV7Ik5hbWUiOiJpbnRlcm5hbC9jZXBoLW9wZW5zaGlmdC1tYW5hZ2VyIiwiVVVJRCI6ImM3MGM3NzE3LWE4MzctNDNiMy1iZTg0LTYxNmY4NGQyMTVlMiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNi0wNi0wOVQyMDoyMjowNC4xNjIyNzdaIn0%3D" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de trace.duration=42.810888ms trace.file="/go/src/github.com/openshift/origin/Godeps/_workspace/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).GetContent" trace.id=64306210-159b-4d79-a266-5d7775a33157 trace.line=82 vars.name="internal/ceph-openshift-manager" vars.uuid=c70c7717-a837-43b3-be84-616f84d215e2
time="2016-06-09T20:22:04.337507051Z" level=debug msg="swift.Stat(\"/docker/registry/v2/repositories/internal/ceph-openshift-manager/_uploads/c70c7717-a837-43b3-be84-616f84d215e2/data\")" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=7783d7bf-dd82-4056-936e-843115ce4d50 http.request.method=PATCH http.request.remoteaddr="198.18.0.1:51003" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/c70c7717-a837-43b3-be84-616f84d215e2?_state=R0Jf4eVIC6QgzeBh8HKwpmz5BpFkXEi1WR6f6-TLJHV7Ik5hbWUiOiJpbnRlcm5hbC9jZXBoLW9wZW5zaGlmdC1tYW5hZ2VyIiwiVVVJRCI6ImM3MGM3NzE3LWE4MzctNDNiMy1iZTg0LTYxNmY4NGQyMTVlMiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNi0wNi0wOVQyMDoyMjowNC4xNjIyNzdaIn0%3D" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de trace.duration=43.307139ms trace.file="/go/src/github.com/openshift/origin/Godeps/_workspace/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).Stat" trace.id=d5e09672-1f85-4378-9de8-002b75f43c55 trace.line=141 vars.name="internal/ceph-openshift-manager" vars.uuid=c70c7717-a837-43b3-be84-616f84d215e2
time="2016-06-09T20:22:04.340949768Z" level=warning msg="the ResponseWriter does not implement CloseNotifier (type: *context.instrumentedResponseWriter)" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=7783d7bf-dd82-4056-936e-843115ce4d50 http.request.method=PATCH http.request.remoteaddr="198.18.0.1:51003" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/c70c7717-a837-43b3-be84-616f84d215e2?_state=R0Jf4eVIC6QgzeBh8HKwpmz5BpFkXEi1WR6f6-TLJHV7Ik5hbWUiOiJpbnRlcm5hbC9jZXBoLW9wZW5zaGlmdC1tYW5hZ2VyIiwiVVVJRCI6ImM3MGM3NzE3LWE4MzctNDNiMy1iZTg0LTYxNmY4NGQyMTVlMiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNi0wNi0wOVQyMDoyMjowNC4xNjIyNzdaIn0%3D" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de vars.name="internal/ceph-openshift-manager" vars.uuid=c70c7717-a837-43b3-be84-616f84d215e2
time="2016-06-09T20:22:17.049083073Z" level=debug msg="swift.WriteStream(\"/docker/registry/v2/repositories/internal/ceph-openshift-manager/_uploads/c70c7717-a837-43b3-be84-616f84d215e2/data\", 0)" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=7783d7bf-dd82-4056-936e-843115ce4d50 http.request.method=PATCH http.request.remoteaddr="198.18.0.1:51003" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/c70c7717-a837-43b3-be84-616f84d215e2?_state=R0Jf4eVIC6QgzeBh8HKwpmz5BpFkXEi1WR6f6-TLJHV7Ik5hbWUiOiJpbnRlcm5hbC9jZXBoLW9wZW5zaGlmdC1tYW5hZ2VyIiwiVVVJRCI6ImM3MGM3NzE3LWE4MzctNDNiMy1iZTg0LTYxNmY4NGQyMTVlMiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNi0wNi0wOVQyMDoyMjowNC4xNjIyNzdaIn0%3D" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de trace.duration=12.708041497s trace.file="/go/src/github.com/openshift/origin/Godeps/_workspace/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).WriteStream" trace.id=109ed085-ab28-4f47-8cfa-5cf09f3b815a trace.line=124 vars.name="internal/ceph-openshift-manager" vars.uuid=c70c7717-a837-43b3-be84-616f84d215e2
time="2016-06-09T20:22:17.049149108Z" level=error msg="unknown error reading request payload: swift: Timeout expired while waiting for segments of /docker/registry/v2/repositories/internal/ceph-openshift-manager/_uploads/c70c7717-a837-43b3-be84-616f84d215e2/data to show up" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=7783d7bf-dd82-4056-936e-843115ce4d50 http.request.method=PATCH http.request.remoteaddr="198.18.0.1:51003" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/c70c7717-a837-43b3-be84-616f84d215e2?_state=R0Jf4eVIC6QgzeBh8HKwpmz5BpFkXEi1WR6f6-TLJHV7Ik5hbWUiOiJpbnRlcm5hbC9jZXBoLW9wZW5zaGlmdC1tYW5hZ2VyIiwiVVVJRCI6ImM3MGM3NzE3LWE4MzctNDNiMy1iZTg0LTYxNmY4NGQyMTVlMiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNi0wNi0wOVQyMDoyMjowNC4xNjIyNzdaIn0%3D" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de vars.name="internal/ceph-openshift-manager" vars.uuid=c70c7717-a837-43b3-be84-616f84d215e2
time="2016-06-09T20:22:17.057862658Z" level=debug msg="swift.PutContent(\"/docker/registry/v2/repositories/internal/ceph-openshift-manager/_uploads/c70c7717-a837-43b3-be84-616f84d215e2/hashstates/sha256/32\")" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=7783d7bf-dd82-4056-936e-843115ce4d50 http.request.method=PATCH http.request.remoteaddr="198.18.0.1:51003" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/c70c7717-a837-43b3-be84-616f84d215e2?_state=R0Jf4eVIC6QgzeBh8HKwpmz5BpFkXEi1WR6f6-TLJHV7Ik5hbWUiOiJpbnRlcm5hbC9jZXBoLW9wZW5zaGlmdC1tYW5hZ2VyIiwiVVVJRCI6ImM3MGM3NzE3LWE4MzctNDNiMy1iZTg0LTYxNmY4NGQyMTVlMiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNi0wNi0wOVQyMDoyMjowNC4xNjIyNzdaIn0%3D" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de trace.duration=8.619775ms trace.file="/go/src/github.com/openshift/origin/Godeps/_workspace/src/github.com/docker/distribution/registry/storage/driver/base/base.go" trace.func="github.com/docker/distribution/registry/storage/driver/base.(*Base).PutContent" trace.id=e36fa2ec-d8ba-4216-a543-b84753d95906 trace.line=95 vars.name="internal/ceph-openshift-manager" vars.uuid=c70c7717-a837-43b3-be84-616f84d215e2
198.18.0.1 - - [09/Jun/2016:20:22:04 +0000] "PATCH /v2/internal/ceph-openshift-manager/blobs/uploads/c70c7717-a837-43b3-be84-616f84d215e2?_state=R0Jf4eVIC6QgzeBh8HKwpmz5BpFkXEi1WR6f6-TLJHV7Ik5hbWUiOiJpbnRlcm5hbC9jZXBoLW9wZW5zaGlmdC1tYW5hZ2VyIiwiVVVJRCI6ImM3MGM3NzE3LWE4MzctNDNiMy1iZTg0LTYxNmY4NGQyMTVlMiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNi0wNi0wOVQyMDoyMjowNC4xNjIyNzdaIn0%3D HTTP/1.1" 500 104 "" "docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64"
time="2016-06-09T20:22:17.058292454Z" level=error msg="response completed with error" err.code=UNKNOWN err.detail="swift: Timeout expired while waiting for segments of /docker/registry/v2/repositories/internal/ceph-openshift-manager/_uploads/c70c7717-a837-43b3-be84-616f84d215e2/data to show up" err.message="unknown error" go.version=go1.6 http.request.host="192.168.0.121:5000" http.request.id=7783d7bf-dd82-4056-936e-843115ce4d50 http.request.method=PATCH http.request.remoteaddr="198.18.0.1:51003" http.request.uri="/v2/internal/ceph-openshift-manager/blobs/uploads/c70c7717-a837-43b3-be84-616f84d215e2?_state=R0Jf4eVIC6QgzeBh8HKwpmz5BpFkXEi1WR6f6-TLJHV7Ik5hbWUiOiJpbnRlcm5hbC9jZXBoLW9wZW5zaGlmdC1tYW5hZ2VyIiwiVVVJRCI6ImM3MGM3NzE3LWE4MzctNDNiMy1iZTg0LTYxNmY4NGQyMTVlMiIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAxNi0wNi0wOVQyMDoyMjowNC4xNjIyNzdaIn0%3D" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-327.13.1.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=12.818710498s http.response.status=500 http.response.written=104 instance.id=7f670e23-4b5b-4322-8c82-a781009fe1de vars.name="internal/ceph-openshift-manager" vars.uuid=c70c7717-a837-43b3-be84-616f84d215e2
This is what was created on the backend ceph-swift storage:
# curl -s -H "X-Auth-Token: AUTH_redacted" http://192.168.0.122:8080/swift/v1/registry -i
HTTP/1.1 200 OK
X-Timestamp: 1465503674.00000
X-Container-Object-Count: 5
X-Container-Bytes-Used: 376
X-Container-Bytes-Used-Actual: 16384
X-Storage-Policy: default-placement
X-Trans-Id: tx00000000000000000005c-005759d03b-1064-default
Content-Length: 881
Accept-Ranges: bytes
Content-Type: text/plain; charset=utf-8
Date: Thu, 09 Jun 2016 20:23:23 GMT
files/docker/registry/v2/repositories/internal/ceph-openshift-manager/_uploads/c70c7717-a837-43b3-be84-616f84d215e2/data
files/docker/registry/v2/repositories/internal/ceph-openshift-manager/_uploads/c70c7717-a837-43b3-be84-616f84d215e2/hashstates/sha256/0
files/docker/registry/v2/repositories/internal/ceph-openshift-manager/_uploads/c70c7717-a837-43b3-be84-616f84d215e2/hashstates/sha256/32
files/docker/registry/v2/repositories/internal/ceph-openshift-manager/_uploads/c70c7717-a837-43b3-be84-616f84d215e2/startedat
segments/2f6/46f636b65722f72656769737472792f76322f7265706f7369746f726965732f696e7465726e616c2f636570682d6f70656e73686966742d6d616e616765722f5f75706c6f6164732f63373063373731372d613833372d343362332d626538342d3631366638346432313565322f646174611578b02d44e7d4bf680f022da7de7447f2c54a4182e0e6fa1bfd589c41b20bb9da39a3ee5e6b4b0d3255bfef95601890afd80709/0000000000000001
The ceph cluster and the radosgw report no errors.
The latest CHANGELOG for registry 2.5 mentions fixing problems with ceph: Swift: Handle ceph not returning Last-Modified header for HEAD requests https://github.com/docker/distribution/blob/master/CHANGELOG.md
I could not find any specific commits or issues that mentioned this. Hopefully this issue will be magically fixed once origin updates to 2.5.
This appears to be fixed in Openshift Origin 1.3.x. Closing
With the docker registry version 2.8 in the ceph pacific version, the push problem was solved, thank you.