|
54 | 54 | import com.cloud.exception.OperationTimedoutException; |
55 | 55 | import com.cloud.exception.ResourceAllocationException; |
56 | 56 | import com.cloud.exception.ResourceUnavailableException; |
57 | | -import com.cloud.exception.StorageUnavailableException; |
58 | 57 | import com.cloud.exception.VirtualMachineMigrationException; |
59 | 58 | import com.cloud.host.Host; |
60 | 59 | import com.cloud.hypervisor.Hypervisor.HypervisorType; |
@@ -112,7 +111,7 @@ public interface UserVmService { |
112 | 111 |
|
113 | 112 | UserVm resetVMUserData(ResetVMUserDataCmd cmd) throws ResourceUnavailableException, InsufficientCapacityException; |
114 | 113 |
|
115 | | - UserVm startVirtualMachine(StartVMCmd cmd) throws StorageUnavailableException, ExecutionException, ConcurrentOperationException, ResourceUnavailableException, |
| 114 | + UserVm startVirtualMachine(StartVMCmd cmd) throws ExecutionException, ConcurrentOperationException, ResourceUnavailableException, |
116 | 115 | InsufficientCapacityException, ResourceAllocationException; |
117 | 116 |
|
118 | 117 | UserVm rebootVirtualMachine(RebootVMCmd cmd) throws InsufficientCapacityException, ResourceUnavailableException, ResourceAllocationException; |
@@ -229,8 +228,8 @@ UserVm createBasicSecurityGroupVirtualMachine(DataCenter zone, ServiceOffering s |
229 | 228 | String userData, Long userDataId, String userDataDetails, List<String> sshKeyPairs, Map<Long, IpAddresses> requestedIps, IpAddresses defaultIp, Boolean displayVm, String keyboard, |
230 | 229 | List<Long> affinityGroupIdList, Map<String, String> customParameter, String customId, Map<String, Map<Integer, String>> dhcpOptionMap, |
231 | 230 | Map<Long, DiskOffering> dataDiskTemplateToDiskOfferingMap, |
232 | | - Map<String, String> userVmOVFProperties, boolean dynamicScalingEnabled, Long overrideDiskOfferingId, Volume volume, Snapshot snapshot) throws InsufficientCapacityException, |
233 | | - ConcurrentOperationException, ResourceUnavailableException, StorageUnavailableException, ResourceAllocationException; |
| 231 | + Map<String, String> userVmOVFProperties, boolean dynamicScalingEnabled, Long overrideDiskOfferingId, Volume volume, Snapshot snapshot) |
| 232 | + throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException, ResourceAllocationException; |
234 | 233 |
|
235 | 234 | /** |
236 | 235 | * Creates a User VM in Advanced Zone (Security Group feature is enabled) in |
@@ -305,7 +304,8 @@ UserVm createAdvancedSecurityGroupVirtualMachine(DataCenter zone, ServiceOfferin |
305 | 304 | List<Long> securityGroupIdList, Account owner, String hostName, String displayName, Long diskOfferingId, Long diskSize, List<VmDiskInfo> dataDiskInfoList, String group, HypervisorType hypervisor, |
306 | 305 | HTTPMethod httpmethod, String userData, Long userDataId, String userDataDetails, List<String> sshKeyPairs, Map<Long, IpAddresses> requestedIps, IpAddresses defaultIps, Boolean displayVm, String keyboard, |
307 | 306 | List<Long> affinityGroupIdList, Map<String, String> customParameters, String customId, Map<String, Map<Integer, String>> dhcpOptionMap, |
308 | | - Map<Long, DiskOffering> dataDiskTemplateToDiskOfferingMap, Map<String, String> userVmOVFProperties, boolean dynamicScalingEnabled, Long overrideDiskOfferingId, String vmType, Volume volume, Snapshot snapshot) throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException, StorageUnavailableException, ResourceAllocationException; |
| 307 | + Map<Long, DiskOffering> dataDiskTemplateToDiskOfferingMap, Map<String, String> userVmOVFProperties, boolean dynamicScalingEnabled, Long overrideDiskOfferingId, String vmType, Volume volume, Snapshot snapshot) |
| 308 | + throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException, ResourceAllocationException; |
309 | 309 |
|
310 | 310 | /** |
311 | 311 | * Creates a User VM in Advanced Zone (Security Group feature is disabled) |
@@ -379,7 +379,7 @@ UserVm createAdvancedVirtualMachine(DataCenter zone, ServiceOffering serviceOffe |
379 | 379 | Map<String, String> customParameters, String customId, Map<String, Map<Integer, String>> dhcpOptionMap, Map<Long, DiskOffering> dataDiskTemplateToDiskOfferingMap, |
380 | 380 | Map<String, String> templateOvfPropertiesMap, boolean dynamicScalingEnabled, String vmType, Long overrideDiskOfferingId, Volume volume, Snapshot snapshot) |
381 | 381 |
|
382 | | - throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException, StorageUnavailableException, ResourceAllocationException; |
| 382 | + throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException, ResourceAllocationException; |
383 | 383 |
|
384 | 384 | /** |
385 | 385 | * Starts the virtual machine created from createVirtualMachine. |
@@ -421,8 +421,7 @@ UserVm createAdvancedVirtualMachine(DataCenter zone, ServiceOffering serviceOffe |
421 | 421 |
|
422 | 422 | HypervisorType getHypervisorTypeOfUserVM(long vmid); |
423 | 423 |
|
424 | | - UserVm createVirtualMachine(DeployVMCmd cmd) throws InsufficientCapacityException, ResourceUnavailableException, ConcurrentOperationException, |
425 | | - StorageUnavailableException, ResourceAllocationException; |
| 424 | + UserVm createVirtualMachine(DeployVMCmd cmd) throws InsufficientCapacityException, ResourceUnavailableException, ConcurrentOperationException, ResourceAllocationException; |
426 | 425 |
|
427 | 426 | /** |
428 | 427 | * This API is mostly to trigger VM.CREATE event for deployVirtualMachine with startvm=false, because there is no code in "execute" part of VM creation. |
@@ -505,7 +504,7 @@ UserVm upgradeVirtualMachine(ScaleVMCmd cmd) throws ResourceUnavailableException |
505 | 504 | * determine whether the uservm should be visible to the end user |
506 | 505 | * @return value of the display flag |
507 | 506 | */ |
508 | | - public boolean isDisplayResourceEnabled(Long vmId); |
| 507 | + boolean isDisplayResourceEnabled(Long vmId); |
509 | 508 |
|
510 | 509 | void collectVmDiskStatistics(UserVm userVm); |
511 | 510 |
|
|
0 commit comments