Search in sources :

Example 26 with DiskOfferingVO

use of com.cloud.storage.DiskOfferingVO in project cloudstack by apache.

the class DeploymentPlanningManagerImpl method getVolumeDiskProfilePairs.

private List<Pair<Volume, DiskProfile>> getVolumeDiskProfilePairs(List<Volume> volumes) {
    List<Pair<Volume, DiskProfile>> volumeDiskProfilePairs = new ArrayList<>();
    for (Volume volume : volumes) {
        DiskOfferingVO diskOffering = _diskOfferingDao.findById(volume.getDiskOfferingId());
        DiskProfile diskProfile = new DiskProfile(volume, diskOffering, _volsDao.getHypervisorType(volume.getId()));
        volumeDiskProfilePairs.add(new Pair<>(volume, diskProfile));
    }
    return volumeDiskProfilePairs;
}
Also used : Volume(com.cloud.storage.Volume) DiskOfferingVO(com.cloud.storage.DiskOfferingVO) ArrayList(java.util.ArrayList) DiskProfile(com.cloud.vm.DiskProfile) Pair(com.cloud.utils.Pair)

Example 27 with DiskOfferingVO

use of com.cloud.storage.DiskOfferingVO in project cloudstack by apache.

the class DefaultVMSnapshotStrategy method publishUsageEvent.

private void publishUsageEvent(String type, VMSnapshot vmSnapshot, UserVm userVm, VolumeObjectTO volumeTo) {
    VolumeVO volume = volumeDao.findById(volumeTo.getId());
    Long diskOfferingId = volume.getDiskOfferingId();
    Long offeringId = null;
    if (diskOfferingId != null) {
        DiskOfferingVO offering = diskOfferingDao.findById(diskOfferingId);
        if (offering != null && !offering.isComputeOnly()) {
            offeringId = offering.getId();
        }
    }
    Map<String, String> details = new HashMap<>();
    if (vmSnapshot != null) {
        details.put(UsageEventVO.DynamicParameters.vmSnapshotId.name(), String.valueOf(vmSnapshot.getId()));
    }
    // save volume's id into templateId field
    UsageEventUtils.publishUsageEvent(// save volume's id into templateId field
    type, // save volume's id into templateId field
    vmSnapshot.getAccountId(), // save volume's id into templateId field
    userVm.getDataCenterId(), // save volume's id into templateId field
    userVm.getId(), // save volume's id into templateId field
    vmSnapshot.getName(), // save volume's id into templateId field
    offeringId, // save volume's id into templateId field
    volume.getId(), volumeTo.getSize(), VMSnapshot.class.getName(), vmSnapshot.getUuid(), details);
}
Also used : VolumeVO(com.cloud.storage.VolumeVO) HashMap(java.util.HashMap) DiskOfferingVO(com.cloud.storage.DiskOfferingVO) VMSnapshot(com.cloud.vm.snapshot.VMSnapshot)

Example 28 with DiskOfferingVO

use of com.cloud.storage.DiskOfferingVO in project cloudstack by apache.

the class ApiResponseHelper method createUsageResponse.

@Override
public UsageRecordResponse createUsageResponse(Usage usageRecord, Map<String, Set<ResourceTagResponse>> resourceTagResponseMap, boolean oldFormat) {
    UsageRecordResponse usageRecResponse = new UsageRecordResponse();
    Account account = ApiDBUtils.findAccountById(usageRecord.getAccountId());
    if (account.getType() == Account.ACCOUNT_TYPE_PROJECT) {
        // find the project
        Project project = ApiDBUtils.findProjectByProjectAccountIdIncludingRemoved(account.getId());
        if (project != null) {
            usageRecResponse.setProjectId(project.getUuid());
            usageRecResponse.setProjectName(project.getName());
        }
    } else {
        usageRecResponse.setAccountId(account.getUuid());
        usageRecResponse.setAccountName(account.getAccountName());
    }
    Domain domain = ApiDBUtils.findDomainById(usageRecord.getDomainId());
    if (domain != null) {
        usageRecResponse.setDomainId(domain.getUuid());
        usageRecResponse.setDomainName(domain.getName());
    }
    if (usageRecord.getZoneId() != null) {
        DataCenter zone = ApiDBUtils.findZoneById(usageRecord.getZoneId());
        if (zone != null) {
            usageRecResponse.setZoneId(zone.getUuid());
        }
    }
    usageRecResponse.setDescription(usageRecord.getDescription());
    usageRecResponse.setUsage(usageRecord.getUsageDisplay());
    usageRecResponse.setUsageType(usageRecord.getUsageType());
    VMInstanceVO vmInstance = null;
    if (usageRecord.getVmInstanceId() != null) {
        vmInstance = _entityMgr.findByIdIncludingRemoved(VMInstanceVO.class, usageRecord.getVmInstanceId());
        if (vmInstance != null) {
            usageRecResponse.setVirtualMachineId(vmInstance.getUuid());
        }
    }
    usageRecResponse.setResourceName(usageRecord.getVmName());
    VMTemplateVO template = null;
    if (usageRecord.getTemplateId() != null) {
        template = ApiDBUtils.findTemplateById(usageRecord.getTemplateId());
        if (template != null) {
            usageRecResponse.setTemplateId(template.getUuid());
        }
    }
    ResourceTag.ResourceObjectType resourceType = null;
    Long resourceId = null;
    if (usageRecord.getUsageType() == UsageTypes.RUNNING_VM || usageRecord.getUsageType() == UsageTypes.ALLOCATED_VM) {
        ServiceOfferingVO svcOffering = _entityMgr.findByIdIncludingRemoved(ServiceOfferingVO.class, usageRecord.getOfferingId().toString());
        // Service Offering Id
        if (svcOffering != null) {
            usageRecResponse.setOfferingId(svcOffering.getUuid());
        }
        // VM Instance ID
        VMInstanceVO vm = null;
        if (usageRecord.getUsageId() != null && usageRecord.getUsageId().equals(usageRecord.getVmInstanceId())) {
            vm = vmInstance;
        } else {
            vm = _entityMgr.findByIdIncludingRemoved(VMInstanceVO.class, usageRecord.getUsageId().toString());
        }
        if (vm != null) {
            resourceType = ResourceTag.ResourceObjectType.UserVm;
            usageRecResponse.setUsageId(vm.getUuid());
            resourceId = vm.getId();
            final GuestOS guestOS = _guestOsDao.findById(vm.getGuestOSId());
            if (guestOS != null) {
                usageRecResponse.setOsTypeId(guestOS.getUuid());
                usageRecResponse.setOsDisplayName(guestOS.getDisplayName());
                final GuestOsCategory guestOsCategory = _guestOsCategoryDao.findById(guestOS.getCategoryId());
                if (guestOsCategory != null) {
                    usageRecResponse.setOsCategoryId(guestOsCategory.getUuid());
                    usageRecResponse.setOsCategoryName(guestOsCategory.getName());
                }
            }
        }
        // Hypervisor Type
        usageRecResponse.setType(usageRecord.getType());
        // Dynamic compute offerings details
        if (usageRecord.getCpuCores() != null) {
            usageRecResponse.setCpuNumber(usageRecord.getCpuCores());
        } else if (svcOffering.getCpu() != null) {
            usageRecResponse.setCpuNumber(svcOffering.getCpu().longValue());
        }
        if (usageRecord.getCpuSpeed() != null) {
            usageRecResponse.setCpuSpeed(usageRecord.getCpuSpeed());
        } else if (svcOffering.getSpeed() != null) {
            usageRecResponse.setCpuSpeed(svcOffering.getSpeed().longValue());
        }
        if (usageRecord.getMemory() != null) {
            usageRecResponse.setMemory(usageRecord.getMemory());
        } else if (svcOffering.getRamSize() != null) {
            usageRecResponse.setMemory(svcOffering.getRamSize().longValue());
        }
        if (!oldFormat) {
            final StringBuilder builder = new StringBuilder();
            if (usageRecord.getUsageType() == UsageTypes.RUNNING_VM) {
                builder.append("Running VM usage ");
            } else if (usageRecord.getUsageType() == UsageTypes.ALLOCATED_VM) {
                builder.append("Allocated VM usage ");
            }
            if (vm != null) {
                builder.append("for ").append(vm.getHostName()).append(" (").append(vm.getInstanceName()).append(") (").append(vm.getUuid()).append(") ");
            }
            if (svcOffering != null) {
                builder.append("using service offering ").append(svcOffering.getName()).append(" (").append(svcOffering.getUuid()).append(") ");
            }
            if (template != null) {
                builder.append("and template ").append(template.getName()).append(" (").append(template.getUuid()).append(")");
            }
            usageRecResponse.setDescription(builder.toString());
        }
    } else if (usageRecord.getUsageType() == UsageTypes.IP_ADDRESS) {
        // IP Address ID
        IPAddressVO ip = _entityMgr.findByIdIncludingRemoved(IPAddressVO.class, usageRecord.getUsageId().toString());
        if (ip != null) {
            Long networkId = ip.getAssociatedWithNetworkId();
            if (networkId == null) {
                networkId = ip.getSourceNetworkId();
            }
            resourceType = ResourceObjectType.PublicIpAddress;
            resourceId = ip.getId();
            usageRecResponse.setUsageId(ip.getUuid());
        }
        // isSourceNAT
        usageRecResponse.setSourceNat((usageRecord.getType().equals("SourceNat")) ? true : false);
        // isSystem
        usageRecResponse.setSystem((usageRecord.getSize() == 1) ? true : false);
    } else if (usageRecord.getUsageType() == UsageTypes.NETWORK_BYTES_SENT || usageRecord.getUsageType() == UsageTypes.NETWORK_BYTES_RECEIVED) {
        // Device Type
        resourceType = ResourceObjectType.UserVm;
        usageRecResponse.setType(usageRecord.getType());
        VMInstanceVO vm = null;
        HostVO host = null;
        if (usageRecord.getType().equals("DomainRouter") || usageRecord.getType().equals("UserVm")) {
            // Domain Router Id
            vm = _entityMgr.findByIdIncludingRemoved(VMInstanceVO.class, usageRecord.getUsageId().toString());
            if (vm != null) {
                resourceId = vm.getId();
                usageRecResponse.setUsageId(vm.getUuid());
            }
        } else {
            // External Device Host Id
            host = _entityMgr.findByIdIncludingRemoved(HostVO.class, usageRecord.getUsageId().toString());
            if (host != null) {
                usageRecResponse.setUsageId(host.getUuid());
            }
        }
        // Network ID
        NetworkVO network = null;
        if ((usageRecord.getNetworkId() != null) && (usageRecord.getNetworkId() != 0)) {
            network = _entityMgr.findByIdIncludingRemoved(NetworkVO.class, usageRecord.getNetworkId().toString());
            if (network != null) {
                resourceType = ResourceObjectType.Network;
                if (network.getTrafficType() == TrafficType.Public) {
                    VirtualRouter router = ApiDBUtils.findDomainRouterById(usageRecord.getUsageId());
                    Vpc vpc = ApiDBUtils.findVpcByIdIncludingRemoved(router.getVpcId());
                    usageRecResponse.setVpcId(vpc.getUuid());
                    resourceId = vpc.getId();
                } else {
                    usageRecResponse.setNetworkId(network.getUuid());
                    resourceId = network.getId();
                }
                usageRecResponse.setResourceName(network.getName());
            }
        }
        if (!oldFormat) {
            final StringBuilder builder = new StringBuilder();
            if (usageRecord.getUsageType() == UsageTypes.NETWORK_BYTES_SENT) {
                builder.append("Bytes sent by network ");
            } else if (usageRecord.getUsageType() == UsageTypes.NETWORK_BYTES_RECEIVED) {
                builder.append("Bytes received by network ");
            }
            if (network != null) {
                if (network.getName() != null) {
                    builder.append(network.getName());
                }
                if (network.getUuid() != null) {
                    builder.append(" (").append(network.getUuid()).append(") ");
                }
                builder.append(" " + toHumanReadableSize(usageRecord.getRawUsage().longValue()) + " ");
            }
            if (vm != null) {
                builder.append("using router ").append(vm.getInstanceName()).append(" (").append(vm.getUuid()).append(")");
            } else if (host != null) {
                builder.append("using host ").append(host.getName()).append(" (").append(host.getUuid()).append(")");
            }
            usageRecResponse.setDescription(builder.toString());
        }
    } else if (usageRecord.getUsageType() == UsageTypes.VM_DISK_IO_READ || usageRecord.getUsageType() == UsageTypes.VM_DISK_IO_WRITE || usageRecord.getUsageType() == UsageTypes.VM_DISK_BYTES_READ || usageRecord.getUsageType() == UsageTypes.VM_DISK_BYTES_WRITE) {
        // Device Type
        usageRecResponse.setType(usageRecord.getType());
        resourceType = ResourceObjectType.Volume;
        // Volume ID
        VolumeVO volume = _entityMgr.findByIdIncludingRemoved(VolumeVO.class, usageRecord.getUsageId().toString());
        if (volume != null) {
            usageRecResponse.setUsageId(volume.getUuid());
            resourceId = volume.getId();
        }
        if (!oldFormat) {
            final StringBuilder builder = new StringBuilder();
            if (usageRecord.getUsageType() == UsageTypes.VM_DISK_IO_READ) {
                builder.append("Disk I/O read requests");
            } else if (usageRecord.getUsageType() == UsageTypes.VM_DISK_IO_WRITE) {
                builder.append("Disk I/O write requests");
            } else if (usageRecord.getUsageType() == UsageTypes.VM_DISK_BYTES_READ) {
                builder.append("Disk I/O read bytes");
            } else if (usageRecord.getUsageType() == UsageTypes.VM_DISK_BYTES_WRITE) {
                builder.append("Disk I/O write bytes");
            }
            if (vmInstance != null) {
                builder.append(" for VM ").append(vmInstance.getHostName()).append(" (").append(vmInstance.getUuid()).append(")");
            }
            if (volume != null) {
                builder.append(" and volume ").append(volume.getName()).append(" (").append(volume.getUuid()).append(")");
            }
            if (usageRecord.getRawUsage() != null) {
                builder.append(" " + toHumanReadableSize(usageRecord.getRawUsage().longValue()));
            }
            usageRecResponse.setDescription(builder.toString());
        }
    } else if (usageRecord.getUsageType() == UsageTypes.VOLUME) {
        // Volume ID
        VolumeVO volume = _entityMgr.findByIdIncludingRemoved(VolumeVO.class, usageRecord.getUsageId().toString());
        resourceType = ResourceObjectType.Volume;
        if (volume != null) {
            usageRecResponse.setUsageId(volume.getUuid());
            resourceId = volume.getId();
        }
        // Volume Size
        usageRecResponse.setSize(usageRecord.getSize());
        // Disk Offering Id
        DiskOfferingVO diskOff = null;
        if (usageRecord.getOfferingId() != null) {
            diskOff = _entityMgr.findByIdIncludingRemoved(DiskOfferingVO.class, usageRecord.getOfferingId().toString());
            usageRecResponse.setOfferingId(diskOff.getUuid());
        }
        if (!oldFormat) {
            final StringBuilder builder = new StringBuilder();
            builder.append("Volume usage ");
            if (volume != null) {
                builder.append("for ").append(volume.getName()).append(" (").append(volume.getUuid()).append(")");
            }
            if (diskOff != null) {
                builder.append(" with disk offering ").append(diskOff.getName()).append(" (").append(diskOff.getUuid()).append(")");
            }
            if (template != null) {
                builder.append(" and template ").append(template.getName()).append(" (").append(template.getUuid()).append(")");
            }
            if (usageRecord.getSize() != null) {
                builder.append(" and size " + toHumanReadableSize(usageRecord.getSize()));
            }
            usageRecResponse.setDescription(builder.toString());
        }
    } else if (usageRecord.getUsageType() == UsageTypes.TEMPLATE || usageRecord.getUsageType() == UsageTypes.ISO) {
        // Template/ISO ID
        VMTemplateVO tmpl = _entityMgr.findByIdIncludingRemoved(VMTemplateVO.class, usageRecord.getUsageId().toString());
        if (tmpl != null) {
            usageRecResponse.setUsageId(tmpl.getUuid());
            resourceId = tmpl.getId();
        }
        // Template/ISO Size
        usageRecResponse.setSize(usageRecord.getSize());
        if (usageRecord.getUsageType() == UsageTypes.ISO) {
            usageRecResponse.setVirtualSize(usageRecord.getSize());
            resourceType = ResourceObjectType.ISO;
        } else {
            usageRecResponse.setVirtualSize(usageRecord.getVirtualSize());
            resourceType = ResourceObjectType.Template;
        }
        if (!oldFormat) {
            final StringBuilder builder = new StringBuilder();
            if (usageRecord.getUsageType() == UsageTypes.TEMPLATE) {
                builder.append("Template usage");
            } else if (usageRecord.getUsageType() == UsageTypes.ISO) {
                builder.append("ISO usage");
            }
            if (tmpl != null) {
                builder.append(" for ").append(tmpl.getName()).append(" (").append(tmpl.getUuid()).append(") ").append("with size ").append(toHumanReadableSize(usageRecord.getSize())).append(" and virtual size ").append(toHumanReadableSize(usageRecord.getVirtualSize()));
            }
            usageRecResponse.setDescription(builder.toString());
        }
    } else if (usageRecord.getUsageType() == UsageTypes.SNAPSHOT) {
        // Snapshot ID
        SnapshotVO snap = _entityMgr.findByIdIncludingRemoved(SnapshotVO.class, usageRecord.getUsageId().toString());
        resourceType = ResourceObjectType.Snapshot;
        if (snap != null) {
            usageRecResponse.setUsageId(snap.getUuid());
            resourceId = snap.getId();
        }
        // Snapshot Size
        usageRecResponse.setSize(usageRecord.getSize());
        if (!oldFormat) {
            final StringBuilder builder = new StringBuilder();
            builder.append("Snapshot usage ");
            if (snap != null) {
                builder.append("for ").append(snap.getName()).append(" (").append(snap.getUuid()).append(") ").append("with size ").append(toHumanReadableSize(usageRecord.getSize()));
            }
            usageRecResponse.setDescription(builder.toString());
        }
    } else if (usageRecord.getUsageType() == UsageTypes.LOAD_BALANCER_POLICY) {
        // Load Balancer Policy ID
        LoadBalancerVO lb = _entityMgr.findByIdIncludingRemoved(LoadBalancerVO.class, usageRecord.getUsageId().toString());
        resourceType = ResourceObjectType.LoadBalancer;
        if (lb != null) {
            usageRecResponse.setUsageId(lb.getUuid());
            resourceId = lb.getId();
        }
        if (!oldFormat) {
            final StringBuilder builder = new StringBuilder();
            builder.append("Loadbalancer policy usage ");
            if (lb != null) {
                builder.append(lb.getName()).append(" (").append(lb.getUuid()).append(")");
            }
            usageRecResponse.setDescription(builder.toString());
        }
    } else if (usageRecord.getUsageType() == UsageTypes.PORT_FORWARDING_RULE) {
        // Port Forwarding Rule ID
        PortForwardingRuleVO pf = _entityMgr.findByIdIncludingRemoved(PortForwardingRuleVO.class, usageRecord.getUsageId().toString());
        resourceType = ResourceObjectType.PortForwardingRule;
        if (pf != null) {
            usageRecResponse.setUsageId(pf.getUuid());
            resourceId = pf.getId();
        }
        if (!oldFormat) {
            final StringBuilder builder = new StringBuilder();
            builder.append("Port forwarding rule usage");
            if (pf != null) {
                builder.append(" (").append(pf.getUuid()).append(")");
            }
            usageRecResponse.setDescription(builder.toString());
        }
    } else if (usageRecord.getUsageType() == UsageTypes.NETWORK_OFFERING) {
        // Network Offering Id
        NetworkOfferingVO netOff = _entityMgr.findByIdIncludingRemoved(NetworkOfferingVO.class, usageRecord.getOfferingId().toString());
        usageRecResponse.setOfferingId(netOff.getUuid());
        // is Default
        usageRecResponse.setDefault(usageRecord.getUsageId() == 1);
        if (!oldFormat) {
            final StringBuilder builder = new StringBuilder();
            builder.append("Network offering ");
            if (netOff != null) {
                builder.append(netOff.getName()).append(" (").append(netOff.getUuid()).append(") usage ");
            }
            if (vmInstance != null) {
                builder.append("for VM ").append(vmInstance.getHostName()).append(" (").append(vmInstance.getUuid()).append(") ");
            }
            usageRecResponse.setDescription(builder.toString());
        }
    } else if (usageRecord.getUsageType() == UsageTypes.VPN_USERS) {
        // VPN User ID
        VpnUserVO vpnUser = _entityMgr.findByIdIncludingRemoved(VpnUserVO.class, usageRecord.getUsageId().toString());
        if (vpnUser != null) {
            usageRecResponse.setUsageId(vpnUser.getUuid());
        }
        if (!oldFormat) {
            final StringBuilder builder = new StringBuilder();
            builder.append("VPN usage ");
            if (vpnUser != null) {
                builder.append("for user ").append(vpnUser.getUsername()).append(" (").append(vpnUser.getUuid()).append(")");
            }
            usageRecResponse.setDescription(builder.toString());
        }
    } else if (usageRecord.getUsageType() == UsageTypes.SECURITY_GROUP) {
        // Security Group Id
        SecurityGroupVO sg = _entityMgr.findByIdIncludingRemoved(SecurityGroupVO.class, usageRecord.getUsageId().toString());
        resourceType = ResourceObjectType.SecurityGroup;
        if (sg != null) {
            resourceId = sg.getId();
            usageRecResponse.setUsageId(sg.getUuid());
        }
        if (!oldFormat) {
            final StringBuilder builder = new StringBuilder();
            builder.append("Security group");
            if (sg != null) {
                builder.append(" ").append(sg.getName()).append(" (").append(sg.getUuid()).append(") usage");
            }
            if (vmInstance != null) {
                builder.append(" for VM ").append(vmInstance.getHostName()).append(" (").append(vmInstance.getUuid()).append(")");
            }
            usageRecResponse.setDescription(builder.toString());
        }
    } else if (usageRecord.getUsageType() == UsageTypes.BACKUP) {
        resourceType = ResourceObjectType.Backup;
        final StringBuilder builder = new StringBuilder();
        builder.append("Backup usage of size ").append(usageRecord.getUsageDisplay());
        if (vmInstance != null) {
            resourceId = vmInstance.getId();
            usageRecResponse.setResourceName(vmInstance.getInstanceName());
            usageRecResponse.setUsageId(vmInstance.getUuid());
            builder.append(" for VM ").append(vmInstance.getHostName()).append(" (").append(vmInstance.getUuid()).append(")");
            final BackupOffering backupOffering = backupOfferingDao.findByIdIncludingRemoved(usageRecord.getOfferingId());
            if (backupOffering != null) {
                builder.append(" and backup offering ").append(backupOffering.getName()).append(" (").append(backupOffering.getUuid()).append(", user ad-hoc/scheduled backup allowed: ").append(backupOffering.isUserDrivenBackupAllowed()).append(")");
            }
        }
        usageRecResponse.setDescription(builder.toString());
    } else if (usageRecord.getUsageType() == UsageTypes.VM_SNAPSHOT) {
        resourceType = ResourceObjectType.VMSnapshot;
        VMSnapshotVO vmSnapshotVO = null;
        if (usageRecord.getUsageId() != null) {
            vmSnapshotVO = vmSnapshotDao.findByIdIncludingRemoved(usageRecord.getUsageId());
            if (vmSnapshotVO != null) {
                resourceId = vmSnapshotVO.getId();
                usageRecResponse.setResourceName(vmSnapshotVO.getDisplayName());
                usageRecResponse.setUsageId(vmSnapshotVO.getUuid());
            }
        }
        usageRecResponse.setSize(usageRecord.getSize());
        if (usageRecord.getVirtualSize() != null) {
            usageRecResponse.setVirtualSize(usageRecord.getVirtualSize());
        }
        if (usageRecord.getOfferingId() != null) {
            usageRecResponse.setOfferingId(usageRecord.getOfferingId().toString());
        }
        if (!oldFormat) {
            VolumeVO volume = null;
            if (vmSnapshotVO == null && usageRecord.getUsageId() != null) {
                volume = _entityMgr.findByIdIncludingRemoved(VolumeVO.class, usageRecord.getUsageId().toString());
            }
            DiskOfferingVO diskOff = null;
            if (usageRecord.getOfferingId() != null) {
                diskOff = _entityMgr.findByIdIncludingRemoved(DiskOfferingVO.class, usageRecord.getOfferingId());
            }
            final StringBuilder builder = new StringBuilder();
            builder.append("VMSnapshot usage");
            if (vmSnapshotVO != null) {
                builder.append(" Id: ").append(vmSnapshotVO.getUuid());
            }
            if (vmInstance != null) {
                builder.append(" for VM ").append(vmInstance.getHostName()).append(" (").append(vmInstance.getUuid()).append(")");
            }
            if (volume != null) {
                builder.append(" with volume ").append(volume.getName()).append(" (").append(volume.getUuid()).append(")");
            }
            if (diskOff != null) {
                builder.append(" using disk offering ").append(diskOff.getName()).append(" (").append(diskOff.getUuid()).append(")");
            }
            if (usageRecord.getSize() != null) {
                builder.append(" and size " + toHumanReadableSize(usageRecord.getSize()));
            }
            usageRecResponse.setDescription(builder.toString());
        }
    } else if (usageRecord.getUsageType() == UsageTypes.VOLUME_SECONDARY) {
        VolumeVO volume = _entityMgr.findByIdIncludingRemoved(VolumeVO.class, usageRecord.getUsageId().toString());
        if (!oldFormat) {
            final StringBuilder builder = new StringBuilder();
            builder.append("Volume on secondary storage usage");
            if (volume != null) {
                builder.append(" for ").append(volume.getName()).append(" (").append(volume.getUuid()).append(") ").append("with size ").append(toHumanReadableSize(usageRecord.getSize()));
            }
            usageRecResponse.setDescription(builder.toString());
        }
    } else if (usageRecord.getUsageType() == UsageTypes.VM_SNAPSHOT_ON_PRIMARY) {
        resourceType = ResourceObjectType.VMSnapshot;
        VMSnapshotVO vmSnapshotVO = null;
        if (usageRecord.getUsageId() != null) {
            vmSnapshotVO = vmSnapshotDao.findByIdIncludingRemoved(usageRecord.getUsageId());
            if (vmSnapshotVO != null) {
                resourceId = vmSnapshotVO.getId();
                usageRecResponse.setResourceName(vmSnapshotVO.getDisplayName());
                usageRecResponse.setUsageId(vmSnapshotVO.getUuid());
            }
        }
        usageRecResponse.setSize(usageRecord.getVirtualSize());
        if (!oldFormat) {
            final StringBuilder builder = new StringBuilder();
            builder.append("VMSnapshot on primary storage usage");
            if (vmSnapshotVO != null) {
                builder.append(" Id: ").append(vmSnapshotVO.getUuid());
            }
            if (vmInstance != null) {
                builder.append(" for VM ").append(vmInstance.getHostName()).append(" (").append(vmInstance.getUuid()).append(") ").append("with size ").append(toHumanReadableSize(usageRecord.getVirtualSize()));
            }
            usageRecResponse.setDescription(builder.toString());
        }
    }
    if (resourceTagResponseMap != null && resourceTagResponseMap.get(resourceId + ":" + resourceType) != null) {
        usageRecResponse.setTags(resourceTagResponseMap.get(resourceId + ":" + resourceType));
    }
    if (usageRecord.getRawUsage() != null) {
        DecimalFormat decimalFormat = new DecimalFormat("###########.######");
        usageRecResponse.setRawUsage(decimalFormat.format(usageRecord.getRawUsage()));
    }
    if (usageRecord.getStartDate() != null) {
        usageRecResponse.setStartDate(getDateStringInternal(usageRecord.getStartDate()));
    }
    if (usageRecord.getEndDate() != null) {
        usageRecResponse.setEndDate(getDateStringInternal(usageRecord.getEndDate()));
    }
    return usageRecResponse;
}
Also used : UsageRecordResponse(org.apache.cloudstack.api.response.UsageRecordResponse) ProjectAccount(com.cloud.projects.ProjectAccount) UserAccount(com.cloud.user.UserAccount) Account(com.cloud.user.Account) GuestOsCategory(com.cloud.storage.GuestOsCategory) VpnUserVO(com.cloud.network.VpnUserVO) DecimalFormat(java.text.DecimalFormat) VMTemplateVO(com.cloud.storage.VMTemplateVO) Vpc(com.cloud.network.vpc.Vpc) LoadBalancerVO(com.cloud.network.dao.LoadBalancerVO) ServiceOfferingVO(com.cloud.service.ServiceOfferingVO) VolumeVO(com.cloud.storage.VolumeVO) DiskOfferingVO(com.cloud.storage.DiskOfferingVO) GuestOS(com.cloud.storage.GuestOS) BackupOffering(org.apache.cloudstack.backup.BackupOffering) PhysicalNetworkVO(com.cloud.network.dao.PhysicalNetworkVO) NetworkVO(com.cloud.network.dao.NetworkVO) PortForwardingRuleVO(com.cloud.network.rules.PortForwardingRuleVO) SecurityGroupVO(com.cloud.network.security.SecurityGroupVO) VMInstanceVO(com.cloud.vm.VMInstanceVO) ResourceObjectType(com.cloud.server.ResourceTag.ResourceObjectType) HostVO(com.cloud.host.HostVO) VirtualRouter(com.cloud.network.router.VirtualRouter) Project(com.cloud.projects.Project) VMSnapshotVO(com.cloud.vm.snapshot.VMSnapshotVO) DataCenter(com.cloud.dc.DataCenter) ResourceTag(com.cloud.server.ResourceTag) VMSnapshotVO(com.cloud.vm.snapshot.VMSnapshotVO) SnapshotVO(com.cloud.storage.SnapshotVO) NetworkOfferingVO(com.cloud.offerings.NetworkOfferingVO) IPAddressVO(com.cloud.network.dao.IPAddressVO) Domain(com.cloud.domain.Domain)

Example 29 with DiskOfferingVO

use of com.cloud.storage.DiskOfferingVO in project cloudstack by apache.

the class ManagementServerImpl method findAllSuitableStoragePoolsForVm.

/**
 *  Looks for all suitable storage pools to allocate the given volume.
 *  We take into account the service offering of the VM and volume to find suitable storage pools. It is also excluded from the search the current storage pool used by the volume.
 *  We use {@link StoragePoolAllocator} to look for possible storage pools to allocate the given volume. We will look for possible local storage poosl even if the volume is using a shared storage disk offering.
 *
 *  Side note: the idea behind this method is to provide power for administrators of manually overriding deployments defined by CloudStack.
 */
private List<StoragePool> findAllSuitableStoragePoolsForVm(final VolumeVO volume, Long diskOfferingId, Long newSize, Long newMinIops, Long newMaxIops, VMInstanceVO vm, Host vmHost, ExcludeList avoid, Cluster srcCluster, HypervisorType hypervisorType) {
    List<StoragePool> suitablePools = new ArrayList<>();
    Long clusterId = null;
    Long podId = null;
    if (srcCluster != null) {
        clusterId = srcCluster.getId();
        podId = srcCluster.getPodId();
    }
    DataCenterDeployment plan = new DataCenterDeployment(volume.getDataCenterId(), podId, clusterId, null, null, null, null);
    VirtualMachineProfile profile = new VirtualMachineProfileImpl(vm);
    // OfflineVmwareMigration: vm might be null here; deal!
    DiskOfferingVO diskOffering = _diskOfferingDao.findById(diskOfferingId);
    DiskProfile diskProfile = new DiskProfile(volume, diskOffering, hypervisorType);
    if (!Objects.equals(volume.getDiskOfferingId(), diskOfferingId)) {
        diskProfile.setSize(newSize);
        diskProfile.setMinIops(newMinIops);
        diskProfile.setMaxIops(newMaxIops);
    }
    for (StoragePoolAllocator allocator : _storagePoolAllocators) {
        List<StoragePool> pools = allocator.allocateToPool(diskProfile, profile, plan, avoid, StoragePoolAllocator.RETURN_UPTO_ALL, true);
        if (CollectionUtils.isEmpty(pools)) {
            continue;
        }
        for (StoragePool pool : pools) {
            boolean isLocalPoolSameHostAsVmHost = pool.isLocal() && (vmHost == null || StringUtils.equals(vmHost.getPrivateIpAddress(), pool.getHostAddress()));
            if (isLocalPoolSameHostAsVmHost || pool.isShared()) {
                suitablePools.add(pool);
            }
        }
    }
    return suitablePools;
}
Also used : StoragePool(com.cloud.storage.StoragePool) DataCenterDeployment(com.cloud.deploy.DataCenterDeployment) VirtualMachineProfileImpl(com.cloud.vm.VirtualMachineProfileImpl) DiskOfferingVO(com.cloud.storage.DiskOfferingVO) ArrayList(java.util.ArrayList) VirtualMachineProfile(com.cloud.vm.VirtualMachineProfile) DiskProfile(com.cloud.vm.DiskProfile) StoragePoolAllocator(org.apache.cloudstack.engine.subsystem.api.storage.StoragePoolAllocator)

Example 30 with DiskOfferingVO

use of com.cloud.storage.DiskOfferingVO in project cloudstack by apache.

the class ManagementServerImpl method findAllSuitableStoragePoolsForDetachedVolume.

private List<StoragePool> findAllSuitableStoragePoolsForDetachedVolume(Volume volume, Long diskOfferingId, List<? extends StoragePool> allPools) {
    List<StoragePool> suitablePools = new ArrayList<>();
    if (CollectionUtils.isEmpty(allPools)) {
        return suitablePools;
    }
    DiskOfferingVO diskOffering = _diskOfferingDao.findById(diskOfferingId);
    List<String> tags = new ArrayList<>();
    String[] tagsArray = diskOffering.getTagsArray();
    if (tagsArray != null && tagsArray.length > 0) {
        tags = Arrays.asList(tagsArray);
    }
    Long[] poolIds = allPools.stream().map(StoragePool::getId).toArray(Long[]::new);
    List<StoragePoolJoinVO> pools = _poolJoinDao.searchByIds(poolIds);
    for (StoragePoolJoinVO storagePool : pools) {
        if (StoragePoolStatus.Up.equals(storagePool.getStatus()) && (CollectionUtils.isEmpty(tags) || tags.contains(storagePool.getTag()))) {
            Optional<? extends StoragePool> match = allPools.stream().filter(x -> x.getId() == storagePool.getId()).findFirst();
            match.ifPresent(suitablePools::add);
        }
    }
    return suitablePools;
}
Also used : DeleteVMGroupCmd(org.apache.cloudstack.api.command.user.vmgroup.DeleteVMGroupCmd) NetworkModel(com.cloud.network.NetworkModel) ListPodsByCmd(org.apache.cloudstack.api.command.admin.pod.ListPodsByCmd) HostDao(com.cloud.host.dao.HostDao) ListPhysicalNetworksCmd(org.apache.cloudstack.api.command.admin.network.ListPhysicalNetworksCmd) ListTemplatesCmd(org.apache.cloudstack.api.command.user.template.ListTemplatesCmd) SecretKeySpec(javax.crypto.spec.SecretKeySpec) CreateSSHKeyPairCmd(org.apache.cloudstack.api.command.user.ssh.CreateSSHKeyPairCmd) PodVlanMapDao(com.cloud.dc.dao.PodVlanMapDao) ListProjectAccountsCmd(org.apache.cloudstack.api.command.user.account.ListProjectAccountsCmd) DeleteEventsCmd(org.apache.cloudstack.api.command.user.event.DeleteEventsCmd) DeleteLoadBalancerRuleCmd(org.apache.cloudstack.api.command.user.loadbalancer.DeleteLoadBalancerRuleCmd) StringUtils(org.apache.commons.lang3.StringUtils) Base64(org.apache.commons.codec.binary.Base64) ReleaseDedicatedGuestVlanRangeCmd(org.apache.cloudstack.api.command.admin.network.ReleaseDedicatedGuestVlanRangeCmd) UpdateEgressFirewallRuleCmd(org.apache.cloudstack.api.command.user.firewall.UpdateEgressFirewallRuleCmd) ListVPCOfferingsCmd(org.apache.cloudstack.api.command.user.vpc.ListVPCOfferingsCmd) AddImageStoreCmd(org.apache.cloudstack.api.command.admin.storage.AddImageStoreCmd) MigrateSystemVMCmd(org.apache.cloudstack.api.command.admin.systemvm.MigrateSystemVMCmd) ListSslCertsCmd(org.apache.cloudstack.api.command.user.loadbalancer.ListSslCertsCmd) CreateVPCCmdByAdmin(org.apache.cloudstack.api.command.admin.vpc.CreateVPCCmdByAdmin) CreateUserCmd(org.apache.cloudstack.api.command.admin.user.CreateUserCmd) UpdateDiskOfferingCmd(org.apache.cloudstack.api.command.admin.offering.UpdateDiskOfferingCmd) ListHypervisorCapabilitiesCmd(org.apache.cloudstack.api.command.admin.config.ListHypervisorCapabilitiesCmd) GuestOSCategoryVO(com.cloud.storage.GuestOSCategoryVO) ListProjectInvitationsCmd(org.apache.cloudstack.api.command.user.project.ListProjectInvitationsCmd) CreateManagementNetworkIpRangeCmd(org.apache.cloudstack.api.command.admin.network.CreateManagementNetworkIpRangeCmd) ListNetworkACLListsCmd(org.apache.cloudstack.api.command.user.network.ListNetworkACLListsCmd) UpdateVolumeCmd(org.apache.cloudstack.api.command.user.volume.UpdateVolumeCmd) VolumeOrchestrationService(org.apache.cloudstack.engine.orchestration.service.VolumeOrchestrationService) UpdateGuestOsMappingCmd(org.apache.cloudstack.api.command.admin.guest.UpdateGuestOsMappingCmd) UpdateLBHealthCheckPolicyCmd(org.apache.cloudstack.api.command.user.loadbalancer.UpdateLBHealthCheckPolicyCmd) Network(com.cloud.network.Network) ReleaseHostReservationCmd(org.apache.cloudstack.api.command.admin.host.ReleaseHostReservationCmd) ListInternalLoadBalancerElementsCmd(org.apache.cloudstack.api.command.admin.internallb.ListInternalLoadBalancerElementsCmd) UpgradeRouterCmd(org.apache.cloudstack.api.command.admin.router.UpgradeRouterCmd) ApiDBUtils(com.cloud.api.ApiDBUtils) RemoveCertFromLoadBalancerCmd(org.apache.cloudstack.api.command.user.loadbalancer.RemoveCertFromLoadBalancerCmd) UpgradeVMCmdByAdmin(org.apache.cloudstack.api.command.admin.vm.UpgradeVMCmdByAdmin) QueryService(org.apache.cloudstack.query.QueryService) MigrateVPCCmd(org.apache.cloudstack.api.command.admin.network.MigrateVPCCmd) ListInternalLBVMsCmd(org.apache.cloudstack.api.command.admin.internallb.ListInternalLBVMsCmd) ExtractVolumeCmd(org.apache.cloudstack.api.command.user.volume.ExtractVolumeCmd) MarkDefaultZoneForAccountCmd(org.apache.cloudstack.api.command.admin.zone.MarkDefaultZoneForAccountCmd) Project(com.cloud.projects.Project) DeleteNetworkDeviceCmd(org.apache.cloudstack.api.command.admin.network.DeleteNetworkDeviceCmd) UpdateAutoScaleVmGroupCmd(org.apache.cloudstack.api.command.user.autoscale.UpdateAutoScaleVmGroupCmd) UpdateVMCmd(org.apache.cloudstack.api.command.user.vm.UpdateVMCmd) VolumeApiServiceImpl(com.cloud.storage.VolumeApiServiceImpl) ConfigureVirtualRouterElementCmd(org.apache.cloudstack.api.command.admin.router.ConfigureVirtualRouterElementCmd) ReplaceNetworkACLListCmd(org.apache.cloudstack.api.command.user.network.ReplaceNetworkACLListCmd) DisassociateIPAddrCmd(org.apache.cloudstack.api.command.user.address.DisassociateIPAddrCmd) CancelMaintenanceCmd(org.apache.cloudstack.api.command.admin.host.CancelMaintenanceCmd) ManagerBase(com.cloud.utils.component.ManagerBase) DeleteDomainCmd(org.apache.cloudstack.api.command.admin.domain.DeleteDomainCmd) SummedCapacity(com.cloud.capacity.dao.CapacityDaoImpl.SummedCapacity) CreatePhysicalNetworkCmd(org.apache.cloudstack.api.command.admin.network.CreatePhysicalNetworkCmd) DisableOutOfBandManagementForHostCmd(org.apache.cloudstack.api.command.admin.outofbandmanagement.DisableOutOfBandManagementForHostCmd) DomainVlanMapDao(com.cloud.dc.dao.DomainVlanMapDao) DeleteServiceOfferingCmd(org.apache.cloudstack.api.command.admin.offering.DeleteServiceOfferingCmd) ListPublicIpAddressesCmd(org.apache.cloudstack.api.command.user.address.ListPublicIpAddressesCmd) ResourceUnavailableException(com.cloud.exception.ResourceUnavailableException) AddGuestOsMappingCmd(org.apache.cloudstack.api.command.admin.guest.AddGuestOsMappingCmd) StopRouterCmd(org.apache.cloudstack.api.command.admin.router.StopRouterCmd) PrepareTemplateCmd(org.apache.cloudstack.api.command.admin.template.PrepareTemplateCmd) DeleteVlanIpRangeCmd(org.apache.cloudstack.api.command.admin.vlan.DeleteVlanIpRangeCmd) ClusterDao(com.cloud.dc.dao.ClusterDao) Calendar(java.util.Calendar) ArchiveAlertsCmd(org.apache.cloudstack.api.command.admin.resource.ArchiveAlertsCmd) VlanVO(com.cloud.dc.VlanVO) RemoveGuestOsMappingCmd(org.apache.cloudstack.api.command.admin.guest.RemoveGuestOsMappingCmd) DestroyVolumeCmdByAdmin(org.apache.cloudstack.api.command.admin.volume.DestroyVolumeCmdByAdmin) User(com.cloud.user.User) ScheduledExecutorService(java.util.concurrent.ScheduledExecutorService) ListPortForwardingRulesCmd(org.apache.cloudstack.api.command.user.firewall.ListPortForwardingRulesCmd) AssignCertToLoadBalancerCmd(org.apache.cloudstack.api.command.user.loadbalancer.AssignCertToLoadBalancerCmd) DeleteAlertsCmd(org.apache.cloudstack.api.command.admin.resource.DeleteAlertsCmd) AffinityGroupVMMapDao(org.apache.cloudstack.affinity.dao.AffinityGroupVMMapDao) CreateAccountCmd(org.apache.cloudstack.api.command.admin.account.CreateAccountCmd) ListAccountsCmdByAdmin(org.apache.cloudstack.api.command.admin.account.ListAccountsCmdByAdmin) ListZonesCmd(org.apache.cloudstack.api.command.user.zone.ListZonesCmd) UpdateRemoteAccessVpnCmd(org.apache.cloudstack.api.command.user.vpn.UpdateRemoteAccessVpnCmd) CreateCounterCmd(org.apache.cloudstack.api.command.admin.autoscale.CreateCounterCmd) UpdateAutoScaleVmProfileCmd(org.apache.cloudstack.api.command.user.autoscale.UpdateAutoScaleVmProfileCmd) DeleteLBStickinessPolicyCmd(org.apache.cloudstack.api.command.user.loadbalancer.DeleteLBStickinessPolicyCmd) HighAvailabilityManager(com.cloud.ha.HighAvailabilityManager) DeleteResourceIconCmd(org.apache.cloudstack.api.command.admin.resource.icon.DeleteResourceIconCmd) ListLBHealthCheckPoliciesCmd(org.apache.cloudstack.api.command.user.loadbalancer.ListLBHealthCheckPoliciesCmd) ListNetworkACLsCmd(org.apache.cloudstack.api.command.user.network.ListNetworkACLsCmd) CreateTagsCmd(org.apache.cloudstack.api.command.user.tag.CreateTagsCmd) RemoveNicFromVMCmdByAdmin(org.apache.cloudstack.api.command.admin.vm.RemoveNicFromVMCmdByAdmin) UserVmDao(com.cloud.vm.dao.UserVmDao) UpdatePodManagementNetworkIpRangeCmd(org.apache.cloudstack.api.command.admin.network.UpdatePodManagementNetworkIpRangeCmd) ListFirewallRulesCmd(org.apache.cloudstack.api.command.user.firewall.ListFirewallRulesCmd) DestroyVMCmd(org.apache.cloudstack.api.command.user.vm.DestroyVMCmd) GetVncPortCommand(com.cloud.agent.api.GetVncPortCommand) ExpungeVMCmd(org.apache.cloudstack.api.command.admin.vm.ExpungeVMCmd) GetUploadParamsForTemplateCmd(org.apache.cloudstack.api.command.user.template.GetUploadParamsForTemplateCmd) DB(com.cloud.utils.db.DB) ListSystemVMsCmd(org.apache.cloudstack.api.command.admin.systemvm.ListSystemVMsCmd) UpdateVpnGatewayCmd(org.apache.cloudstack.api.command.user.vpn.UpdateVpnGatewayCmd) ClusterManager(com.cloud.cluster.ClusterManager) DetachVolumeCmdByAdmin(org.apache.cloudstack.api.command.admin.volume.DetachVolumeCmdByAdmin) ListSecurityGroupsCmd(org.apache.cloudstack.api.command.user.securitygroup.ListSecurityGroupsCmd) UpdateClusterCmd(org.apache.cloudstack.api.command.admin.cluster.UpdateClusterCmd) UpdateTemplateCmd(org.apache.cloudstack.api.command.user.template.UpdateTemplateCmd) ListClustersCmd(org.apache.cloudstack.api.command.admin.cluster.ListClustersCmd) CreateVPCOfferingCmd(org.apache.cloudstack.api.command.admin.vpc.CreateVPCOfferingCmd) DeleteAutoScaleVmGroupCmd(org.apache.cloudstack.api.command.user.autoscale.DeleteAutoScaleVmGroupCmd) DeclareHostAsDegradedCmd(org.apache.cloudstack.api.command.admin.host.DeclareHostAsDegradedCmd) ConsoleProxyDao(com.cloud.vm.dao.ConsoleProxyDao) StartVMCmdByAdmin(org.apache.cloudstack.api.command.admin.vm.StartVMCmdByAdmin) ListTemplatePermissionsCmd(org.apache.cloudstack.api.command.user.template.ListTemplatePermissionsCmd) ConfigurationDao(org.apache.cloudstack.framework.config.dao.ConfigurationDao) AssociateIPAddrCmdByAdmin(org.apache.cloudstack.api.command.admin.address.AssociateIPAddrCmdByAdmin) CreateStaticRouteCmd(org.apache.cloudstack.api.command.user.vpc.CreateStaticRouteCmd) GuestOSHypervisor(com.cloud.storage.GuestOSHypervisor) ArchiveEventsCmd(org.apache.cloudstack.api.command.user.event.ArchiveEventsCmd) ListVpnCustomerGatewaysCmd(org.apache.cloudstack.api.command.user.vpn.ListVpnCustomerGatewaysCmd) UpdateResourceLimitCmd(org.apache.cloudstack.api.command.user.resource.UpdateResourceLimitCmd) UpdateVMGroupCmd(org.apache.cloudstack.api.command.user.vmgroup.UpdateVMGroupCmd) ReleasePodIpCmdByAdmin(org.apache.cloudstack.api.command.admin.address.ReleasePodIpCmdByAdmin) ListOvsElementsCmd(org.apache.cloudstack.api.command.admin.router.ListOvsElementsCmd) UpdateLoadBalancerRuleCmd(org.apache.cloudstack.api.command.user.loadbalancer.UpdateLoadBalancerRuleCmd) ListResourceIconCmd(org.apache.cloudstack.api.command.admin.resource.icon.ListResourceIconCmd) RemoveFromLoadBalancerRuleCmd(org.apache.cloudstack.api.command.user.loadbalancer.RemoveFromLoadBalancerRuleCmd) CreateIpForwardingRuleCmd(org.apache.cloudstack.api.command.user.nat.CreateIpForwardingRuleCmd) DestroyVolumeCmd(org.apache.cloudstack.api.command.user.volume.DestroyVolumeCmd) Cluster(com.cloud.org.Cluster) DeletePortableIpRangeCmd(org.apache.cloudstack.api.command.admin.region.DeletePortableIpRangeCmd) ConsoleProxyVO(com.cloud.vm.ConsoleProxyVO) GetCloudIdentifierCmd(org.apache.cloudstack.api.command.user.resource.GetCloudIdentifierCmd) DeleteTemplateCmd(org.apache.cloudstack.api.command.user.template.DeleteTemplateCmd) RegisterCmd(org.apache.cloudstack.api.command.admin.user.RegisterCmd) DeleteNetworkACLListCmd(org.apache.cloudstack.api.command.user.network.DeleteNetworkACLListCmd) ResourceObjectType(com.cloud.server.ResourceTag.ResourceObjectType) StartRollingMaintenanceCmd(org.apache.cloudstack.api.command.admin.resource.StartRollingMaintenanceCmd) DeploymentPlanningManager(com.cloud.deploy.DeploymentPlanningManager) ChangeOutOfBandManagementPasswordCmd(org.apache.cloudstack.api.command.admin.outofbandmanagement.ChangeOutOfBandManagementPasswordCmd) ListVlanIpRangesCmd(org.apache.cloudstack.api.command.admin.vlan.ListVlanIpRangesCmd) ListUsageTypesCmd(org.apache.cloudstack.api.command.admin.usage.ListUsageTypesCmd) UserVO(com.cloud.user.UserVO) CreateNetworkACLListCmd(org.apache.cloudstack.api.command.user.network.CreateNetworkACLListCmd) AddImageStoreS3CMD(org.apache.cloudstack.api.command.admin.storage.AddImageStoreS3CMD) AssignToLoadBalancerRuleCmd(org.apache.cloudstack.api.command.user.loadbalancer.AssignToLoadBalancerRuleCmd) IpAddress(com.cloud.network.IpAddress) ListIsosCmdByAdmin(org.apache.cloudstack.api.command.admin.iso.ListIsosCmdByAdmin) Pair(com.cloud.utils.Pair) Collectors(java.util.stream.Collectors) ListTrafficMonitorsCmd(org.apache.cloudstack.api.command.admin.usage.ListTrafficMonitorsCmd) Alert(com.cloud.alert.Alert) Objects(java.util.Objects) AttachIsoCmd(org.apache.cloudstack.api.command.user.iso.AttachIsoCmd) VolumeDataStoreVO(org.apache.cloudstack.storage.datastore.db.VolumeDataStoreVO) UpdateVMCmdByAdmin(org.apache.cloudstack.api.command.admin.vm.UpdateVMCmdByAdmin) ListNetworkIsolationMethodsCmd(org.apache.cloudstack.api.command.admin.network.ListNetworkIsolationMethodsCmd) UpdateSecurityGroupCmd(org.apache.cloudstack.api.command.user.securitygroup.UpdateSecurityGroupCmd) ImageStoreVO(org.apache.cloudstack.storage.datastore.db.ImageStoreVO) EnableOutOfBandManagementForClusterCmd(org.apache.cloudstack.api.command.admin.outofbandmanagement.EnableOutOfBandManagementForClusterCmd) VirtualMachineProfile(com.cloud.vm.VirtualMachineProfile) ListNetworkDeviceCmd(org.apache.cloudstack.api.command.admin.network.ListNetworkDeviceCmd) StoragePoolJoinDao(com.cloud.api.query.dao.StoragePoolJoinDao) DiskOfferingDao(com.cloud.storage.dao.DiskOfferingDao) ListPublicIpAddressesCmdByAdmin(org.apache.cloudstack.api.command.admin.address.ListPublicIpAddressesCmdByAdmin) RegisterTemplateCmd(org.apache.cloudstack.api.command.user.template.RegisterTemplateCmd) GetRouterHealthCheckResultsCmd(org.apache.cloudstack.api.command.admin.router.GetRouterHealthCheckResultsCmd) ScaleVMCmdByAdmin(org.apache.cloudstack.api.command.admin.vm.ScaleVMCmdByAdmin) CreateNetworkCmd(org.apache.cloudstack.api.command.user.network.CreateNetworkCmd) IPAddressVO(com.cloud.network.dao.IPAddressVO) AddNetworkServiceProviderCmd(org.apache.cloudstack.api.command.admin.network.AddNetworkServiceProviderCmd) VolumeDao(com.cloud.storage.dao.VolumeDao) DeleteNetworkServiceProviderCmd(org.apache.cloudstack.api.command.admin.network.DeleteNetworkServiceProviderCmd) DeleteAffinityGroupCmd(org.apache.cloudstack.api.command.user.affinitygroup.DeleteAffinityGroupCmd) IPAddressDao(com.cloud.network.dao.IPAddressDao) UploadResourceIconCmd(org.apache.cloudstack.api.command.admin.resource.icon.UploadResourceIconCmd) NamedThreadFactory(com.cloud.utils.concurrency.NamedThreadFactory) UpdateDefaultNicForVMCmd(org.apache.cloudstack.api.command.user.vm.UpdateDefaultNicForVMCmd) ConsoleProxyManager(com.cloud.consoleproxy.ConsoleProxyManager) QueryAsyncJobResultCmd(org.apache.cloudstack.api.command.user.job.QueryAsyncJobResultCmd) ResetVpnConnectionCmd(org.apache.cloudstack.api.command.user.vpn.ResetVpnConnectionCmd) ListAffinityGroupsCmd(org.apache.cloudstack.api.command.user.affinitygroup.ListAffinityGroupsCmd) AddNicToVMCmd(org.apache.cloudstack.api.command.user.vm.AddNicToVMCmd) ListRegionsCmd(org.apache.cloudstack.api.command.user.region.ListRegionsCmd) AcquirePodIpCmdByAdmin(org.apache.cloudstack.api.command.admin.address.AcquirePodIpCmdByAdmin) DisableOutOfBandManagementForZoneCmd(org.apache.cloudstack.api.command.admin.outofbandmanagement.DisableOutOfBandManagementForZoneCmd) CreateLBStickinessPolicyCmd(org.apache.cloudstack.api.command.user.loadbalancer.CreateLBStickinessPolicyCmd) ListGuestOsCategoriesCmd(org.apache.cloudstack.api.command.user.guest.ListGuestOsCategoriesCmd) EnableStaticNatCmd(org.apache.cloudstack.api.command.user.nat.EnableStaticNatCmd) SSHKeyPairDao(com.cloud.user.dao.SSHKeyPairDao) IssueOutOfBandManagementPowerActionCmd(org.apache.cloudstack.api.command.admin.outofbandmanagement.IssueOutOfBandManagementPowerActionCmd) AccountVlanMapDao(com.cloud.dc.dao.AccountVlanMapDao) AddUserToProjectCmd(org.apache.cloudstack.api.command.user.account.AddUserToProjectCmd) MigrateVMCmd(org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd) SecondaryStorageVmManager(com.cloud.storage.secondary.SecondaryStorageVmManager) StopInternalLBVMCmd(org.apache.cloudstack.api.command.admin.internallb.StopInternalLBVMCmd) ResetVMPasswordCmdByAdmin(org.apache.cloudstack.api.command.admin.vm.ResetVMPasswordCmdByAdmin) StoragePoolVO(org.apache.cloudstack.storage.datastore.db.StoragePoolVO) CreateTemplateCmdByAdmin(org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin) StopVMCmdByAdmin(org.apache.cloudstack.api.command.admin.vm.StopVMCmdByAdmin) UpdateVPCOfferingCmd(org.apache.cloudstack.api.command.admin.vpc.UpdateVPCOfferingCmd) DpdkHelper(com.cloud.hypervisor.kvm.dpdk.DpdkHelper) HostTagsDao(com.cloud.host.dao.HostTagsDao) UserVmManager(com.cloud.vm.UserVmManager) ReleasePublicIpRangeCmd(org.apache.cloudstack.api.command.admin.vlan.ReleasePublicIpRangeCmd) Arrays(java.util.Arrays) CreateRemoteAccessVpnCmd(org.apache.cloudstack.api.command.user.vpn.CreateRemoteAccessVpnCmd) AlertDao(com.cloud.alert.dao.AlertDao) AddIpToVmNicCmd(org.apache.cloudstack.api.command.user.vm.AddIpToVmNicCmd) Transaction(com.cloud.utils.db.Transaction) CreatePortableIpRangeCmd(org.apache.cloudstack.api.command.admin.region.CreatePortableIpRangeCmd) HostAllocator(com.cloud.agent.manager.allocator.HostAllocator) AgentManager(com.cloud.agent.AgentManager) ServiceOfferingDetailsDao(com.cloud.service.dao.ServiceOfferingDetailsDao) CreateVMSnapshotCmd(org.apache.cloudstack.api.command.user.vmsnapshot.CreateVMSnapshotCmd) UpdateVPCCmdByAdmin(org.apache.cloudstack.api.command.admin.vpc.UpdateVPCCmdByAdmin) UpdateTrafficTypeCmd(org.apache.cloudstack.api.command.admin.usage.UpdateTrafficTypeCmd) Storage(com.cloud.storage.Storage) UpdateAccountCmd(org.apache.cloudstack.api.command.admin.account.UpdateAccountCmd) CreateVPCCmd(org.apache.cloudstack.api.command.user.vpc.CreateVPCCmd) CreateVpnConnectionCmd(org.apache.cloudstack.api.command.user.vpn.CreateVpnConnectionCmd) AuthorizeSecurityGroupEgressCmd(org.apache.cloudstack.api.command.user.securitygroup.AuthorizeSecurityGroupEgressCmd) AddAccountToProjectCmd(org.apache.cloudstack.api.command.user.account.AddAccountToProjectCmd) ListVolumesCmdByAdmin(org.apache.cloudstack.api.command.admin.volume.ListVolumesCmdByAdmin) ListVPCsCmd(org.apache.cloudstack.api.command.user.vpc.ListVPCsCmd) AddVpnUserCmd(org.apache.cloudstack.api.command.user.vpn.AddVpnUserCmd) CreateDiskOfferingCmd(org.apache.cloudstack.api.command.admin.offering.CreateDiskOfferingCmd) DiskProfile(com.cloud.vm.DiskProfile) DeleteSslCertCmd(org.apache.cloudstack.api.command.user.loadbalancer.DeleteSslCertCmd) StartRouterCmd(org.apache.cloudstack.api.command.admin.router.StartRouterCmd) KeystoreManager(org.apache.cloudstack.framework.security.keystore.KeystoreManager) UpdateNetworkOfferingCmd(org.apache.cloudstack.api.command.admin.network.UpdateNetworkOfferingCmd) Executors(java.util.concurrent.Executors) CreatePrivateGatewayCmd(org.apache.cloudstack.api.command.admin.vpc.CreatePrivateGatewayCmd) ListHypervisorsCmd(org.apache.cloudstack.api.command.user.resource.ListHypervisorsCmd) UpdateVpnCustomerGatewayCmd(org.apache.cloudstack.api.command.user.vpn.UpdateVpnCustomerGatewayCmd) UpdateAutoScalePolicyCmd(org.apache.cloudstack.api.command.user.autoscale.UpdateAutoScalePolicyCmd) ListTemplatePermissionsCmdByAdmin(org.apache.cloudstack.api.command.admin.template.ListTemplatePermissionsCmdByAdmin) LoadBalancerVO(com.cloud.network.dao.LoadBalancerVO) GuestOSDao(com.cloud.storage.dao.GuestOSDao) InsufficientAddressCapacityException(com.cloud.exception.InsufficientAddressCapacityException) AccountDao(com.cloud.user.dao.AccountDao) CreatePortForwardingRuleCmd(org.apache.cloudstack.api.command.user.firewall.CreatePortForwardingRuleCmd) IpAddressManager(com.cloud.network.IpAddressManager) PasswordGenerator(com.cloud.utils.PasswordGenerator) MigrateVirtualMachineWithVolumeCmd(org.apache.cloudstack.api.command.admin.vm.MigrateVirtualMachineWithVolumeCmd) DeleteProjectInvitationCmd(org.apache.cloudstack.api.command.user.project.DeleteProjectInvitationCmd) ListTagsCmd(org.apache.cloudstack.api.command.user.tag.ListTagsCmd) AddRegionCmd(org.apache.cloudstack.api.command.admin.region.AddRegionCmd) UpdateCloudToUseObjectStoreCmd(org.apache.cloudstack.api.command.admin.storage.UpdateCloudToUseObjectStoreCmd) UploadCustomCertificateCmd(org.apache.cloudstack.api.command.admin.resource.UploadCustomCertificateCmd) DeleteHostCmd(org.apache.cloudstack.api.command.admin.host.DeleteHostCmd) DeleteVpnConnectionCmd(org.apache.cloudstack.api.command.user.vpn.DeleteVpnConnectionCmd) DeletePoolCmd(org.apache.cloudstack.api.command.admin.storage.DeletePoolCmd) ArrayList(java.util.ArrayList) DeleteSnapshotCmd(org.apache.cloudstack.api.command.user.snapshot.DeleteSnapshotCmd) ListAutoScaleVmProfilesCmd(org.apache.cloudstack.api.command.user.autoscale.ListAutoScaleVmProfilesCmd) ListSnapshotPoliciesCmd(org.apache.cloudstack.api.command.user.snapshot.ListSnapshotPoliciesCmd) RegisterIsoCmd(org.apache.cloudstack.api.command.user.iso.RegisterIsoCmd) CloudRuntimeException(com.cloud.utils.exception.CloudRuntimeException) TemplateDataStoreVO(org.apache.cloudstack.storage.datastore.db.TemplateDataStoreVO) RebootSystemVmCmd(org.apache.cloudstack.api.command.admin.systemvm.RebootSystemVmCmd) GetUserCmd(org.apache.cloudstack.api.command.admin.user.GetUserCmd) RebootVMCmdByAdmin(org.apache.cloudstack.api.command.admin.vm.RebootVMCmdByAdmin) CreateProjectCmd(org.apache.cloudstack.api.command.user.project.CreateProjectCmd) RestartVPCCmd(org.apache.cloudstack.api.command.user.vpc.RestartVPCCmd) DeleteZoneCmd(org.apache.cloudstack.api.command.admin.zone.DeleteZoneCmd) EnableAccountCmd(org.apache.cloudstack.api.command.admin.account.EnableAccountCmd) UpdateNetworkServiceProviderCmd(org.apache.cloudstack.api.command.admin.network.UpdateNetworkServiceProviderCmd) RevertToVMSnapshotCmd(org.apache.cloudstack.api.command.user.vmsnapshot.RevertToVMSnapshotCmd) RevokeSecurityGroupIngressCmd(org.apache.cloudstack.api.command.user.securitygroup.RevokeSecurityGroupIngressCmd) VMInstanceDao(com.cloud.vm.dao.VMInstanceDao) ListStorageNetworkIpRangeCmd(org.apache.cloudstack.api.command.admin.network.ListStorageNetworkIpRangeCmd) GuestOSHypervisorDao(com.cloud.storage.dao.GuestOSHypervisorDao) ListGuestOsMappingCmd(org.apache.cloudstack.api.command.admin.guest.ListGuestOsMappingCmd) CreateSnapshotFromVMSnapshotCmd(org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotFromVMSnapshotCmd) ScaleVMCmd(org.apache.cloudstack.api.command.user.vm.ScaleVMCmd) DeployVMCmdByAdmin(org.apache.cloudstack.api.command.admin.vm.DeployVMCmdByAdmin) ResetVMSSHKeyCmd(org.apache.cloudstack.api.command.user.vm.ResetVMSSHKeyCmd) ComponentLifecycle(com.cloud.utils.component.ComponentLifecycle) ListSupportedNetworkServicesCmd(org.apache.cloudstack.api.command.admin.network.ListSupportedNetworkServicesCmd) AttachVolumeCmdByAdmin(org.apache.cloudstack.api.command.admin.volume.AttachVolumeCmdByAdmin) DetachVolumeCmd(org.apache.cloudstack.api.command.user.volume.DetachVolumeCmd) ListLoadBalancerRulesCmd(org.apache.cloudstack.api.command.user.loadbalancer.ListLoadBalancerRulesCmd) ListVpnGatewaysCmd(org.apache.cloudstack.api.command.user.vpn.ListVpnGatewaysCmd) SSHKeysHelper(com.cloud.utils.ssh.SSHKeysHelper) CreateTemplateCmd(org.apache.cloudstack.api.command.user.template.CreateTemplateCmd) HostPodDao(com.cloud.dc.dao.HostPodDao) Host(com.cloud.host.Host) DeleteImageStoreCmd(org.apache.cloudstack.api.command.admin.storage.DeleteImageStoreCmd) ExcludeList(com.cloud.deploy.DeploymentPlanner.ExcludeList) CreateApplicationLoadBalancerCmd(org.apache.cloudstack.api.command.user.loadbalancer.CreateApplicationLoadBalancerCmd) DeleteVMSnapshotCmd(org.apache.cloudstack.api.command.user.vmsnapshot.DeleteVMSnapshotCmd) GuestOsDetailsDao(org.apache.cloudstack.resourcedetail.dao.GuestOsDetailsDao) DisableAutoScaleVmGroupCmd(org.apache.cloudstack.api.command.user.autoscale.DisableAutoScaleVmGroupCmd) ListConditionsCmd(org.apache.cloudstack.api.command.user.autoscale.ListConditionsCmd) AssignToGlobalLoadBalancerRuleCmd(org.apache.cloudstack.api.command.user.region.ha.gslb.AssignToGlobalLoadBalancerRuleCmd) RemoveNicFromVMCmd(org.apache.cloudstack.api.command.user.vm.RemoveNicFromVMCmd) DetachIsoCmdByAdmin(org.apache.cloudstack.api.command.admin.iso.DetachIsoCmdByAdmin) CreateSecondaryStagingStoreCmd(org.apache.cloudstack.api.command.admin.storage.CreateSecondaryStagingStoreCmd) UpdateVMAffinityGroupCmdByAdmin(org.apache.cloudstack.api.command.admin.affinitygroup.UpdateVMAffinityGroupCmdByAdmin) UpdateVMAffinityGroupCmd(org.apache.cloudstack.api.command.user.affinitygroup.UpdateVMAffinityGroupCmd) CreateVolumeCmd(org.apache.cloudstack.api.command.user.volume.CreateVolumeCmd) ListStorageProvidersCmd(org.apache.cloudstack.api.command.admin.storage.ListStorageProvidersCmd) ListSwiftsCmd(org.apache.cloudstack.api.command.admin.swift.ListSwiftsCmd) Filter(com.cloud.utils.db.Filter) DisableStaticNatCmd(org.apache.cloudstack.api.command.user.nat.DisableStaticNatCmd) RemoveRawUsageRecordsCmd(org.apache.cloudstack.api.command.admin.usage.RemoveRawUsageRecordsCmd) JoinBuilder(com.cloud.utils.db.JoinBuilder) ListVPCsCmdByAdmin(org.apache.cloudstack.api.command.admin.vpc.ListVPCsCmdByAdmin) ListAutoScaleVmGroupsCmd(org.apache.cloudstack.api.command.user.autoscale.ListAutoScaleVmGroupsCmd) AddResourceDetailCmd(org.apache.cloudstack.api.command.user.volume.AddResourceDetailCmd) ListTrafficTypeImplementorsCmd(org.apache.cloudstack.api.command.admin.usage.ListTrafficTypeImplementorsCmd) RecoverVolumeCmdByAdmin(org.apache.cloudstack.api.command.admin.volume.RecoverVolumeCmdByAdmin) SyncStoragePoolCmd(org.apache.cloudstack.api.command.admin.storage.SyncStoragePoolCmd) UpdateUserCmd(org.apache.cloudstack.api.command.admin.user.UpdateUserCmd) DeleteAccountFromProjectCmd(org.apache.cloudstack.api.command.user.account.DeleteAccountFromProjectCmd) TransactionCallbackNoReturn(com.cloud.utils.db.TransactionCallbackNoReturn) ManagedContextRunnable(org.apache.cloudstack.managed.context.ManagedContextRunnable) PrimaryDataStoreDao(org.apache.cloudstack.storage.datastore.db.PrimaryDataStoreDao) ListResourceLimitsCmd(org.apache.cloudstack.api.command.user.resource.ListResourceLimitsCmd) Predicate(java.util.function.Predicate) DeleteVPCCmd(org.apache.cloudstack.api.command.user.vpc.DeleteVPCCmd) SSHKeyPair(com.cloud.user.SSHKeyPair) RevertSnapshotCmd(org.apache.cloudstack.api.command.user.snapshot.RevertSnapshotCmd) DeleteTagsCmd(org.apache.cloudstack.api.command.user.tag.DeleteTagsCmd) CreateNetworkCmdByAdmin(org.apache.cloudstack.api.command.admin.network.CreateNetworkCmdByAdmin) ListVMsCmd(org.apache.cloudstack.api.command.user.vm.ListVMsCmd) DeletePhysicalNetworkCmd(org.apache.cloudstack.api.command.admin.network.DeletePhysicalNetworkCmd) UpdateHostPasswordCmd(org.apache.cloudstack.api.command.admin.host.UpdateHostPasswordCmd) ListVpnConnectionsCmd(org.apache.cloudstack.api.command.user.vpn.ListVpnConnectionsCmd) VirtualMachineProfileImpl(com.cloud.vm.VirtualMachineProfileImpl) PodVlanMapVO(com.cloud.dc.PodVlanMapVO) List(java.util.List) MigrateVolumeCmdByAdmin(org.apache.cloudstack.api.command.admin.volume.MigrateVolumeCmdByAdmin) NetworkDomainVO(com.cloud.network.dao.NetworkDomainVO) RestoreVMCmdByAdmin(org.apache.cloudstack.api.command.admin.vm.RestoreVMCmdByAdmin) DeleteLBHealthCheckPolicyCmd(org.apache.cloudstack.api.command.user.loadbalancer.DeleteLBHealthCheckPolicyCmd) DeleteClusterCmd(org.apache.cloudstack.api.command.admin.cluster.DeleteClusterCmd) ListEventsCmd(org.apache.cloudstack.api.command.user.event.ListEventsCmd) NetworkDomainDao(com.cloud.network.dao.NetworkDomainDao) DeleteIsoCmd(org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd) DeletePrivateGatewayCmd(org.apache.cloudstack.api.command.admin.vpc.DeletePrivateGatewayCmd) DeleteTrafficTypeCmd(org.apache.cloudstack.api.command.admin.usage.DeleteTrafficTypeCmd) ConfigureOutOfBandManagementCmd(org.apache.cloudstack.api.command.admin.outofbandmanagement.ConfigureOutOfBandManagementCmd) StartVMCmd(org.apache.cloudstack.api.command.user.vm.StartVMCmd) EventVO(com.cloud.event.EventVO) ListEgressFirewallRulesCmd(org.apache.cloudstack.api.command.user.firewall.ListEgressFirewallRulesCmd) ListRemoteAccessVpnsCmd(org.apache.cloudstack.api.command.user.vpn.ListRemoteAccessVpnsCmd) NetworkDao(com.cloud.network.dao.NetworkDao) ListNetworkOfferingsCmd(org.apache.cloudstack.api.command.user.network.ListNetworkOfferingsCmd) EventTypes(com.cloud.event.EventTypes) CreateNetworkOfferingCmd(org.apache.cloudstack.api.command.admin.network.CreateNetworkOfferingCmd) GuestOSVO(com.cloud.storage.GuestOSVO) UpdateProjectInvitationCmd(org.apache.cloudstack.api.command.user.project.UpdateProjectInvitationCmd) UpdateSnapshotPolicyCmd(org.apache.cloudstack.api.command.user.snapshot.UpdateSnapshotPolicyCmd) Configurable(org.apache.cloudstack.framework.config.Configurable) ListAsyncJobsCmd(org.apache.cloudstack.api.command.user.job.ListAsyncJobsCmd) VlanType(com.cloud.dc.Vlan.VlanType) UpdateDefaultNicForVMCmdByAdmin(org.apache.cloudstack.api.command.admin.vm.UpdateDefaultNicForVMCmdByAdmin) UserAuthenticator(com.cloud.server.auth.UserAuthenticator) ListGuestOsCmd(org.apache.cloudstack.api.command.user.guest.ListGuestOsCmd) UpgradeRouterTemplateCmd(org.apache.cloudstack.api.command.admin.router.UpgradeRouterTemplateCmd) AccountVlanMapVO(com.cloud.dc.AccountVlanMapVO) CopyTemplateCmdByAdmin(org.apache.cloudstack.api.command.admin.template.CopyTemplateCmdByAdmin) AnnotationService(org.apache.cloudstack.annotation.AnnotationService) UpdateStorageNetworkIpRangeCmd(org.apache.cloudstack.api.command.admin.network.UpdateStorageNetworkIpRangeCmd) SSHKeyPairVO(com.cloud.user.SSHKeyPairVO) FindHostsForMigrationCmd(org.apache.cloudstack.api.command.admin.host.FindHostsForMigrationCmd) ListGlobalLoadBalancerRuleCmd(org.apache.cloudstack.api.command.user.region.ha.gslb.ListGlobalLoadBalancerRuleCmd) Hypervisor(com.cloud.hypervisor.Hypervisor) AddHostCmd(org.apache.cloudstack.api.command.admin.host.AddHostCmd) CreateVirtualRouterElementCmd(org.apache.cloudstack.api.command.admin.router.CreateVirtualRouterElementCmd) RecoverVolumeCmd(org.apache.cloudstack.api.command.user.volume.RecoverVolumeCmd) DeletePodCmd(org.apache.cloudstack.api.command.admin.pod.DeletePodCmd) PreparePrimaryStorageForMaintenanceCmd(org.apache.cloudstack.api.command.admin.storage.PreparePrimaryStorageForMaintenanceCmd) TimeUnit(java.util.concurrent.TimeUnit) ListStaticRoutesCmd(org.apache.cloudstack.api.command.user.vpc.ListStaticRoutesCmd) HostPodVO(com.cloud.dc.HostPodVO) UserVmVO(com.cloud.vm.UserVmVO) SuspendProjectCmd(org.apache.cloudstack.api.command.user.project.SuspendProjectCmd) Ternary(com.cloud.utils.Ternary) Configuration(org.apache.cloudstack.config.Configuration) VpcDao(com.cloud.network.vpc.dao.VpcDao) RecoverVMCmd(org.apache.cloudstack.api.command.admin.vm.RecoverVMCmd) Volume(com.cloud.storage.Volume) ManagementServerException(com.cloud.exception.ManagementServerException) GenerateUsageRecordsCmd(org.apache.cloudstack.api.command.admin.usage.GenerateUsageRecordsCmd) VolumeVO(com.cloud.storage.VolumeVO) ListNetworksCmd(org.apache.cloudstack.api.command.user.network.ListNetworksCmd) UpgradeSystemVMCmd(org.apache.cloudstack.api.command.admin.systemvm.UpgradeSystemVMCmd) AccountService(com.cloud.user.AccountService) CreateDomainCmd(org.apache.cloudstack.api.command.admin.domain.CreateDomainCmd) ArchiveSnapshotCmd(org.apache.cloudstack.api.command.user.snapshot.ArchiveSnapshotCmd) ResetVMPasswordCmd(org.apache.cloudstack.api.command.user.vm.ResetVMPasswordCmd) UpdateVlanIpRangeCmd(org.apache.cloudstack.api.command.admin.vlan.UpdateVlanIpRangeCmd) UpdateCfgCmd(org.apache.cloudstack.api.command.admin.config.UpdateCfgCmd) CancelPrimaryStorageMaintenanceCmd(org.apache.cloudstack.api.command.admin.storage.CancelPrimaryStorageMaintenanceCmd) StartSystemVMCmd(org.apache.cloudstack.api.command.admin.systemvm.StartSystemVMCmd) Pod(com.cloud.dc.Pod) GetVMUserDataCmd(org.apache.cloudstack.api.command.admin.vm.GetVMUserDataCmd) ListProjectResourcesCriteria(com.cloud.projects.Project.ListProjectResourcesCriteria) ListNetworkServiceProvidersCmd(org.apache.cloudstack.api.command.admin.network.ListNetworkServiceProvidersCmd) TemplateDataStoreDao(org.apache.cloudstack.storage.datastore.db.TemplateDataStoreDao) ListIsosCmd(org.apache.cloudstack.api.command.user.iso.ListIsosCmd) ListCapacityCmd(org.apache.cloudstack.api.command.admin.resource.ListCapacityCmd) AddNetworkDeviceCmd(org.apache.cloudstack.api.command.admin.network.AddNetworkDeviceCmd) ListCountersCmd(org.apache.cloudstack.api.command.user.autoscale.ListCountersCmd) AttachVolumeCmd(org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd) AssociateIPAddrCmd(org.apache.cloudstack.api.command.user.address.AssociateIPAddrCmd) Map(java.util.Map) ResizeVolumeCmd(org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd) VlanDao(com.cloud.dc.dao.VlanDao) AuthorizeSecurityGroupIngressCmd(org.apache.cloudstack.api.command.user.securitygroup.AuthorizeSecurityGroupIngressCmd) ListStorageTagsCmd(org.apache.cloudstack.api.command.admin.storage.ListStorageTagsCmd) MoveUserCmd(org.apache.cloudstack.api.command.admin.user.MoveUserCmd) DeleteSecurityGroupCmd(org.apache.cloudstack.api.command.user.securitygroup.DeleteSecurityGroupCmd) StoragePoolAllocator(org.apache.cloudstack.engine.subsystem.api.storage.StoragePoolAllocator) ListZonesCmdByAdmin(org.apache.cloudstack.api.command.admin.zone.ListZonesCmdByAdmin) CopyIsoCmd(org.apache.cloudstack.api.command.user.iso.CopyIsoCmd) TransactionStatus(com.cloud.utils.db.TransactionStatus) DeploymentPlanner(com.cloud.deploy.DeploymentPlanner) UpdateLBStickinessPolicyCmd(org.apache.cloudstack.api.command.user.loadbalancer.UpdateLBStickinessPolicyCmd) ListVirtualRouterElementsCmd(org.apache.cloudstack.api.command.admin.router.ListVirtualRouterElementsCmd) DedicatePublicIpRangeCmd(org.apache.cloudstack.api.command.admin.vlan.DedicatePublicIpRangeCmd) GetVncPortAnswer(com.cloud.agent.api.GetVncPortAnswer) ProjectManager(com.cloud.projects.ProjectManager) ResourceTagVO(com.cloud.tags.ResourceTagVO) DomainVlanMapVO(com.cloud.dc.DomainVlanMapVO) ServiceOfferingVO(com.cloud.service.ServiceOfferingVO) GuestOS(com.cloud.storage.GuestOS) UpdateIsoCmd(org.apache.cloudstack.api.command.user.iso.UpdateIsoCmd) ScaleSystemVMCmd(org.apache.cloudstack.api.command.admin.systemvm.ScaleSystemVMCmd) ListSnapshotsCmd(org.apache.cloudstack.api.command.user.snapshot.ListSnapshotsCmd) CreateSecurityGroupCmd(org.apache.cloudstack.api.command.user.securitygroup.CreateSecurityGroupCmd) CreateFirewallRuleCmd(org.apache.cloudstack.api.command.user.firewall.CreateFirewallRuleCmd) UpdateVolumeCmdByAdmin(org.apache.cloudstack.api.command.admin.volume.UpdateVolumeCmdByAdmin) AddTrafficTypeCmd(org.apache.cloudstack.api.command.admin.usage.AddTrafficTypeCmd) AssignVMCmd(org.apache.cloudstack.api.command.admin.vm.AssignVMCmd) DataCenterVO(com.cloud.dc.DataCenterVO) RemoveVpnUserCmd(org.apache.cloudstack.api.command.user.vpn.RemoveVpnUserCmd) CreateZoneCmd(org.apache.cloudstack.api.command.admin.zone.CreateZoneCmd) EnableOutOfBandManagementForHostCmd(org.apache.cloudstack.api.command.admin.outofbandmanagement.EnableOutOfBandManagementForHostCmd) ListPortableIpRangesCmd(org.apache.cloudstack.api.command.admin.region.ListPortableIpRangesCmd) AlertVO(com.cloud.alert.AlertVO) ListAlertsCmd(org.apache.cloudstack.api.command.admin.resource.ListAlertsCmd) CreateLBHealthCheckPolicyCmd(org.apache.cloudstack.api.command.user.loadbalancer.CreateLBHealthCheckPolicyCmd) CreatePodCmd(org.apache.cloudstack.api.command.admin.pod.CreatePodCmd) UpdateRegionCmd(org.apache.cloudstack.api.command.admin.region.UpdateRegionCmd) UserDao(com.cloud.user.dao.UserDao) SearchCriteria(com.cloud.utils.db.SearchCriteria) ListLBStickinessPoliciesCmd(org.apache.cloudstack.api.command.user.loadbalancer.ListLBStickinessPoliciesCmd) SecondaryStorageVmVO(com.cloud.vm.SecondaryStorageVmVO) ClusterVO(com.cloud.dc.ClusterVO) GetUploadParamsForIsoCmd(org.apache.cloudstack.api.command.user.iso.GetUploadParamsForIsoCmd) InstanceGroupDao(com.cloud.vm.dao.InstanceGroupDao) UpdateStoragePoolCmd(org.apache.cloudstack.api.command.admin.storage.UpdateStoragePoolCmd) VirtualMachineMigrationException(com.cloud.exception.VirtualMachineMigrationException) InstanceGroupVO(com.cloud.vm.InstanceGroupVO) ListUsersCmd(org.apache.cloudstack.api.command.admin.user.ListUsersCmd) DedicateGuestVlanRangeCmd(org.apache.cloudstack.api.command.admin.network.DedicateGuestVlanRangeCmd) Vlan(com.cloud.dc.Vlan) DeleteVPCOfferingCmd(org.apache.cloudstack.api.command.admin.vpc.DeleteVPCOfferingCmd) DeleteFirewallRuleCmd(org.apache.cloudstack.api.command.user.firewall.DeleteFirewallRuleCmd) UpdateDomainCmd(org.apache.cloudstack.api.command.admin.domain.UpdateDomainCmd) DestroyVMCmdByAdmin(org.apache.cloudstack.api.command.admin.vm.DestroyVMCmdByAdmin) CreateInternalLoadBalancerElementCmd(org.apache.cloudstack.api.command.admin.internallb.CreateInternalLoadBalancerElementCmd) UpdatePhysicalNetworkCmd(org.apache.cloudstack.api.command.admin.network.UpdatePhysicalNetworkCmd) Field(java.lang.reflect.Field) DeleteStaticRouteCmd(org.apache.cloudstack.api.command.user.vpc.DeleteStaticRouteCmd) CreateAutoScalePolicyCmd(org.apache.cloudstack.api.command.user.autoscale.CreateAutoScalePolicyCmd) ControlledEntity(org.apache.cloudstack.acl.ControlledEntity) ListDiskOfferingsCmd(org.apache.cloudstack.api.command.user.offering.ListDiskOfferingsCmd) AddSwiftCmd(org.apache.cloudstack.api.command.admin.swift.AddSwiftCmd) ListDetailOptionsCmd(org.apache.cloudstack.api.command.user.resource.ListDetailOptionsCmd) CapacityDao(com.cloud.capacity.dao.CapacityDao) GlobalLock(com.cloud.utils.db.GlobalLock) ListAffinityGroupTypesCmd(org.apache.cloudstack.api.command.user.affinitygroup.ListAffinityGroupTypesCmd) ListVMsCmdByAdmin(org.apache.cloudstack.api.command.admin.vm.ListVMsCmdByAdmin) UpdateVpnConnectionCmd(org.apache.cloudstack.api.command.user.vpn.UpdateVpnConnectionCmd) RegisterSSHKeyPairCmd(org.apache.cloudstack.api.command.user.ssh.RegisterSSHKeyPairCmd) CreateEgressFirewallRuleCmd(org.apache.cloudstack.api.command.user.firewall.CreateEgressFirewallRuleCmd) CreateVlanIpRangeCmd(org.apache.cloudstack.api.command.admin.vlan.CreateVlanIpRangeCmd) StorageManager(com.cloud.storage.StorageManager) AnnotationDao(org.apache.cloudstack.annotation.dao.AnnotationDao) ListMgmtsCmd(org.apache.cloudstack.api.command.admin.management.ListMgmtsCmd) Date(java.util.Date) DeleteSSHKeyPairCmd(org.apache.cloudstack.api.command.user.ssh.DeleteSSHKeyPairCmd) UploadTemplateDirectDownloadCertificateCmd(org.apache.cloudstack.api.command.admin.direct.download.UploadTemplateDirectDownloadCertificateCmd) NetworkAccountVO(com.cloud.network.dao.NetworkAccountVO) StoragePool(com.cloud.storage.StoragePool) AlertManager(com.cloud.alert.AlertManager) ConfigDepot(org.apache.cloudstack.framework.config.ConfigDepot) RemoveRegionCmd(org.apache.cloudstack.api.command.admin.region.RemoveRegionCmd) ListNicsCmd(org.apache.cloudstack.api.command.user.vm.ListNicsCmd) ResetCfgCmd(org.apache.cloudstack.api.command.admin.config.ResetCfgCmd) GuestOSCategoryDao(com.cloud.storage.dao.GuestOSCategoryDao) ApiServiceConfiguration(org.apache.cloudstack.config.ApiServiceConfiguration) CreateSnapshotCmd(org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd) DeleteNetworkCmd(org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd) CreateVMGroupCmd(org.apache.cloudstack.api.command.user.vmgroup.CreateVMGroupCmd) DeleteAccountCmd(org.apache.cloudstack.api.command.admin.account.DeleteAccountCmd) ConsoleProxyInfo(com.cloud.info.ConsoleProxyInfo) Config(com.cloud.configuration.Config) ExtractIsoCmd(org.apache.cloudstack.api.command.user.iso.ExtractIsoCmd) AllocationState(com.cloud.org.Grouping.AllocationState) DeleteStorageNetworkIpRangeCmd(org.apache.cloudstack.api.command.admin.network.DeleteStorageNetworkIpRangeCmd) VMInstanceVO(com.cloud.vm.VMInstanceVO) UpdateGlobalLoadBalancerRuleCmd(org.apache.cloudstack.api.command.user.region.ha.gslb.UpdateGlobalLoadBalancerRuleCmd) Capacity(com.cloud.capacity.Capacity) TimeZone(java.util.TimeZone) State(com.cloud.vm.VirtualMachine.State) DeleteManagementNetworkIpRangeCmd(org.apache.cloudstack.api.command.admin.network.DeleteManagementNetworkIpRangeCmd) DeleteCounterCmd(org.apache.cloudstack.api.command.admin.autoscale.DeleteCounterCmd) GetUploadParamsForVolumeCmd(org.apache.cloudstack.api.command.user.volume.GetUploadParamsForVolumeCmd) CopyIsoCmdByAdmin(org.apache.cloudstack.api.command.admin.iso.CopyIsoCmdByAdmin) HostTagVO(com.cloud.host.HostTagVO) UUID(java.util.UUID) DeleteUserFromProjectCmd(org.apache.cloudstack.api.command.user.account.DeleteUserFromProjectCmd) ListPrivateGatewaysCmd(org.apache.cloudstack.api.command.user.vpc.ListPrivateGatewaysCmd) DeleteEgressFirewallRuleCmd(org.apache.cloudstack.api.command.user.firewall.DeleteEgressFirewallRuleCmd) CreateNetworkACLCmd(org.apache.cloudstack.api.command.user.network.CreateNetworkACLCmd) EnableOutOfBandManagementForZoneCmd(org.apache.cloudstack.api.command.admin.outofbandmanagement.EnableOutOfBandManagementForZoneCmd) DeleteVpnGatewayCmd(org.apache.cloudstack.api.command.user.vpn.DeleteVpnGatewayCmd) DiskOfferingVO(com.cloud.storage.DiskOfferingVO) VirtualMachineManager(com.cloud.vm.VirtualMachineManager) StartInternalLBVMCmd(org.apache.cloudstack.api.command.admin.internallb.StartInternalLBVMCmd) ListVMSnapshotCmd(org.apache.cloudstack.api.command.user.vmsnapshot.ListVMSnapshotCmd) NetUtils(com.cloud.utils.net.NetUtils) CancelHostAsDegradedCmd(org.apache.cloudstack.api.command.admin.host.CancelHostAsDegradedCmd) ExtractTemplateCmd(org.apache.cloudstack.api.command.user.template.ExtractTemplateCmd) ListApplicationLoadBalancersCmd(org.apache.cloudstack.api.command.user.loadbalancer.ListApplicationLoadBalancersCmd) VirtualMachine(com.cloud.vm.VirtualMachine) ListDomainsCmdByAdmin(org.apache.cloudstack.api.command.admin.domain.ListDomainsCmdByAdmin) DataCenterDeployment(com.cloud.deploy.DataCenterDeployment) ActivateProjectCmd(org.apache.cloudstack.api.command.user.project.ActivateProjectCmd) DBEncryptionUtil(com.cloud.utils.crypt.DBEncryptionUtil) ListNetworksCmdByAdmin(org.apache.cloudstack.api.command.admin.network.ListNetworksCmdByAdmin) RebootRouterCmd(org.apache.cloudstack.api.command.admin.router.RebootRouterCmd) JoinType(com.cloud.utils.db.JoinBuilder.JoinType) Inject(javax.inject.Inject) DisableAccountCmd(org.apache.cloudstack.api.command.admin.account.DisableAccountCmd) UpdateImageStoreCmd(org.apache.cloudstack.api.command.admin.storage.UpdateImageStoreCmd) ConfigKey(org.apache.cloudstack.framework.config.ConfigKey) ListIsoPermissionsCmd(org.apache.cloudstack.api.command.user.iso.ListIsoPermissionsCmd) CreateVpnCustomerGatewayCmd(org.apache.cloudstack.api.command.user.vpn.CreateVpnCustomerGatewayCmd) ListImageStoresCmd(org.apache.cloudstack.api.command.admin.storage.ListImageStoresCmd) DisableOutOfBandManagementForClusterCmd(org.apache.cloudstack.api.command.admin.outofbandmanagement.DisableOutOfBandManagementForClusterCmd) CapacityVO(com.cloud.capacity.CapacityVO) AddSecondaryStorageCmd(org.apache.cloudstack.api.command.admin.host.AddSecondaryStorageCmd) ManagementServerNode(org.apache.cloudstack.utils.identity.ManagementServerNode) UpdateStorageCapabilitiesCmd(org.apache.cloudstack.api.command.admin.storage.UpdateStorageCapabilitiesCmd) PermissionDeniedException(com.cloud.exception.PermissionDeniedException) HostVO(com.cloud.host.HostVO) UpdateNetworkACLListCmd(org.apache.cloudstack.api.command.user.network.UpdateNetworkACLListCmd) RestartNetworkCmd(org.apache.cloudstack.api.command.user.network.RestartNetworkCmd) LockUserCmd(org.apache.cloudstack.api.command.admin.user.LockUserCmd) CreateLoadBalancerRuleCmd(org.apache.cloudstack.api.command.user.loadbalancer.CreateLoadBalancerRuleCmd) DetailVO(com.cloud.host.DetailVO) CreateConditionCmd(org.apache.cloudstack.api.command.user.autoscale.CreateConditionCmd) UpdateApplicationLoadBalancerCmd(org.apache.cloudstack.api.command.user.loadbalancer.UpdateApplicationLoadBalancerCmd) ApiConstants(org.apache.cloudstack.api.ApiConstants) HostDetailsDao(com.cloud.host.dao.HostDetailsDao) AddGuestOsCmd(org.apache.cloudstack.api.command.admin.guest.AddGuestOsCmd) ListDeploymentPlannersCmd(org.apache.cloudstack.api.command.admin.config.ListDeploymentPlannersCmd) NetworkAccountDao(com.cloud.network.dao.NetworkAccountDao) ListUsageRecordsCmd(org.apache.cloudstack.api.command.admin.usage.ListUsageRecordsCmd) CreateAutoScaleVmGroupCmd(org.apache.cloudstack.api.command.user.autoscale.CreateAutoScaleVmGroupCmd) ListHostsCmd(org.apache.cloudstack.api.command.admin.host.ListHostsCmd) HypervisorCapabilitiesVO(com.cloud.hypervisor.HypervisorCapabilitiesVO) Comparator(java.util.Comparator) ListTrafficTypesCmd(org.apache.cloudstack.api.command.admin.usage.ListTrafficTypesCmd) ConfigurationVO(org.apache.cloudstack.framework.config.impl.ConfigurationVO) UpdateFirewallRuleCmd(org.apache.cloudstack.api.command.user.firewall.UpdateFirewallRuleCmd) UpdateVmNicIpCmd(org.apache.cloudstack.api.command.user.vm.UpdateVmNicIpCmd) CreateVolumeCmdByAdmin(org.apache.cloudstack.api.command.admin.volume.CreateVolumeCmdByAdmin) DeleteAutoScalePolicyCmd(org.apache.cloudstack.api.command.user.autoscale.DeleteAutoScalePolicyCmd) DeletePortForwardingRuleCmd(org.apache.cloudstack.api.command.user.firewall.DeletePortForwardingRuleCmd) UpdateNetworkCmd(org.apache.cloudstack.api.command.user.network.UpdateNetworkCmd) ServiceOfferingDao(com.cloud.service.dao.ServiceOfferingDao) ConsoleProxyManagementState(com.cloud.consoleproxy.ConsoleProxyManagementState) ImageStoreDao(org.apache.cloudstack.storage.datastore.db.ImageStoreDao) CleanVMReservationsCmd(org.apache.cloudstack.api.command.admin.resource.CleanVMReservationsCmd) DeleteConditionCmd(org.apache.cloudstack.api.command.user.autoscale.DeleteConditionCmd) CallContext(org.apache.cloudstack.context.CallContext) CreateAutoScaleVmProfileCmd(org.apache.cloudstack.api.command.user.autoscale.CreateAutoScaleVmProfileCmd) RemoveResourceDetailCmd(org.apache.cloudstack.api.command.user.volume.RemoveResourceDetailCmd) CreateAffinityGroupCmd(org.apache.cloudstack.api.command.user.affinitygroup.CreateAffinityGroupCmd) ResourceManager(com.cloud.resource.ResourceManager) DeleteNetworkACLCmd(org.apache.cloudstack.api.command.user.network.DeleteNetworkACLCmd) Set(java.util.Set) Mac(javax.crypto.Mac) ScopeType(com.cloud.storage.ScopeType) UpdateZoneCmd(org.apache.cloudstack.api.command.admin.zone.UpdateZoneCmd) ListSSHKeyPairsCmd(org.apache.cloudstack.api.command.user.ssh.ListSSHKeyPairsCmd) UpgradeVMCmd(org.apache.cloudstack.api.command.user.vm.UpgradeVMCmd) VolumeDataStoreDao(org.apache.cloudstack.storage.datastore.db.VolumeDataStoreDao) OperationTimedoutException(com.cloud.exception.OperationTimedoutException) GuestOSHypervisorVO(com.cloud.storage.GuestOSHypervisorVO) ListDedicatedGuestVlanRangesCmd(org.apache.cloudstack.api.command.admin.network.ListDedicatedGuestVlanRangesCmd) ListAccountsCmd(org.apache.cloudstack.api.command.user.account.ListAccountsCmd) MigrateVolumeCmd(org.apache.cloudstack.api.command.user.volume.MigrateVolumeCmd) DeleteIpForwardingRuleCmd(org.apache.cloudstack.api.command.user.nat.DeleteIpForwardingRuleCmd) StoragePoolJoinVO(com.cloud.api.query.vo.StoragePoolJoinVO) DeleteTrafficMonitorCmd(org.apache.cloudstack.api.command.admin.usage.DeleteTrafficMonitorCmd) RemoveFromGlobalLoadBalancerRuleCmd(org.apache.cloudstack.api.command.user.region.ha.gslb.RemoveFromGlobalLoadBalancerRuleCmd) ListDomainChildrenCmd(org.apache.cloudstack.api.command.admin.domain.ListDomainChildrenCmd) ResizeVolumeCmdByAdmin(org.apache.cloudstack.api.command.admin.volume.ResizeVolumeCmdByAdmin) UpdateTemplatePermissionsCmd(org.apache.cloudstack.api.command.user.template.UpdateTemplatePermissionsCmd) ListEventTypesCmd(org.apache.cloudstack.api.command.user.event.ListEventTypesCmd) DisableUserCmd(org.apache.cloudstack.api.command.admin.user.DisableUserCmd) HypervisorCapabilitiesDao(com.cloud.hypervisor.dao.HypervisorCapabilitiesDao) ListCapabilitiesCmd(org.apache.cloudstack.api.command.user.config.ListCapabilitiesCmd) DeleteApplicationLoadBalancerCmd(org.apache.cloudstack.api.command.user.loadbalancer.DeleteApplicationLoadBalancerCmd) DeleteSnapshotPoliciesCmd(org.apache.cloudstack.api.command.user.snapshot.DeleteSnapshotPoliciesCmd) NumbersUtil(com.cloud.utils.NumbersUtil) DeleteVpnCustomerGatewayCmd(org.apache.cloudstack.api.command.user.vpn.DeleteVpnCustomerGatewayCmd) ListIpForwardingRulesCmd(org.apache.cloudstack.api.command.user.nat.ListIpForwardingRulesCmd) EventDao(com.cloud.event.dao.EventDao) UpdateResourceCountCmd(org.apache.cloudstack.api.command.user.resource.UpdateResourceCountCmd) CreateStorageNetworkIpRangeCmd(org.apache.cloudstack.api.command.admin.network.CreateStorageNetworkIpRangeCmd) CreateGlobalLoadBalancerRuleCmd(org.apache.cloudstack.api.command.user.region.ha.gslb.CreateGlobalLoadBalancerRuleCmd) DeleteNetworkOfferingCmd(org.apache.cloudstack.api.command.admin.network.DeleteNetworkOfferingCmd) ListLoadBalancerRuleInstancesCmdByAdmin(org.apache.cloudstack.api.command.admin.loadbalancer.ListLoadBalancerRuleInstancesCmdByAdmin) ListLoadBalancerRuleInstancesCmd(org.apache.cloudstack.api.command.user.loadbalancer.ListLoadBalancerRuleInstancesCmd) StopVMCmd(org.apache.cloudstack.api.command.user.vm.StopVMCmd) UpdateVPCCmd(org.apache.cloudstack.api.command.user.vpc.UpdateVPCCmd) DeleteVolumeCmd(org.apache.cloudstack.api.command.user.volume.DeleteVolumeCmd) UserVmDetailVO(com.cloud.vm.UserVmDetailVO) HypervisorCapabilities(com.cloud.hypervisor.HypervisorCapabilities) ConfigurationManagerImpl(com.cloud.configuration.ConfigurationManagerImpl) HypervisorType(com.cloud.hypervisor.Hypervisor.HypervisorType) DeleteGlobalLoadBalancerRuleCmd(org.apache.cloudstack.api.command.user.region.ha.gslb.DeleteGlobalLoadBalancerRuleCmd) UploadVolumeCmd(org.apache.cloudstack.api.command.user.volume.UploadVolumeCmd) RevokeSecurityGroupEgressCmd(org.apache.cloudstack.api.command.user.securitygroup.RevokeSecurityGroupEgressCmd) ResourceTagDao(com.cloud.tags.dao.ResourceTagDao) EnableAutoScaleVmGroupCmd(org.apache.cloudstack.api.command.user.autoscale.EnableAutoScaleVmGroupCmd) AddClusterCmd(org.apache.cloudstack.api.command.admin.cluster.AddClusterCmd) StopSystemVmCmd(org.apache.cloudstack.api.command.admin.systemvm.StopSystemVmCmd) GenerateAlertCmd(org.apache.cloudstack.api.command.admin.alert.GenerateAlertCmd) DeleteAutoScaleVmProfileCmd(org.apache.cloudstack.api.command.user.autoscale.DeleteAutoScaleVmProfileCmd) ActionEvent(com.cloud.event.ActionEvent) AccountManager(com.cloud.user.AccountManager) ListResourceDetailsCmd(org.apache.cloudstack.api.command.user.volume.ListResourceDetailsCmd) ConfigureInternalLoadBalancerElementCmd(org.apache.cloudstack.api.command.admin.internallb.ConfigureInternalLoadBalancerElementCmd) ListServiceOfferingsCmd(org.apache.cloudstack.api.command.user.offering.ListServiceOfferingsCmd) UpdatePortForwardingRuleCmd(org.apache.cloudstack.api.command.user.firewall.UpdatePortForwardingRuleCmd) ListDomainsCmd(org.apache.cloudstack.api.command.admin.domain.ListDomainsCmd) ActionEventUtils(com.cloud.event.ActionEventUtils) TemplateManager(com.cloud.template.TemplateManager) UpdateNetworkACLItemCmd(org.apache.cloudstack.api.command.user.network.UpdateNetworkACLItemCmd) StoragePoolStatus(com.cloud.storage.StoragePoolStatus) AttachIsoCmdByAdmin(org.apache.cloudstack.api.command.admin.iso.AttachIsoCmdByAdmin) DeleteUserCmd(org.apache.cloudstack.api.command.admin.user.DeleteUserCmd) GuestOsCategory(com.cloud.storage.GuestOsCategory) UpdatePodCmd(org.apache.cloudstack.api.command.admin.pod.UpdatePodCmd) ResetVMSSHKeyCmdByAdmin(org.apache.cloudstack.api.command.admin.vm.ResetVMSSHKeyCmdByAdmin) InvalidParameterValueException(com.cloud.exception.InvalidParameterValueException) Logger(org.apache.log4j.Logger) UploadVolumeCmdByAdmin(org.apache.cloudstack.api.command.admin.volume.UploadVolumeCmdByAdmin) FindStoragePoolsForMigrationCmd(org.apache.cloudstack.api.command.admin.storage.FindStoragePoolsForMigrationCmd) RevokeTemplateDirectDownloadCertificateCmd(org.apache.cloudstack.api.command.admin.direct.download.RevokeTemplateDirectDownloadCertificateCmd) ListStoragePoolsCmd(org.apache.cloudstack.api.command.admin.storage.ListStoragePoolsCmd) RegisterTemplateCmdByAdmin(org.apache.cloudstack.api.command.admin.template.RegisterTemplateCmdByAdmin) CopyTemplateCmd(org.apache.cloudstack.api.command.user.template.CopyTemplateCmd) DomainDao(com.cloud.domain.dao.DomainDao) UpdateHypervisorCapabilitiesCmd(org.apache.cloudstack.api.command.admin.config.UpdateHypervisorCapabilitiesCmd) UpdateGuestOsCmd(org.apache.cloudstack.api.command.admin.guest.UpdateGuestOsCmd) DeleteSecondaryStagingStoreCmd(org.apache.cloudstack.api.command.admin.storage.DeleteSecondaryStagingStoreCmd) GetUserKeysCmd(org.apache.cloudstack.api.command.admin.user.GetUserKeysCmd) RevertToVMSnapshotCmdByAdmin(org.apache.cloudstack.api.command.admin.vmsnapshot.RevertToVMSnapshotCmdByAdmin) ListVolumesCmd(org.apache.cloudstack.api.command.user.volume.ListVolumesCmd) LoadBalancerDao(com.cloud.network.dao.LoadBalancerDao) Account(com.cloud.user.Account) MoveNetworkAclItemCmd(org.apache.cloudstack.api.command.user.network.MoveNetworkAclItemCmd) DeleteRemoteAccessVpnCmd(org.apache.cloudstack.api.command.user.vpn.DeleteRemoteAccessVpnCmd) MacAddress(com.cloud.utils.net.MacAddress) ListVpnUsersCmd(org.apache.cloudstack.api.command.user.vpn.ListVpnUsersCmd) CreateServiceOfferingCmd(org.apache.cloudstack.api.command.admin.offering.CreateServiceOfferingCmd) ListRoutersCmd(org.apache.cloudstack.api.command.admin.router.ListRoutersCmd) CreateSnapshotPolicyCmd(org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotPolicyCmd) AffinityGroupProcessor(org.apache.cloudstack.affinity.AffinityGroupProcessor) DetachIsoCmd(org.apache.cloudstack.api.command.user.iso.DetachIsoCmd) ListHostTagsCmd(org.apache.cloudstack.api.command.admin.host.ListHostTagsCmd) DataCenterDao(com.cloud.dc.dao.DataCenterDao) ListProjectsCmd(org.apache.cloudstack.api.command.user.project.ListProjectsCmd) ConcurrentOperationException(com.cloud.exception.ConcurrentOperationException) RegisterIsoCmdByAdmin(org.apache.cloudstack.api.command.admin.iso.RegisterIsoCmdByAdmin) Optional(java.util.Optional) UpdateIsoPermissionsCmd(org.apache.cloudstack.api.command.user.iso.UpdateIsoPermissionsCmd) GetVMPasswordCmd(org.apache.cloudstack.api.command.user.vm.GetVMPasswordCmd) EnableUserCmd(org.apache.cloudstack.api.command.admin.user.EnableUserCmd) DeleteDiskOfferingCmd(org.apache.cloudstack.api.command.admin.offering.DeleteDiskOfferingCmd) CreateStoragePoolCmd(org.apache.cloudstack.api.command.admin.storage.CreateStoragePoolCmd) SearchBuilder(com.cloud.utils.db.SearchBuilder) UpdateIPAddrCmd(org.apache.cloudstack.api.command.user.address.UpdateIPAddrCmd) HashMap(java.util.HashMap) PrepareForMaintenanceCmd(org.apache.cloudstack.api.command.admin.host.PrepareForMaintenanceCmd) ConfigurationException(javax.naming.ConfigurationException) UpdateServiceOfferingCmd(org.apache.cloudstack.api.command.admin.offering.UpdateServiceOfferingCmd) ListIsoPermissionsCmdByAdmin(org.apache.cloudstack.api.command.admin.iso.ListIsoPermissionsCmdByAdmin) RebootVMCmd(org.apache.cloudstack.api.command.user.vm.RebootVMCmd) RestoreVMCmd(org.apache.cloudstack.api.command.user.vm.RestoreVMCmd) CollectionUtils(org.apache.commons.collections.CollectionUtils) AddNicToVMCmdByAdmin(org.apache.cloudstack.api.command.admin.vm.AddNicToVMCmdByAdmin) UserVmDetailsDao(com.cloud.vm.dao.UserVmDetailsDao) NetworkVO(com.cloud.network.dao.NetworkVO) UploadSslCertCmd(org.apache.cloudstack.api.command.user.loadbalancer.UploadSslCertCmd) LockAccountCmd(org.apache.cloudstack.api.command.admin.account.LockAccountCmd) UpdateHostCmd(org.apache.cloudstack.api.command.admin.host.UpdateHostCmd) ListSecondaryStagingStoresCmd(org.apache.cloudstack.api.command.admin.storage.ListSecondaryStagingStoresCmd) DeleteProjectCmd(org.apache.cloudstack.api.command.user.project.DeleteProjectCmd) UpdateProjectCmd(org.apache.cloudstack.api.command.user.project.UpdateProjectCmd) DestroyRouterCmd(org.apache.cloudstack.api.command.admin.router.DestroyRouterCmd) ListAutoScalePoliciesCmd(org.apache.cloudstack.api.command.user.autoscale.ListAutoScalePoliciesCmd) GPU(com.cloud.gpu.GPU) Iterator(java.util.Iterator) Type(com.cloud.host.Host.Type) DestroySystemVmCmd(org.apache.cloudstack.api.command.admin.systemvm.DestroySystemVmCmd) ChangeOfferingForVolumeCmd(org.apache.cloudstack.api.command.user.volume.ChangeOfferingForVolumeCmd) RemoveIpFromVmNicCmd(org.apache.cloudstack.api.command.user.vm.RemoveIpFromVmNicCmd) CreateVpnGatewayCmd(org.apache.cloudstack.api.command.user.vpn.CreateVpnGatewayCmd) RemoveGuestOsCmd(org.apache.cloudstack.api.command.admin.guest.RemoveGuestOsCmd) ReconnectHostCmd(org.apache.cloudstack.api.command.admin.host.ReconnectHostCmd) DeployVMCmd(org.apache.cloudstack.api.command.user.vm.DeployVMCmd) ConfigureOvsElementCmd(org.apache.cloudstack.api.command.admin.router.ConfigureOvsElementCmd) SecondaryStorageVmDao(com.cloud.vm.dao.SecondaryStorageVmDao) MigrateSecondaryStorageDataCmd(org.apache.cloudstack.api.command.admin.storage.MigrateSecondaryStorageDataCmd) ListVMGroupsCmd(org.apache.cloudstack.api.command.user.vmgroup.ListVMGroupsCmd) DomainVO(com.cloud.domain.DomainVO) ListCfgsByCmd(org.apache.cloudstack.api.command.admin.config.ListCfgsByCmd) ListTemplatesCmdByAdmin(org.apache.cloudstack.api.command.admin.template.ListTemplatesCmdByAdmin) Collections(java.util.Collections) MigrateNetworkCmd(org.apache.cloudstack.api.command.admin.network.MigrateNetworkCmd) UpdateNetworkCmdByAdmin(org.apache.cloudstack.api.command.admin.network.UpdateNetworkCmdByAdmin) AddTrafficMonitorCmd(org.apache.cloudstack.api.command.admin.usage.AddTrafficMonitorCmd) StoragePool(com.cloud.storage.StoragePool) ArrayList(java.util.ArrayList) DiskOfferingVO(com.cloud.storage.DiskOfferingVO) StoragePoolJoinVO(com.cloud.api.query.vo.StoragePoolJoinVO)

Aggregations

DiskOfferingVO (com.cloud.storage.DiskOfferingVO)86 ArrayList (java.util.ArrayList)34 ServiceOfferingVO (com.cloud.service.ServiceOfferingVO)32 VolumeVO (com.cloud.storage.VolumeVO)25 InvalidParameterValueException (com.cloud.exception.InvalidParameterValueException)24 Account (com.cloud.user.Account)23 CloudRuntimeException (com.cloud.utils.exception.CloudRuntimeException)22 ExcludeList (com.cloud.deploy.DeploymentPlanner.ExcludeList)18 List (java.util.List)16 StoragePool (com.cloud.storage.StoragePool)15 HypervisorType (com.cloud.hypervisor.Hypervisor.HypervisorType)14 DiskProfile (com.cloud.vm.DiskProfile)14 VMInstanceVO (com.cloud.vm.VMInstanceVO)14 HostVO (com.cloud.host.HostVO)13 NetworkVO (com.cloud.network.dao.NetworkVO)13 Pair (com.cloud.utils.Pair)13 DataCenterDeployment (com.cloud.deploy.DataCenterDeployment)12 PermissionDeniedException (com.cloud.exception.PermissionDeniedException)12 User (com.cloud.user.User)12 HashMap (java.util.HashMap)12