Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1484392 - Unable to Import a VM linked with its template to RHV 4.1 from export domain imported of RHEV 3.5 [NEEDINFO]
Unable to Import a VM linked with its template to RHV 4.1 from export domain ...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
4.1.2
Unspecified Linux
unspecified Severity high
: ovirt-4.2.0
: ---
Assigned To: Tomas Jelinek
Nisim Simsolo
: ZStream
Depends On:
Blocks: 1485804
  Show dependency treegraph
 
Reported: 2017-08-23 08:39 EDT by Koutuk Shukla
Modified: 2018-05-15 13:45 EDT (History)
13 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, a template could only be imported as a clone, and a virtual machine based on such a template could only be imported with the "Collapse Snapshot" option set. In the current release, cloning and "Collapse Snapshot" are not enforced when importing a template or its virtual machine.
Story Points: ---
Clone Of:
: 1485804 (view as bug list)
Environment:
Last Closed: 2018-05-15 13:43:37 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Virt
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
tjelinek: needinfo? (kshukla)


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 81044 master MERGED webadmin: detect base template correctly on import template 2017-08-28 02:35 EDT
oVirt gerrit 81078 ovirt-engine-4.1 MERGED webadmin: detect base template correctly on import template 2017-08-28 08:37 EDT
Red Hat Product Errata RHEA-2018:1488 None None None 2018-05-15 13:45 EDT

  None (edit)
Description Koutuk Shukla 2017-08-23 08:39:58 EDT
Description of problem:

Unable to Import a VM linked with its template to RHV 4.1 from export domain imported of RHEV 3.5

We see below things when Importing a Template in RHV 4.1 from export domain imported from RHEV 3.5 environment. 

1. Click Import template from export domain. We see check mark in option 
"clone" already greyed out. Unable to remove this check mark.

2. Upon proceeding we get "Import conflict" dailog box asking to either "clone" change the name of the template OR "Do not Import".  This screen is seen even when we have no template with same name existing in RHV 4.1 environment.

3. We can import the template sucessfully by changing the name of the template in  "Import conflict" dailog box.

4. When we try to import the VM linked with the template. We see check mark in "collapse snapshot" option is greyed out. Unable to remove this check mark.

5. We also get below message. Not sure if this is a error or just a general message.

"Some imported VMs depend on one or more templates which are not available in the system. Therefore you must Import those VMs with 'collapse snapshots', another option is to Import missing templates first and then try import the VMs again"

6. VM can be imported but it is unlinked with the template because of "collapse snapshot" option.

We are unable to import the vm linked with the template from the export domain (imported from 3.5) to RHV 4.1 environment.

Version-Release number of selected component (if applicable):
rhevm-4.1.2.3-0.1.el7.noarch

How reproducible: 100%

Steps to Reproduce:
1. Export a template & its linked VM in RHEV 3.5 environment to export domain.
2. Detach export domain and attach it to RHV 4.1 environment.
3. Try to Import the template and then its VM.

Actual results:

We are unable to import the vm linked with the template from the export domain (imported from 3.5) to RHV 4.1 environment.
Template is imported with name change. VM is imported without the link to template.

Expected results:

We should not get the "Import conflict" dailog box when trying to import the template which is new and no template with same name already exists. Also the vm should be imported without removing the link with the template.

Additional info:
Comment 9 Nisim Simsolo 2017-12-11 05:04:10 EST
Verification builds:
rhvm-4.2.0-0.6.el7
sanlock-3.5.0-1.el7.x86_64
vdsm-4.20.9-1.el7ev.x86_64
libvirt-client-3.2.0-14.el7_4.4.x86_64
qemu-kvm-rhev-2.9.0-16.el7_4.12.x86_64

Verification scenario:
1. Export a template & its linked VM in RHEV 3.5 environment to export domain.
2. Detach export domain and attach it to RHV 4.1 environment.
3. Try to Import the template and then its VM.

Results:
1. Import template - clone is not checked by default and can be checked/unchecked.
2. Import dialog is not enforcing to change imported template name.
3. Template imported successfully.
4. Importing VM linked with aforementioned template: collapse snapshot is checked by default and clone is unchecked by default. 
Collapse snapshot checkbox is not grayed out and can be unchecked.
5. no message related to "vm depends on template" observed.
6. VM imported succesfully, linked with it's template and VM is running properly.
Comment 13 errata-xmlrpc 2018-05-15 13:43:37 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2018:1488

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