bug 10091:

when deleting volume, also delete snapshots for this volume in primary storage
master checkin: e9d54e069d85d3e588ac1a95fc73b7e0180d2600

status 10091: resolved fixed
This commit is contained in:
anthony 2011-05-31 11:52:18 -07:00
parent e94d1af718
commit 588d7a55ae
1 changed files with 4 additions and 0 deletions

View File

@ -4946,6 +4946,10 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
}
}
try {
Set<VDI> snapshots = vdi.getSnapshots(conn);
for( VDI snapshot: snapshots ) {
snapshot.destroy(conn);
}
vdi.destroy(conn);
} catch (Exception e) {
String msg = "VDI destroy for " + volumeUUID + " failed due to " + e.toString();