mirror of https://github.com/apache/cloudstack.git
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:
parent
e94d1af718
commit
588d7a55ae
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue