Glance Image Storage
Last updated
Last updated
All images used to launch instances are stored by Glance. However, glance holds the metadata, and delegates the actual data storage to one or more backends. Configuration and best practices are summarized below.
The kolla-ansible docs with details are listed here:
Images saved using cc-snapshot are also stored in Glance. This means that it contains user-data, and should be treated with care.
If not configured, Glance defaults to storing image data on the controller node, in the path /var/lib/glance/images
.
Make sure you back up this directory!
Customize this path by setting:
Even if using a network filesystem as the glance_file_datadir_volume
, ensure that it has backups, or at least snapshots to allow recovery from file deletion.
If the mount "flaps", that is goes down and back up due to a network disruption, the following procedure must be taken to mount it inside the container.
Stop the glance container docker stop glance_api
unmount the network share umount /path/to/shared/storage
remount the network share mount /path/to/shared/storage
start the glance container docker start glance_api