Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 954321

Summary: [RFE] Enable importing from storage data domain a VM with the same name to a different DC
Product: [oVirt] ovirt-engine Reporter: Jiri Belka <jbelka>
Component: RFEsAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED WONTFIX QA Contact: Elad <ebenahar>
Severity: medium Docs Contact:
Priority: medium    
Version: ---CC: bsettle, bugs, dfediuck, ebenahar, lpeer, michal.skrivanek, mlipchuk, rbalakri, Rhev-m-bugs, srevivo, ylavi
Target Milestone: ---Keywords: FutureFeature, Improvement
Target Release: ---Flags: ylavi: ovirt-4.4?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-16 10:19:03 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:    
Bug Blocks: 1431535    

Description Jiri Belka 2013-04-22 09:35:00 UTC
Description of problem:

I exported jb-rh6-x64 VM in 'Default' DC which contained snapshots. Then I dettached export domain and attached it to 'tmp' DC which is managed by same RHEVM. I wanted to import jb-rh6-x64 into 'tmp' DC and then popup windows shows me both 'Collapse Snapshots' and 'Clone' checkboxes checked.

This "feature" which is silly in my option (not possible to have same VM names in different DCs) forces cloning of the vm so I would get 'Import Conflict' window to rename the importing VM. But this also forces collapsing snapshots, so I would lose snapshots. And this loosing of snapshots is super annoying.

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

How reproducible:
100%

Steps to Reproduce:
1. have 2 DCs
2. export a VM with snapshots to an export domain which you would "share" between DCs
3. try to import the exported VM on other DC and see window for collapse snapshots/clone "results"
  
Actual results:
due to existing VM name on the RHEVM env, import funcionality forces me to lose snapshots

Expected results:
if you won't solve name collision on the env itself now, then you should make some distinguishion between DCs and make something to prevent loosing of snapshots for "known" importing VMs

Additional info:
VM name uniqueness for whole RHEVM env is really annoying but this is another topis and I've opened RFE for it - BZ912263

Comment 1 Michal Skrivanek 2013-04-23 08:44:56 UTC
IIUC this is about not collapsing snapshots on import. Not sure if this is currently possible, Ayal?

Comment 2 Ayal Baron 2013-05-07 21:55:09 UTC
(In reply to comment #1)
> IIUC this is about not collapsing snapshots on import. Not sure if this is
> currently possible, Ayal?

It is not, that is why it is marked as improvement above.

Comment 4 Yaniv Lavi 2016-12-06 08:24:21 UTC
*** Bug 1161211 has been marked as a duplicate of this bug. ***

Comment 5 Yaniv Lavi 2017-11-26 13:03:28 UTC
Can you do this with import data domain?

Comment 6 Maor 2017-11-26 16:13:24 UTC
We currently can't do that, this need to be fixed for export and also for import since they both use the same logic on import.
I think that this bug https://bugzilla.redhat.com/1431535 is also related to this issue

Comment 7 Yaniv Lavi 2017-11-28 12:13:47 UTC
We will not be fixing this for the export domain.
I'm changing this bug's summary to reflect the fix in the data domain.

Comment 8 Allon Mureinik 2018-04-02 14:53:20 UTC
The underlying requirement here is either to rewrite the chain or to allow the same chain in two DCs.
Both are quite a lot of work, and I question the benefit.
Propose removing from 4.3.

Comment 9 Doron Fediuck 2018-05-16 10:19:03 UTC
Closing old RFEs.
If needed, please reopen and explain why.