mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
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:
parent
f8715c9e43
commit
142d3efe0b
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user