]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
TemporaryImages to inspect image before conversion
authorTomoki Sekiyama <tomoki.sekiyama@hds.com>
Fri, 14 Aug 2015 18:13:10 +0000 (14:13 -0400)
committerTomoki Sekiyama <tomoki.sekiyama@hds.com>
Tue, 25 Aug 2015 14:40:25 +0000 (10:40 -0400)
commit5f2bdd85c24157ca627dca4a97a087fe50a3d2fb
treeea8ea29884851df5a022f76205d2c907c96d3e7b
parenta953ecea5b4ad74ae28c8306b88e01ae6be23740
TemporaryImages to inspect image before conversion

This intruduces TemporaryImages utility class which enables
download images to temporary file for inspection before they are
used for format conversion. Using this utility, we can get image
information such as virtual size, which is required to implement
image cache, before calling fetch_to_raw() etc., without
downloading the image twice nor changing APIs of image_utils.

Change-Id: I6c2d48bca60e5b9e1615bbe10602d925ae6d75ff
Partially-implements: blueprint image-volume-cache
cinder/image/glance.py
cinder/image/image_utils.py
cinder/tests/unit/test_image_utils.py