Skip to content

Instantly share code, notes, and snippets.

@raddaoui
Created February 23, 2017 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raddaoui/ac2e436c8a2fb02a5a5a01fc5db64144 to your computer and use it in GitHub Desktop.
Save raddaoui/ac2e436c8a2fb02a5a5a01fc5db64144 to your computer and use it in GitHub Desktop.
I putted below an example of how you can configure glance to store in swift
In glance-api.conf (usually you will find it /etc/glance/glance-api.conf where you installed glance)
[glance_store]
default_store = swift
stores = swift,http,cinder
swift_store_config_file = /etc/glance/glance-swift-store.conf
default_swift_reference = swift1
swift_store_auth_insecure = False
swift_store_region = RegionOne
swift_store_container = glance_images
swift_store_create_container_on_put = True
swift_store_large_object_size = 5120
swift_store_large_object_chunk_size = 200
swift_store_retry_get_count = 5
swift_store_endpoint_type = internalURL
then your /etc/glance/glance-swift-store.conf should look like this
[swift1]
user = service:glance
key = ed9e886d9333bb99 <------- put here your glance service password
user_domain_id = default
project_domain_id = default
auth_version = 3
auth_address = http://172.22.12.44:5000/v3 <-------- put here you keystone endpoint
@yanliang10
Copy link

yanliang10 commented Feb 23, 2017

Thanks! but the configuration still doesn't work.my openstack is Mitaka!

@yanliang10
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment