870e984274d9e8d452e7aa383b289955b6896f28
Some platforms, particularly PowerPC systems running RHEL, do not have qemu-img installed by default and do not support image formats other than RAW. For these systems, functions/drivers that use fetch_to_raw() currently fail because it is assumed that qemu-img will always be installed. This change updates fetch_to_raw() to function more like the upload_volume() function which checks the image format and skips any conversion if the image is already in the RAW format. To minimize the impact upon platforms that have qemu-img installed this is being implemented by checking to see if qemu-img is installed. If it is installed, no changes are made to the flow through fetch_to_raw. If qemu-img is not available and the image format is not already RAW, an exception is thrown. Otherwise, the image is downloaded and we do not progress to the portions of fetch_to_raw that require qemu-img to be installed. This commit also updates the test cases that touch this code. Closes-bug: 1200800 Change-Id: I34540dfa238a8b8e61ff5c30c7e121130bad39b4
The Choose Your Own Adventure README for Cinder
You have come across a storage service for an open cloud computing service. It has identified itself as "Cinder." It was abstracted from the Nova project.
To monitor it from a distance: follow @openstack on twitter.
To tame it for use in your own cloud: read http://docs.openstack.org
To study its anatomy: read http://cinder.openstack.org
To dissect it in detail: visit http://github.com/openstack/cinder
To taunt it with its weaknesses: use http://bugs.launchpad.net/cinder
To watch it: http://jenkins.openstack.org
To hack at it: read HACKING.rst
Description
Languages
Python
99.7%
Smarty
0.3%