Bug 1358291

Summary: [RFE] Import a disk from domain who was attached to a VM before the domain detached from the environment should register back to the VM
Product: [oVirt] ovirt-engine Reporter: Eyal Shenitzky <eshenitz>
Component: RFEsAssignee: Maor <mlipchuk>
Status: CLOSED DUPLICATE QA Contact: Gil Klein <gklein>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0.1.1CC: amureini, bugs, eshenitz, mlipchuk, tnisan
Target Milestone: ---Keywords: FutureFeature
Target Release: ---Flags: amureini: ovirt-future?
eshenitz: planning_ack?
eshenitz: devel_ack?
eshenitz: testing_ack?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-15 00:15:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1302780, 1358171    
Bug Blocks:    

Description Eyal Shenitzky 2016-07-20 12:37:05 UTC
Description of problem:

In advance to https://bugzilla.redhat.com/show_bug.cgi?id=1358290.

In environment with VM with 2 attached disks, one on domain A and the other on domain B,
When detaching domain B, the second disk (on domain B) of the VM becomes unregistered from the system, but the VM remains.
When attaching the domain B back to the environment, we have the option to register the mentioned disk back, and according to the feature page (http://www.ovirt.org/release/4.0.0/) it should be registered as floating disk.

Register a disk who was attached to a VM before the storage domain detached from the environment, should be automatically attached to the VM when registered by the user in case the VM is still exist.

This can be achieved by using - 
https://bugzilla.redhat.com/show_bug.cgi?id=1357616

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Allon Mureinik 2016-07-21 12:43:38 UTC
Should be considered along with bug 1358171.

Comment 3 Maor 2016-11-15 00:15:32 UTC
This scenario is not that simple since the VM's snapshots might be changed and attaching the disk once the VM's snapshots were changed will make it unsync.
For example VM1 with disk1(on storage1) and disk2 (on storage2) have 2 snapshots.
Now we detach storage1 and we are left with VM1 with only disk2.
If the user will remove those 2 snapshots on VM1, and will try to import storage1 and attach disk1 to it the engine will never be aware of those two snapshots that disk1 still has.
This scenario should be considered as part of https://bugzilla.redhat.com/show_bug.cgi?id=1108904 solution.
Therefore closing it as duplicate.

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