bug 10363 : cleanup vhd in secondary storage if backsnapshot fails

This commit is contained in:
anthony 2012-01-10 15:53:36 -08:00
parent 6ff35487c4
commit bf75ccbb15
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -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 = ''