nova/nova/virt
Sam Yaple 474e7bb3f3 Fix attibute error when cloning raw images in Ceph
A regression introduced in If03b166d3ecc3e7fa6b7f1a0c69f8ab1cc7b1972
causes a glance image with the type 'raw' in ceph to fail to CoW
clone which prevents launching at all in this case.

The original patch did not update imagebackend.py [1] to use the new
nova.objects.ImageMeta object so the clone() function passes a normal
dict to the is_cloneable() function.

Additionally add another test to ensure that not passing disk_format
will fail, but not result in an exception. It will simply mean that
the function returns that it cannot take advantage of the CoW cloning
ceph provides.

[1] f2e2a5891d/nova/virt/libvirt/imagebackend.py (L824)

Change-Id: I7ae107bfccab7ff66c09d96856722dd6e60fdd96
Closes-Bug: #1508230
(cherry picked from commit 835ff1bf73)
2015-11-09 08:36:08 +00:00
..
disk virt: Fix AttributeError for raw image format 2015-07-02 23:50:57 -07:00
hyperv Merge "Hyper-V: Implements attach_interface and detach_interface method" 2015-09-22 02:22:14 +00:00
image Fix typo in model doc string 2015-07-03 00:11:55 -07:00
ironic Ironic: Fix bad capacity reporting if instance_info is unset 2015-10-05 20:55:50 +00:00
libvirt Fix attibute error when cloning raw images in Ceph 2015-11-09 08:36:08 +00:00
vmwareapi Merge "VMware: create method for getting datacenter from datastore" 2015-09-17 21:16:22 +00:00
xenapi Xenapi: Don't access image_meta.id when booting from a volume 2015-09-16 16:11:54 -04:00
__init__.py Removed copyright from empty files 2014-02-27 14:27:54 +02:00
block_device.py Detach and terminate conn if Cinder attach fails 2015-09-03 16:54:18 +05:30
configdrive.py objects: convert config drive to use ImageMeta object 2015-09-07 17:11:02 +01:00
diagnostics.py Diagnostics: add validation for types 2014-08-05 01:49:17 -07:00
driver.py Merge "Set autodoc_index_modules=True so tox -e docs builds module docs again" 2015-07-31 22:21:08 +00:00
event.py Add 'suspended' lifecycle event 2015-04-03 03:59:20 +03:00
fake.py libvirt:Add a driver API to inject an NMI 2015-07-27 23:59:55 +00:00
firewall.py Switch nova.virt.* to use the object dot notation 2015-03-03 08:08:16 -05:00
hardware.py Correct Instance type check to work with InstanceV1 2015-09-29 16:09:34 +08:00
imagecache.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
images.py compute: improve exceptions related to disk size checks 2015-08-19 12:54:56 -07:00
interfaces.template Fixes interfaces template identification issue 2014-12-07 17:52:34 +02:00
netutils.py Only work with ipv4 subnet metadata if one exists 2015-07-20 15:44:23 -07:00
opts.py Set autodoc_index_modules=True so tox -e docs builds module docs again 2015-07-30 17:11:47 -07:00
storage_users.py Use oslo.log 2015-02-22 07:56:40 -05:00
virtapi.py Deprecate and remove agent_build_get_by_triple() 2014-06-25 07:18:19 -07:00
volumeutils.py nova.utils._get_root_helper() should be public 2015-08-19 04:00:50 +00:00
watchdog_actions.py Add watchdog device support to libvirt driver 2014-03-03 14:59:58 -05:00