mirror of https://github.com/apache/cloudstack.git
bug 10363 : cleanup vhd in secondary storage if backsnapshot fails
This commit is contained in:
parent
6ff35487c4
commit
bf75ccbb15
|
|
@ -3051,6 +3051,8 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
|||
+ secondaryStorageMountPath + " due to " + tmp[1];
|
||||
}
|
||||
}
|
||||
String source = backupUuid + ".vhd";
|
||||
killCopyProcess(conn, source);
|
||||
s_logger.warn(errMsg);
|
||||
return null;
|
||||
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ def copyfile(fromFile, toFile, isISCSI):
|
|||
txt = util.pread2(cmd)
|
||||
except:
|
||||
try:
|
||||
os.system("rm -f " + toFile)
|
||||
os.system("rm -f " + toFile)
|
||||
except:
|
||||
|
||||
txt = ''
|
||||
|
|
|
|||
Loading…
Reference in New Issue