Bug 1431441 - Difference between import vm and export vm 'collapse snapshot' default configuration
Summary: Difference between import vm and export vm 'collapse snapshot' default config...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.0.6.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.2.0
: 4.2.0
Assignee: Eyal Shenitzky
QA Contact: Lilach Zitnitski
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-12 15:11 UTC by sefi litmanovich
Modified: 2017-12-20 11:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-20 11:21:53 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)
engine log (281.28 KB, application/x-gzip)
2017-03-12 15:11 UTC, sefi litmanovich
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 82201 0 master MERGED Webadmin: Change CollapseSnapshots default value 2017-09-28 19:08:36 UTC

Description sefi litmanovich 2017-03-12 15:11:25 UTC
Created attachment 1262242 [details]
engine log

Description of problem:
When exporting a vm which is thin provisioned on top of some template, a message pops warning that if the vm's template doesn't exist in the export domain, importing the vm will fail unless the template exists in the target domain.
This seems to be failing currently, so if I import the vm to export domain, delete it from the system but keep the template, and then try to import it back to the cluster with the template, I will get an error saying that the vm cannot be imported because the template doesn't exist in the export domain.
After talking to guys is rhev storage qe, I understand that this flow should be working in such a case where the template does exist in the target domain

Version-Release number of selected component (if applicable):
rhvm-4.0.7.4-0.1.el7ev

How reproducible:
always

Steps to Reproduce:
1. Create some template in some cluster.
2. Create a thin provisioned vm from that template
3. Create an export domain for rhe DC
4. Export the new created vm to the export domain
5. Remove the vm from the cluster.
6. Import the vm from the export domain back to the same cluster (with the template which the vm was based upon)

Actual results:
Fail to import the template, an error is issued with the cause being that the template doesn't exist in the export domain.

Expected results:
As long as the template still exists on the target storage domain the vm should be imported successfully

Additional info:

Comment 1 sefi litmanovich 2017-03-19 12:45:21 UTC
Sorry, false alarm, I had missed the correct flow of vm import and now I can verify that there's no bug.

The problem was caused by the fact that I did not choose 'collapse snapshot' when exporting the vm (which is the default when exporting), but when I tried to import the  vm the 'collapse snapshot' checkbox was checked (also by default - confusin, maybe we ought to change that?).
In this case the import failed because 1. the vm wasn't exported as a whole, 2. the template wasn't in export domain.
When trying to import with unchecked 'collapse snapshot' option, the import succeeded as expected.

So to sum up - changing this bug's topic to deal with the fact that default is different between export and import which caused the whole confusion.
This is a less severe issue so moving severity to medium as well.

Comment 2 Lilach Zitnitski 2017-10-02 14:20:11 UTC
--------------------------------------
Tested with the following code:
----------------------------------------
ovirt-engine-4.2.0-0.0.master.20171001151854.git75e5c70.el7.centos.noarch
vdsm-4.20.3-126.git48cdf1b.el7.centos.x86_64

Tested with the following scenario:

Steps to Reproduce:
1. create new template
2. create thin provisioned vm from new template
3. export vm to export domain
4. delete vm 
5. import vm from export domain

Actual results:
in both cases, import and export, the collapse snapshot box was unchecked by default. 

Expected results:

Moving to VERIFIED!

Comment 3 Sandro Bonazzola 2017-12-20 11:21:53 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

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


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