Ask Your Question
0

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 https://ask.openstack.org/en/question... 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 docker.io registry When I try to push to glance, it fails

"docker-registry server (openstack) (v0.6.8)"192.168.145.128:5042/docker-busybox   latest              fde906a5f676        41 minutes ago       4.964 MB
The push refers to a repository [192.168.145.128:5042/docker-busybox] (len: 1)
Sending image list
Pushing repository 192.168.145.128:5042/docker-busybox (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  --  0.0.0.0/0            192.168.145.128      tcp dpt:8775
ACCEPT     tcp  --  0.0.0.0/0            192.168.145.128      tcp dpt:35357
ACCEPT     tcp  --  0.0.0.0/0            192.168.145.128      tcp dpt:9292
ACCEPT     tcp  --  0.0.0.0/0            192.168.145.128      tcp dpt:5042

my env has the following variables defined

OS_PASSWORD=xxxxxxxxxx
OS_AUTH_URL=http://127.0.0.1:35357/v2.0
OS_USERNAME=admin
OS_TENANT_NAME=admin

here is the .dockercfg file

{"192.168.145.128:5042":{"auth":"xxxxxxxxxxxxxxxxxxxxxxx","email":"email@email.com"},"https://index.docker.io/v1/":{"auth":"xxxxxxxxxxxxxxxxxxxxxxxx","email":"email@email.com"}}[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/core.py:271
2014-07-15 10:48:26.505 1332 DEBUG keystone.common.wsgi [-] arg_dict: {} __call__ /usr/lib/python2.7/site-packages/keystone/common/wsgi.py:181
2014-07-15 10:48:26.510 1332 DEBUG keystone.notifications [-] CADF Event: {'typeURI': 'http://schemas.dmtf.org/cloud/audit/1.0/event', 'initiator': {'typeURI': 'service/security/account/user', 'host': {'agent': 'python-novaclient', 'address': '192.168.145.128'}, '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/notifications.py:289
2014-07-15 10:48:26.557 1332 DEBUG keystone.notifications [-] CADF Event: {'typeURI': 'http://schemas.dmtf.org/cloud/audit/1.0/event', 'initiator': {'typeURI': 'service/security/account/user', 'host': {'agent': 'python-novaclient', 'address': '192.168.145.128'}, 'id': 'openstack:65348b01-cdaa-4e6a-87e3-d7e611ada33b', 'name': u'29dfa3fe0b4840909e612f27a50850fc'}, 'target': {'typeURI ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

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=http://10.0.0.4:9292 -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

Comments

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

Stats

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

Seen: 680 times

Last updated: Jul 15 '14