Ask Your Question

Docker push 500 error

asked 2014-07-15 10:04:06 -0500

bgrissinger gravatar image

updated 2014-07-15 10:20:16 -0500

SamYaple gravatar image

I have followed the recommendations to open ports from this thread and still am getting the 500 errors listed above. I am running docker-registry and docker as well as OSP5 on rhel 7 , everything is local on the same IP (ony 1 nic). I have docker registry setup to use glance. The docker registry appears to be working correctly, but passing auth using http to keystone is where the issue seems to be. I have tried a editing a local .dockercfg, sourcing the keystone_admin creds, but nothing seems to change the 500 error.

I can push and pull successfully from registry When I try to push to glance, it fails

"docker-registry server (openstack) (v0.6.8)"   latest              fde906a5f676        41 minutes ago       4.964 MB
The push refers to a repository [] (len: 1)
Sending image list
Pushing repository (1 tags)
fde906a5f676: Pushing 
2014/07/15 10:41:03 HTTP code 500 while uploading metadata: invalid character '<' looking for beginning of value

iptables reflects appropriate open ports

[root@localhost ~(keystone_admin)]# iptables -n -L nova-api-INPUT
Chain nova-api-INPUT (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --        tcp dpt:8775
ACCEPT     tcp  --        tcp dpt:35357
ACCEPT     tcp  --        tcp dpt:9292
ACCEPT     tcp  --        tcp dpt:5042

my env has the following variables defined


here is the .dockercfg file

{"":{"auth":"xxxxxxxxxxxxxxxxxxxxxxx","email":""},"":{"auth":"xxxxxxxxxxxxxxxxxxxxxxxx","email":""}}[root@localhost ~(keystone_admin)]

Keystone logs show the following

2014-07-15 10:48:26.504 1332 DEBUG keystone.middleware.core [-] Auth token not in the request header. Will not build auth context. process_request /usr/lib/python2.7/site-packages/keystone/middleware/
2014-07-15 10:48:26.505 1332 DEBUG keystone.common.wsgi [-] arg_dict: {} __call__ /usr/lib/python2.7/site-packages/keystone/common/
2014-07-15 10:48:26.510 1332 DEBUG keystone.notifications [-] CADF Event: {'typeURI': '', 'initiator': {'typeURI': 'service/security/account/user', 'host': {'agent': 'python-novaclient', 'address': ''}, 'id': 'openstack:65348b01-cdaa-4e6a-87e3-d7e611ada33b', 'name': u'29dfa3fe0b4840909e612f27a50850fc'}, 'target': {'typeURI': 'service/security/account/user', 'id': 'openstack:e7e2ca94-ce15-40d6-a286-d3cf73cb5d65'}, 'observer': {'typeURI': 'service/security', 'id': 'openstack:e01bdc5e-8c9a-43dc-8926-b643f68be573'}, 'eventType': 'activity', 'eventTime': '2014-07-15T14:48:26.510274+0000', 'action': 'authenticate', 'outcome': 'pending', 'id': 'openstack:e7bc7d22-9b70-4c8e-85bf-14a2bd943660'} _send_audit_notification /usr/lib/python2.7/site-packages/keystone/
2014-07-15 10:48:26.557 1332 DEBUG keystone.notifications [-] CADF Event: {'typeURI': '', 'initiator': {'typeURI': 'service/security/account/user', 'host': {'agent': 'python-novaclient', 'address': ''}, 'id': 'openstack:65348b01-cdaa-4e6a-87e3-d7e611ada33b', 'name': u'29dfa3fe0b4840909e612f27a50850fc'}, 'target': {'typeURI ...
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-07-15 10:22:40 -0500

foexle gravatar image

updated 2014-07-15 10:23:19 -0500

I got the same error, the problem is the "latest" registry image of docker-io hub. It fails because the glance python dependencies are missing.

Try to start

docker run -d -p <ipv4>:5042:5000 -e SETTINGS_FLAVOR=openstack -e OS_USERNAME=xxxx -e OS_PASSWORD=xxxx -e OS_TENANT_NAME=service -e OS_GLANCE_URL= -e OS_AUTH_URL=https://xxxxx:35357/v2.0 --name registry registry:0.6.9

Image version 0.6.9 is running well.

Cheers Heiko

edit flag offensive delete link more


good answer!

SGPJ gravatar imageSGPJ ( 2014-07-15 13:15:42 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-07-15 10:04:06 -0500

Seen: 659 times

Last updated: Jul 15 '14