From 142d3efe0b350b323b94cf37304840e8f39f6d71 Mon Sep 17 00:00:00 2001 From: frank Date: Tue, 21 Feb 2012 15:53:50 -0800 Subject: [PATCH] Bug 13893 - OVM volume migration of detached VM data disk or detached data disk fail (edit status 13893: resolved fixed reviewed-by: edison --- ovm/scripts/vm/hypervisor/ovm/OvmStoragePoolModule.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ovm/scripts/vm/hypervisor/ovm/OvmStoragePoolModule.py b/ovm/scripts/vm/hypervisor/ovm/OvmStoragePoolModule.py index 06cf38054ee..2da53128039 100755 --- a/ovm/scripts/vm/hypervisor/ovm/OvmStoragePoolModule.py +++ b/ovm/scripts/vm/hypervisor/ovm/OvmStoragePoolModule.py @@ -374,6 +374,7 @@ if this doesn't resolve the problem, please check oracle manual to see how to of def copyToPrimary(secMountPoint, volumeFolderOnSecStorage, volumePath, primaryMountPath): srcPath = join(secMountPoint, volumeFolderOnSecStorage.lstrip("/"), volumePath.lstrip("/")) + if not srcPath.endswith(".raw"): srcPath = srcPath + ".raw" if not isfile(srcPath): raise Exception("Cannot find volume at %s"%srcPath) if not exists(primaryMountPath): raise Exception("Primary storage(%s) seems to have gone"%primaryMountPath) OvmStoragePool()._checkDirSizeForImage(primaryMountPath, srcPath)