Skip to content

Commit 88a12a8

Browse files
winterhazelDaan Hoogland
authored andcommitted
Cleanup imported VM from disk on failure due to volume allocation + prevent duplicate volume and primary storage increment on import
1 parent 9c0c8da commit 88a12a8

5 files changed

Lines changed: 70 additions & 78 deletions

File tree

engine/api/src/main/java/org/apache/cloudstack/engine/orchestration/service/VolumeOrchestrationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ VolumeInfo moveVolume(VolumeInfo volume, long destPoolDcId, Long destPoolPodId,
120120
void destroyVolume(Volume volume);
121121

122122
DiskProfile allocateRawVolume(Type type, String name, DiskOffering offering, Long size, Long minIops, Long maxIops, VirtualMachine vm, VirtualMachineTemplate template,
123-
Account owner, Long deviceId);
123+
Account owner, Long deviceId, boolean incrementResourceCount);
124124

125125
VolumeInfo createVolumeOnPrimaryStorage(VirtualMachine vm, VolumeInfo volume, HypervisorType rootDiskHyperType, StoragePool storagePool) throws NoTransitionException;
126126

0 commit comments

Comments
 (0)