]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Do not clone non-raw images in rbd backend
authorDmitry Borodaenko <angdraug@gmail.com>
Wed, 27 Nov 2013 22:33:00 +0000 (14:33 -0800)
committerDmitry Borodaenko <dborodaenko@mirantis.com>
Mon, 16 Dec 2013 02:24:28 +0000 (18:24 -0800)
commite066158b5235a3879fe90fa3bd813fc3363c01f5
tree3ad210e4252cf8c1123189ba62927a5be9f1ef2c
parent1622b284c6f59a6b9e12f84ee0173e330d895071
Do not clone non-raw images in rbd backend

RBD backend only supports booting from images in raw format. A volume
that was cloned from an image in any other format is not bootable. The
RBD driver will consider non-raw images to be uncloneable to trigger
automatic conversion to raw format.

Includes conversion of the corresponding unit test to use mock (instead
of mox) and expanded comments and error messages based on change #58893
by Edward Hope-Morley.

Change-Id: I5725d2f7576bc1b3e9b874ba944ad17d33a6e2cb
Closes-Bug: #1246219
Closes-Bug: #1247998
cinder/tests/test_gpfs.py
cinder/tests/test_netapp_nfs.py
cinder/tests/test_rbd.py
cinder/tests/test_volume.py
cinder/volume/driver.py
cinder/volume/drivers/gpfs.py
cinder/volume/drivers/lvm.py
cinder/volume/drivers/netapp/nfs.py
cinder/volume/drivers/rbd.py
cinder/volume/drivers/scality.py
cinder/volume/flows/create_volume/__init__.py