when deleting volume, also delete snapshots for this volume in primary storage

This commit is contained in:
anthony 2011-05-31 11:52:18 -07:00
parent 3b9c9815c8
commit 04e0800f7f

View File

@ -4970,6 +4970,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();