This is an automated email from the ASF dual-hosted git repository. dahn pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit a358c9a41026f4abe2fa1744ea81b5409c8de192 Merge: 65eef59e0bd 0b857def685 Author: Daan Hoogland <[email protected]> AuthorDate: Tue Apr 23 16:13:16 2024 +0200 Merge release branch 4.19 to main * 4.19: New feature: Import/Unamange DATA volume from storage pool (#8808) api/src/main/java/com/cloud/event/EventTypes.java | 2 + .../org/apache/cloudstack/api/ApiConstants.java | 3 + .../api/command/admin/volume/ImportVolumeCmd.java | 165 +++ .../admin/volume/ListVolumesForImportCmd.java | 93 ++ .../command/admin/volume/UnmanageVolumeCmd.java | 127 ++ .../api/response/VolumeForImportResponse.java | 176 +++ .../volume/VolumeImportUnmanageService.java | 46 + .../storage/volume/VolumeOnStorageTO.java | 130 ++ .../command/admin/volume/ImportVolumeCmdTest.java | 83 ++ .../admin/volume/ListVolumesForImportCmdTest.java | 58 + .../admin/volume/UnmanageVolumeCmdTest.java | 70 + .../api/response/VolumeForImportResponseTest.java | 77 ++ .../storage/volume/VolumeOnStorageTOTest.java | 84 ++ .../cloud/agent/api/GetVolumesOnStorageAnswer.java | 42 + .../agent/api/GetVolumesOnStorageCommand.java | 55 + .../agent/api/GetVolumesOnStorageAnswerTest.java | 73 ++ .../agent/api/GetVolumesOnStorageCommandTest.java | 41 + .../service/VolumeOrchestrationService.java | 3 +- .../engine/orchestration/VolumeOrchestrator.java | 10 +- .../orchestration/VolumeOrchestratorTest.java | 55 +- .../LibvirtGetVolumesOnStorageCommandWrapper.java | 177 +++ .../org/apache/cloudstack/utils/qemu/QemuImg.java | 7 +- ...bvirtGetVolumesOnStorageCommandWrapperTest.java | 158 +++ .../CloudStackPrimaryDataStoreLifeCycleImpl.java | 2 +- .../volume/VolumeImportUnmanageManagerImpl.java | 515 ++++++++ .../cloudstack/vm/UnmanagedVMsManagerImpl.java | 2 +- .../core/spring-server-core-managers-context.xml | 2 + .../VolumeImportUnmanageManagerImplTest.java | 622 +++++++++ .../smoke/test_import_unmanage_volumes.py | 167 +++ ui/public/locales/en.json | 17 + ui/src/config/section/tools.js | 9 + ui/src/views/tools/ManageVolumes.vue | 1379 ++++++++++++++++++++ 32 files changed, 4440 insertions(+), 10 deletions(-) diff --cc ui/public/locales/en.json index dd4c6398edd,265edb442a1..064b3533882 --- a/ui/public/locales/en.json +++ b/ui/public/locales/en.json @@@ -2943,9 -2930,9 +2955,10 @@@ "message.host.dedicated": "Host Dedicated", "message.host.dedication.released": "Host dedication released.", "message.import.running.instance.warning": "The selected VM is powered-on on the VMware Datacenter. The recommended state to convert a VMware VM into KVM is powered-off after a graceful shutdown of the guest OS.", + "message.import.volume": "Please specify the domain, account or project name. <br>If not set, the volume will be imported for the caller.", "message.info.cloudian.console": "Cloudian Management Console should open in another window.", "message.installwizard.cloudstack.helptext.website": " * Project website:\t ", +"message.infra.setup.nsx.description": "This zone must contain an NSX provider because the isolation method is NSX", "message.infra.setup.tungsten.description": "This zone must contain a Tungsten-Fabric provider because the isolation method is TF", "message.installwizard.cloudstack.helptext.document": " * Documentation:\t ", "message.installwizard.cloudstack.helptext.header": "\nYou can find more information about Apache CloudStack™ on the pages listed below.\n",
