how to store image on swift or cinder for Mitaka Centos

asked 2017-02-22 11:13:29 -0600

yan gravatar image

updated 2017-02-28 02:53:33 -0600

As the title, I want to store images on swift or cinder but not default controller node, I google some solutions but it doesn't work for me, so somebody can give some suggestions, thanks!

Bellow is the error report

2017-02-27 10:30:09.946 3167 ERROR glance.common.wsgi     store, store_location, context, allow_reauth)
2017-02-27 10:30:09.946 3167 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance_store/_drivers/swift/connection_manager.py", line 64, in __init__
2017-02-27 10:30:09.946 3167 ERROR glance.common.wsgi     self.storage_url = self._get_storage_url()
2017-02-27 10:30:09.946 3167 ERROR glance.common.wsgi   File "/usr/lib/python2.7/site-packages/glance_store/_drivers/swift/connection_manager.py", line 160, in _get_storage_url
2017-02-27 10:30:09.946 3167 ERROR glance.common.wsgi     raise exceptions.BackendException(msg)
2017-02-27 10:30:09.946 3167 ERROR glance.common.wsgi BackendException: Cannot find swift service endpoint : The request you have made requires authentication. (HTTP 401) (Request-ID: req-2e0f92c6-a8bc-4850-a02a-6a9fca33f94c)
2017-02-27 10:30:09.946 3167 ERROR glance.common.wsgi
edit retag flag offensive close merge delete

Comments

I took the liberty to move the error report from the answer to the question. It looks like you didn't provide the correct authentication from Glance to Swift. Can you show how you configured the Swift store? It's best to just update your question.

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-28 02:55:24 -0600 )edit

thanks,my configuration is like this: https://gist.github.com/raddaoui/ac2e...

yan gravatar imageyan ( 2017-02-28 08:40:10 -0600 )edit

"by the way, the key is glance user password, no service password if I do not misunderstand"

You have to provide the password of the user glance in Keystone.

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-28 09:17:30 -0600 )edit

Thanks! I set all of my password is "123456" , so I think It is not the problem of password!

yan gravatar imageyan ( 2017-03-01 10:02:50 -0600 )edit

2 answers

Sort by » oldest newest most voted
0

answered 2017-02-22 17:38:25 -0600

OpenStack has a documentation web site, which covers the current release (Ocata) and two releases back (Newton and Mitaka).

To configure Glance stores, see the config guide. It's pretty straightforward for Swift. Cinder store configuration and usage is a bit more tricky; instructions are at https://docs.openstack.org/admin-guid....

edit flag offensive delete link more
0

answered 2017-02-22 22:55:47 -0600

raddaoui gravatar image

Hi Yan so I putted an example of how you can configure glance to store in swift in this link below

https://gist.github.com/raddaoui/ac2e436c8a2fb02a5a5a01fc5db64144 (https://gist.github.com/raddaoui/ac2e...)

Please put the question to solved if this helped you!

Thanks

edit flag offensive delete link more

Comments

Thank you very much, but it still doesn't work,I modify the configuration according to your link. The version of my OpenStack is Mitaka.

yan gravatar imageyan ( 2017-02-23 13:45:04 -0600 )edit

by the way, the key is glance user password, no service password if I do not misunderstand

yan gravatar imageyan ( 2017-02-23 14:52:21 -0600 )edit

yeah it is glance user password! did you restart glance after the new conf and if so can you post the related error/log when you try to upload an image with these confs

raddaoui gravatar imageraddaoui ( 2017-02-26 15:01:40 -0600 )edit

thanks! I really restart the glance api and register service. but it doesn't work, I really found some errors in api.log, the errors is as bellows: BackendException: Cannot find swift service

yan gravatar imageyan ( 2017-02-27 10:25:25 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-02-22 11:13:29 -0600

Seen: 221 times

Last updated: Feb 28 '17