mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
when deleting volume, also delete snapshots for this volume in primary storage
This commit is contained in:
parent
3b9c9815c8
commit
04e0800f7f
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user