hi Sihan:
the snapshot create use vcenter,because customer use third product to backup vm.
the third backup product is to crate snapshot and then backup .
so when the vm has snapshot,the openstack get the root device will get error.and then ,i add :
if root_disk and (path.basename == root_disk + ".vmdk" or path.basename.startswith(root_disk + "-")):
then this code will good whether or not has snapshot!
hi Sihan:
or
path. basename. startswith( root_disk + "-")):
the snapshot create use vcenter,because customer use third product to backup vm.
the third backup product is to crate snapshot and then backup .
so when the vm has snapshot,the openstack get the root device will get error.and then ,i add :
if root_disk and (path.basename == root_disk + ".vmdk"
then this code will good whether or not has snapshot!
thanks!