Bug 1881457 - [RFE] Allow import of VM with disks on more than 1 storage domain
Summary: [RFE] Allow import of VM with disks on more than 1 storage domain
Keywords:
Status: CLOSED DUPLICATE of bug 1778032
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.3.10.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Tal Nisan
QA Contact: Avihai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-22 12:28 UTC by Strahil Nikolov
Modified: 2022-03-22 10:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-29 10:21:04 UTC
oVirt Team: Storage
Embargoed:


Attachments (Terms of Use)

Description Strahil Nikolov 2020-09-22 12:28:58 UTC
Description of problem:
When a VM's disks are on more than 1 storage domain, it is nearly impossible to import the disks from the second domain.

Version-Release number of selected component (if applicable):
ovirt-engine-4.3.10.4-1

How reproducible:
Always

Steps to Reproduce:
1. Migrate OS & databased disks on one storage domain 
2. Migrate another disk from the same vm to another storage domain 
3. Detach the second (data ) domain
4. Try to import the VM from the second (data ) domain -> fails due to same VM ID
5. Delete the VM's snapshots on the non-data disks (first storage domain)
6. Detach the disks
7. Delete the VM
8. Import the VM from the second (data) storage domain
9. Delete the VM's snapshots in order to equalize the data disks to the level of the non-data disks
10. Attach the non-data disks to the VM


Actual results:
The end user has to delete the VM's snapshots in order to be able to delete the VM without deleting the original non-data disks. Once the VM is also deleted , the user can import the data disks via the 'Import VM' (from the second storage domain). Still, the user has again to delete the snapshot for the data disks and only then can merge the non-data and the data disks.

Expected results:
There should be a way to import the data disks from the second data storage without having to delete the VM's snapshots.
When the VM has to be migrated to another oVirt Engine (via export domain) , the user has to 'Import VM' with the option partial for the first storage domain and then he/she has to wipe the snapshots + VM (non-data disks detached) just to be able to import the VM's data disks from the second storage domain.

It will be way better if one of the following is implemented:
- merge/squash to identical partial VMs
- Override an existing VM
- Force import the VM with a different ID

For details , please check: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/WTJXOIVDWU6DGVZQQ243VKGWJLPKHR4L/

Comment 1 RHEL Program Management 2021-01-14 13:54:57 UTC
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.

Comment 2 Eyal Shenitzky 2021-08-29 10:21:04 UTC

*** This bug has been marked as a duplicate of bug 1778032 ***


Note You need to log in before you can comment on or make changes to this bug.