commit bc9495d2930936618e49e569af03915b3add5bf1
Author: Gary Kotton <email address hidden>
Date: Wed Oct 2 06:44:27 2013 -0700
Fix snapshot failure with VMwareVCDriver
The snapshot operation was failing because it calls
VirtualDiskManager.CopyVirtualDisk with a destination disk spec, which
is not supported when called through VC. The fix is to not supply a spec
when calling through VC, in which case the disk is consolidated and
copied without type transformation.
While the fix is to use spec-less CopyVirtualDisk in VC, doing so in ESX
too will result in unintended transformation (because it ESX will
default to busLogic/preallocated), so the use of the spec was retained
in ESX-mode instead.
Another issue found and fixed is that the name of the snapshot image is
incorrectly set when uploading to glance.
The following tempest tests are now unbroken against the VC and ESX
nodes:
tempest.api.compute.images. test_images_oneserver.ImagesOneServerTest{JSON,XML}. test_create_delete_image test_create_second_image_when_first_image_is_being_saved test_delete_image_of_another_tenant test_list_image_filters
tempest.api.compute.test_authorization.AuthorizationTestJSON
tempest.api.compute.test_authorization.AuthorizationTestXML
Reviewed: https:/ /review. openstack. org/49371 github. com/openstack/ nova/commit/ bc9495d29309366 18e49e569af0391 5b3add5bf1
Committed: http://
Submitter: Jenkins
Branch: stable/grizzly
commit bc9495d29309366 18e49e569af0391 5b3add5bf1
Author: Gary Kotton <email address hidden>
Date: Wed Oct 2 06:44:27 2013 -0700
Fix snapshot failure with VMwareVCDriver
The snapshot operation was failing because it calls Manager. CopyVirtualDisk with a destination disk spec, which
VirtualDisk
is not supported when called through VC. The fix is to not supply a spec
when calling through VC, in which case the disk is consolidated and
copied without type transformation.
While the fix is to use spec-less CopyVirtualDisk in VC, doing so in ESX preallocated) , so the use of the spec was retained
too will result in unintended transformation (because it ESX will
default to busLogic/
in ESX-mode instead.
Another issue found and fixed is that the name of the snapshot image is
incorrectly set when uploading to glance.
The following tempest tests are now unbroken against the VC and ESX api.compute. images.
test_ images_ oneserver. ImagesOneServer Test{JSON, XML}.
test_ create_ delete_ image
test_ create_ second_ image_when_ first_image_ is_being_ saved
test_ delete_ image_of_ another_ tenant
test_ list_image_ filters api.compute. test_authorizat ion.Authorizati onTestJSON api.compute. test_authorizat ion.Authorizati onTestXML
nodes:
tempest.
tempest.
tempest.
Fixes bug 1184807
(cherry picked from commit 61bfac8881dd6a7 1a572a54b2ea168 0248fc4bc4)
Conflicts:
Change-Id: I08717a06f23dd1 abfd5ccae7606a7 ecb1453dc8c