How do i setup s3 for glance

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

david08 gravatar image


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: (

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

stores = http,s3
default_store = s3
s3_store_host =
s3_store_access_key = xxxxxxxxxxxxxxxxxxxxxxxxxx
s3_store_secret_key = xxxxxxxxxxxxxxxxxxxxxxxxxx
s3_store_bucket =
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: (

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

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

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


edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 611 times

Last updated: Jul 05 '17