On OpenStack again but about Glance this time. Glance is the component in charge of hosting the images (and image snapshots) to be cloned for the ephemeral instances. Images usually are just some random big files so it makes perfect sense to use Swift for such an object (a File Object storage)!
As usual, some assumptions before we start:
- you're familiar with the general OpenStack architecture
- you have already some Glance image node configured and working as expected
This said, only few changes are needed to swap from local filesystem storage to Swift. Edit the
glance-api.conf as follows:
default_store = swift swift_store_auth_address = $KEYSTONE_PROTOCOL://$KEYSTONE_HOST:$KEYSTONE_PORT/v2.0/ swift_store_user = $SERVICE_TENANT_NAME:glance swift_store_key = $SERVICE_PASSWORD swift_store_create_container_on_put = True
These are probably self-explanatory but I have a few tips to spare! If you decide to go via https for the keystone service, make sure you can validate locally (on Glance) the certificate. If unsure about the values for the $SERVICE_* variables, those should have been set already in the
Short and straight to the point!