Home OpenStack-Ansible Swift
As an option, you can create images in Image Service (glance) and store them using Object Storage (swift).
If there is an existing glance backend (for example, cloud files) but you want to add swift to use as the glance backend, you can re-add any images from glance after moving to swift. Images are no longer available if there is a change in the glance variables when you begin using swift.
Procedure 5.3. Integrating Object Storage with Image Service
This procedure requires the following:
Update the glance options in the /etc/openstack_deploy/user_variables.yml file:
# Glance Options
glance_default_store: swift
glance_swift_store_auth_address: '{{ keystone_service_internalurl }}'
glance_swift_store_container: glance_images
glance_swift_store_endpoint_type: internalURL
glance_swift_store_key: '{{ glance_service_password }}'
glance_swift_store_region: RegionOne
glance_swift_store_user: 'service:glance'
Rerun the glance configuration plays.
Run the glance playbook:
# cd /opt/openstack-ansible/playbooks
# openstack-ansible os-glance-install.yml --tags "glance-config"