Ask Your Question
0

can NOT configure glance work with swift

asked 2015-08-31 10:27:37 -0500

darren-wang gravatar image

updated 2015-08-31 10:28:24 -0500

While I'm trying to configure glance work with swift with options below, I can not use "openstack" CLI nor "glance" CLI:

this is my options in glance-api.conf

swift_store_auth_version = 2
swift_store_auth_address = 10.0.0.11:5000/v2.0
swift_store_user = service:glance
swift_store_key = PASSWORD
swift_store_container = glance
swift_store_create_container_on_put = true
swift_store_large_object_size = 5120
swift_store_large_object_chunk_size = 200

value of "swift_store_key" is the password user glance used to log into keystone,

I used command :

openstack   image create --disk-format qcow2 --container-format bare --public --file /tmp/cirros-0.3.4-x86_64-disk.img cirros_glance_swift

to upload image, and the cirros image is in the folder.

However, I get error message like this:

    2015-08-31 23:17:47.242 4999 INFO eventlet.wsgi.server [req-4cb5f27b-ef9c-419c-b7a0-1c8a5f04642b 0cd6bf51acb3414dabcbe107a69a5b2b e60d3de4313d471d9db6ee0180a34315 - - -] 10.0.0.11 - - [31/Aug/2015 23:17:47] "GET /v1/images/detail?is_public=None&limit=20 HTTP/1.1" 200 1736 0.204253
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client [req-43ed4214-1caf-4a49-baa6-11ac25e19db4 dc2e86856119444290103ae97deb4af8 22e519b81ca8489ca38a2fd82350260b - - -] Registry client request GET /images/cirros_glance_swift raised NotFound
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client Traceback (most recent call last):
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 117, in do_request
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client     **kwargs)
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 71, in wrapped
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client     return func(self, *args, **kwargs)
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 376, in do_request
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client     headers=copy.deepcopy(headers))
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 88, in wrapped
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client     return func(self, method, url, body, headers)
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 523, in _do_request
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client     raise exception.NotFound(res.read())
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client NotFound: 404 Not Found
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client 
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client The resource could not be found.
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client 
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client    
2015-08-31 23:17:48.436 4999 ERROR glance.registry.client.v1.client 
2015-08-31 23:17:48.438 4999 INFO eventlet.wsgi.server [req-43ed4214-1caf-4a49-baa6-11ac25e19db4 dc2e86856119444290103ae97deb4af8 22e519b81ca8489ca38a2fd82350260b - - -] 10.0.0.11 - - [31/Aug/2015 23:17:48] "HEAD /v1 ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-09-01 02:22:11 -0500

updated 2015-09-01 02:53:16 -0500

Hi, you have configured swift in glance, but i can't see if glance knows that the new backed to use is swift, check or change this lines in glance-api.conf

default_store=swift
stores=swift

The first one will tell glance who is the default store to use.

The second will tell that swift is one of the enabled backed.

Regards

edit flag offensive delete link more
0

answered 2016-02-16 01:09:23 -0500

dbaxps gravatar image
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

2 followers

Stats

Asked: 2015-08-31 10:27:37 -0500

Seen: 601 times

Last updated: Feb 16 '16