Ask Your Question
0

How do i setup s3 for glance

asked 2017-07-04 03:35:10 -0600

david08 gravatar image

Hello,

currently i'm using Openstack Ocata with glance version 2.6.0 - manuel installation

I want to configure glance-api.conf to upload the images to aws s3. For this i have searched for integration guides, found some example configuration like this: https://ask.openstack.org/en/question/17985/glance-with-s3-backend-store/ (https://ask.openstack.org/en/question...)

But in my glance-api.conf there is no s3 resource, i have try to configure it:

[glance_store]
stores = http,s3
default_store = s3
s3_store_host = http://s3.amazonaws.com
s3_store_access_key = xxxxxxxxxxxxxxxxxxxxxxxxxx
s3_store_secret_key = xxxxxxxxxxxxxxxxxxxxxxxxxx
s3_store_bucket = image.xxx
s3_store_create_bucket_on_put = False

But when i try to upload an image i got followin message from glance api log: ERROR glance ConfigFileValueError: Value for option default_store is not valid: Valid values are [file, filesystem, http, https, swift, swift+http, swift+https, swift+config, rbd, sheepdog, cinder, vsphere], but found 's3'

So s3 is not a valid default_store option, in Red_Hat_Enterprise_Linux_OpenStack_Platform it is possible to configure it that way: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/5/html/Configuration_Reference_Guide/section_image-service-sample-configuration-files.html (https://access.redhat.com/documentati...)

How do i setup default_Store = s3 in Glance - vanilla opentsack installation?

I'm a beginner if you can give me a step by step or lead me to helpful documentation it would be great. I have searched through a lot of documentation, but i think, i'm missing some ground knowledge to solve this issue.

best regards david

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-07-05 08:12:44 -0600

david08 gravatar image

Thanks a lot! My goal was to store the images external not in our infrastructur. As you poseted s3 is not supported in Ocata, i have used the swift api with ibm bluestack and i could set it up in 10 min.

best regards

david

edit flag offensive delete link more
0

answered 2017-07-04 15:04:16 -0600

updated 2017-07-04 15:11:58 -0600

S3 has been removed at Newton. Red Hat OSP 5 is much older than Newton; probably based on Icehouse. With the help of Google, I found instructions for Juno; they should also work on Mitaka, the latest release that supported the S3 store.

If you need it on Ocata, you can try copying the S3 driver code to your installation.

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: 2017-07-04 03:35:10 -0600

Seen: 260 times

Last updated: Jul 05 '17