]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMware: manage_existing_get_size for VMDK driver
authorVipin Balachandran <vbala@vmware.com>
Fri, 29 Jan 2016 11:22:28 +0000 (03:22 -0800)
committerVipin Balachandran <vbala@vmware.com>
Tue, 16 Feb 2016 06:32:04 +0000 (12:02 +0530)
commit451d17d4166d0ccf9c5c280af65172fbea62a216
tree80a49519cd26c6869cb75a3c5f122bae1d3928c4
parent7b428a9aac5fdc839549e0d204f6da92a0f780a5
VMware: manage_existing_get_size for VMDK driver

This patch implements manage_existing_get_size for the
VMDK driver.

Manage existing creates a volume backing from the vmdk
identified by the source-name option. The source-name
format is "vmdk_path@vm_inventory_path".

This patch checks for the existence of a disk device at
path vmdk_path and attached to the VM at vCenter inventory
path given by vm_inventory_path. If the disk device exists
it returns its size.

Implements: blueprint vmdk-manage-existing
Change-Id: Id5698c2452aed454f22ac68fee8dd90046d858e1
cinder/tests/unit/test_vmware_vmdk.py
cinder/tests/unit/test_vmware_volumeops.py
cinder/volume/drivers/vmware/vmdk.py
cinder/volume/drivers/vmware/volumeops.py