Ask Your Question
0

Glance & Swift integration not working - auth failure

asked 2013-02-01 17:14:02 -0500

jesse-pretorius gravatar image

I need some help identifying where the bug is in my configuration - I can successfully do keystone actions, a 'glance index', and have also tested that I can upload items into swift using glance's credentials and keystone authentication.

Environment - Openstack Essex on Ubuntu 12.04 LTS

I can't seem to find why when I try to upload an image to glance it fails:

glance add name="ubuntu-12.04.1-LTS-x86_64" is_public=true container_format=bare disk_format=qcow2 distro="ubuntu-12.04.1-LTS-x86_64" < precise-server-cloudimg-amd64-disk1.img

Failed to add image. Got error: Data supplied was not valid. Details: 400 Bad Request

The server could not comply with the request since it is either malformed or otherwise incorrect.

Error uploading image: (ClientException): Error while getting answers from auth server

---here are the logs through the process - note the ERROR item--- Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 5865 DEBUG [glance.api.middleware.version_negotiation] Processing request: POST /v1/images Accept: Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 5865 DEBUG [glance.api.middleware.version_negotiation] Matched versioned URI. Version: 1.0 Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 5865 DEBUG [keystone.middleware.auth_token] Authenticating user token Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 5865 DEBUG [keystone.middleware.auth_token] Removing headers from request environment: X-Identity-Status,X-Tenant-Id,X-Tenant-Name,X-User-Id,X-User-Name,X-Roles,X-User,X-Tenant,X-Role Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 5865 DEBUG [routes.middleware] Matched POST /images Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 5865 DEBUG [routes.middleware] Route path: '/images', defaults: {'action': u'create', 'controller': } Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 5865 DEBUG [routes.middleware] Match dict: {'action': u'create', 'controller': } Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 5865 DEBUG [glance.registry] Adding image metadata... Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 4845 DEBUG [keystone.middleware.auth_token] Authenticating user token Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 4845 DEBUG [keystone.middleware.auth_token] Removing headers from request environment: X-Identity-Status,X-Tenant-Id,X-Tenant-Name,X-User-Id,X-User-Name,X-Roles,X-User,X-Tenant,X-Role Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 4845 DEBUG [routes.middleware] Matched POST /images Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 4845 DEBUG [routes.middleware] Route path: '/images', defaults: {'action': u'create', 'controller': } Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 4845 DEBUG [routes.middleware] Match dict: {'action': u'create', 'controller': } Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 4845 INFO [sqlalchemy.engine.base.Engine] BEGIN (implicit) Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 4845 INFO [sqlalchemy.engine.base.Engine] INSERT INTO images (created_at, updated_at, deleted_at, deleted, id, name, disk_format, container_format, size, status, is_public, location, checksum, min_disk, min_ram, owner, protected) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) Feb 1 17:42:27 ang2pcgls1 2013-02-01 17:42:27 4845 INFO [sqlalchemy.engine.base.Engine] (datetime.datetime(2013 ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-02-04 14:10:11 -0500

Haha! It happens sometimes. Glad you got it resolved.

edit flag offensive delete link more
0

answered 2013-02-04 12:16:08 -0500

jesse-pretorius gravatar image

As it turns out I had a typo in one of the modifications to the glance/swift client we did in order to make it refer to the internalURL instead of the publicURL. Today's noddy-badge goes to me. doh!

edit flag offensive delete link more

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: 2013-02-01 17:14:02 -0500

Seen: 131 times

Last updated: Feb 04 '13