Deployment

Glance images with swift back-end

Today I started with moving my glance images to the swift storage back-end. The main reason for this is that next I would like to deploy a application catalog which includes applications from Murano, custom templates from heat and images from glance. The storage on the controller is limited and could better be saved for other features on the controller.

Firt I looked up some documentation to investigate what is needed for this configuration. After reading and trying some configuration settings I discoverd most documentation is out dated. In newton authentication is done through keystone version 3 which must be metioned in the configuration file. The default version is 2.0. When trying to authenticatie with version 2 an error message will appear in de glance-api.log

ERROR glance.common.wsgi ClientException: Authorization Failure. Authorization Failed: The resource could not be found. (HTTP 404) (HTTP 404)

All credentials are correct but the wrong keystone api version is used. Below is the configuration applied to my deployment and is working as expected.

[glance_store]

stores = file,http,swift
default_store = swift
swift_store_container = glance
swift_store_create_container_on_put = true
swift_store_auth_version = 3
swift_store_auth_address = http://controller:35357/v3/
swift_store_user = service:swift
swift_store_key =

After applyng the configuration the glance service need to be restarted

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s