This introduces a new feature for backends to be able to use cached glance images when creating volumes from images. If enabled, and the cinder internal tenant is configured, it will create a minimal sized clone of a volume the first time it is downloaded from glance. A new db table ‘image_volume_cache’ tracks these volumes, which are owned by the Cinder internal tenant. The original will then be extended to full size. Any subsequent requests to create a volume from an image will be able to do a volume clone from the image-volume cache entry instead of downloading the image data from glance again.
Tested using: python-cinder-7.0.1-5.el7ost.noarch openstack-cinder-7.0.1-5.el7ost.noarch python-cinderclient-1.4.0-1.el7ost.noarch [stack@instack ~]$ cinder create 1 --image 18234a00-1493-44b6-b6aa-5d78a500a752 From cinder db: MariaDB [cinder]> select * from image_volume_cache_entries; +---------------------+----+---------------------------------------------------------+--------------------------------------+--------------------------------------+------+---------------------+ | image_updated_at | id | host | image_id | volume_id | size | last_used | +---------------------+----+---------------------------------------------------------+--------------------------------------+--------------------------------------+------+---------------------+ | 2016-01-27 20:45:08 | 1 | overcloud-controller-0.localdomain@Netapp1#vol_rhos_nfs | 2bc9560b-6e7c-4614-a332-3f263ed5fdc8 | c75409d8-dea2-401f-996e-e13cd6c98747 | 1 | 2016-02-03 08:43:27 | +---------------------+----+---------------------------------------------------------+--------------------------------------+--------------------------------------+------+-------------------
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-0603.html