Bug 13893 - OVM volume migration of detached VM data disk or detached data disk fail (edit

status 13893: resolved fixed
reviewed-by: edison
This commit is contained in:
frank 2012-02-21 15:53:50 -08:00
parent f8715c9e43
commit 142d3efe0b

View File

@ -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)