commit 835ff1bf73d36a311168283f8a4ef5bec03d5a7e
Author: Sam Yaple <email address hidden>
Date: Tue Oct 20 22:42:36 2015 +0000
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.
Reviewed: https:/ /review. openstack. org/237799 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=835ff1bf73d 36a311168283f8a 4ef5bec03d5a7e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 835ff1bf73d36a3 11168283f8a4ef5 bec03d5a7e
Author: Sam Yaple <email address hidden>
Date: Tue Oct 20 22:42:36 2015 +0000
Fix attibute error when cloning raw images in Ceph
A regression introduced in If03b166d3ecc3e 7fa6b7f1a0c69f8 ab1cc7b1972
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 objects. ImageMeta object so the clone() function passes a normal
nova.
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] https:/ /github. com/openstack/ nova/blob/ f2e2a5891d5f5ff 9346e6dc8e4dd0e 994485245c/ nova/virt/ libvirt/ imagebackend. py#L824
Change-Id: I7ae107bfccab7f f66c09d96856722 dd6e60fdd96
Closes-Bug: #1508230