Comment 8 for bug 1634340

Revision history for this message
YuYang (yuyangwang1985) wrote :

hi:
 frist:
 Sihan Wang,when a vm has snapshot,the vm'root device will like this:
[vsanDatastore] 4e06e658-afa1-e450-7fe1-90b11c1a5073/79834d95-edbc-4542-88d5-f5c16f4f8aa0-000001.vmdk
the openstack code get the root device(in the https://github.com/openstack/nova/blob/master/nova/virt/vmwareapi/vm_util.py) use :
path = ds_obj.DatastorePath.parse(device.backing.fileName)
                if root_disk and path.basename == root_disk:
                    root_device = device
                vmdk_device = device

it will get error.

and then,in the customer site,they will backup with third party product.will snapshot the vm.so the openstack get the root device will get error.when i add the code adapte the condition Isn't it better to?