|
53 | 53 | import com.cloud.exception.OperationTimedoutException; |
54 | 54 | import com.cloud.exception.ResourceAllocationException; |
55 | 55 | import com.cloud.exception.ResourceUnavailableException; |
56 | | -import com.cloud.exception.StorageUnavailableException; |
57 | 56 | import com.cloud.exception.VirtualMachineMigrationException; |
58 | 57 | import com.cloud.host.Host; |
59 | 58 | import com.cloud.hypervisor.Hypervisor.HypervisorType; |
@@ -111,7 +110,7 @@ public interface UserVmService { |
111 | 110 |
|
112 | 111 | UserVm resetVMUserData(ResetVMUserDataCmd cmd) throws ResourceUnavailableException, InsufficientCapacityException; |
113 | 112 |
|
114 | | - UserVm startVirtualMachine(StartVMCmd cmd) throws StorageUnavailableException, ExecutionException, ConcurrentOperationException, ResourceUnavailableException, |
| 113 | + UserVm startVirtualMachine(StartVMCmd cmd) throws ExecutionException, ConcurrentOperationException, ResourceUnavailableException, |
115 | 114 | InsufficientCapacityException, ResourceAllocationException; |
116 | 115 |
|
117 | 116 | UserVm rebootVirtualMachine(RebootVMCmd cmd) throws InsufficientCapacityException, ResourceUnavailableException, ResourceAllocationException; |
@@ -226,8 +225,8 @@ UserVm createBasicSecurityGroupVirtualMachine(DataCenter zone, ServiceOffering s |
226 | 225 | String userData, Long userDataId, String userDataDetails, List<String> sshKeyPairs, Map<Long, IpAddresses> requestedIps, IpAddresses defaultIp, Boolean displayVm, String keyboard, |
227 | 226 | List<Long> affinityGroupIdList, Map<String, String> customParameter, String customId, Map<String, Map<Integer, String>> dhcpOptionMap, |
228 | 227 | Map<Long, DiskOffering> dataDiskTemplateToDiskOfferingMap, |
229 | | - Map<String, String> userVmOVFProperties, boolean dynamicScalingEnabled, Long overrideDiskOfferingId, Volume volume, Snapshot snapshot) throws InsufficientCapacityException, |
230 | | - ConcurrentOperationException, ResourceUnavailableException, StorageUnavailableException, ResourceAllocationException; |
| 228 | + Map<String, String> userVmOVFProperties, boolean dynamicScalingEnabled, Long overrideDiskOfferingId, Volume volume, Snapshot snapshot) |
| 229 | + throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException, ResourceAllocationException; |
231 | 230 |
|
232 | 231 | /** |
233 | 232 | * Creates a User VM in Advanced Zone (Security Group feature is enabled) in |
@@ -302,7 +301,8 @@ UserVm createAdvancedSecurityGroupVirtualMachine(DataCenter zone, ServiceOfferin |
302 | 301 | List<Long> securityGroupIdList, Account owner, String hostName, String displayName, Long diskOfferingId, Long diskSize, List<VmDiskInfo> dataDiskInfoList, String group, HypervisorType hypervisor, |
303 | 302 | HTTPMethod httpmethod, String userData, Long userDataId, String userDataDetails, List<String> sshKeyPairs, Map<Long, IpAddresses> requestedIps, IpAddresses defaultIps, Boolean displayVm, String keyboard, |
304 | 303 | List<Long> affinityGroupIdList, Map<String, String> customParameters, String customId, Map<String, Map<Integer, String>> dhcpOptionMap, |
305 | | - Map<Long, DiskOffering> dataDiskTemplateToDiskOfferingMap, Map<String, String> userVmOVFProperties, boolean dynamicScalingEnabled, Long overrideDiskOfferingId, String vmType, Volume volume, Snapshot snapshot) throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException, StorageUnavailableException, ResourceAllocationException; |
| 304 | + Map<Long, DiskOffering> dataDiskTemplateToDiskOfferingMap, Map<String, String> userVmOVFProperties, boolean dynamicScalingEnabled, Long overrideDiskOfferingId, String vmType, Volume volume, Snapshot snapshot) |
| 305 | + throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException, ResourceAllocationException; |
306 | 306 |
|
307 | 307 | /** |
308 | 308 | * Creates a User VM in Advanced Zone (Security Group feature is disabled) |
@@ -376,7 +376,7 @@ UserVm createAdvancedVirtualMachine(DataCenter zone, ServiceOffering serviceOffe |
376 | 376 | Map<String, String> customParameters, String customId, Map<String, Map<Integer, String>> dhcpOptionMap, Map<Long, DiskOffering> dataDiskTemplateToDiskOfferingMap, |
377 | 377 | Map<String, String> templateOvfPropertiesMap, boolean dynamicScalingEnabled, String vmType, Long overrideDiskOfferingId, Volume volume, Snapshot snapshot) |
378 | 378 |
|
379 | | - throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException, StorageUnavailableException, ResourceAllocationException; |
| 379 | + throws InsufficientCapacityException, ConcurrentOperationException, ResourceUnavailableException, ResourceAllocationException; |
380 | 380 |
|
381 | 381 | /** |
382 | 382 | * Starts the virtual machine created from createVirtualMachine. |
@@ -418,8 +418,7 @@ UserVm createAdvancedVirtualMachine(DataCenter zone, ServiceOffering serviceOffe |
418 | 418 |
|
419 | 419 | HypervisorType getHypervisorTypeOfUserVM(long vmid); |
420 | 420 |
|
421 | | - UserVm createVirtualMachine(DeployVMCmd cmd) throws InsufficientCapacityException, ResourceUnavailableException, ConcurrentOperationException, |
422 | | - StorageUnavailableException, ResourceAllocationException; |
| 421 | + UserVm createVirtualMachine(DeployVMCmd cmd) throws InsufficientCapacityException, ResourceUnavailableException, ConcurrentOperationException, ResourceAllocationException; |
423 | 422 |
|
424 | 423 | /** |
425 | 424 | * 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. |
@@ -502,7 +501,7 @@ UserVm upgradeVirtualMachine(ScaleVMCmd cmd) throws ResourceUnavailableException |
502 | 501 | * determine whether the uservm should be visible to the end user |
503 | 502 | * @return value of the display flag |
504 | 503 | */ |
505 | | - public boolean isDisplayResourceEnabled(Long vmId); |
| 504 | + boolean isDisplayResourceEnabled(Long vmId); |
506 | 505 |
|
507 | 506 | void collectVmDiskStatistics(UserVm userVm); |
508 | 507 |
|
|
0 commit comments