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:
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.
-------------------------------------- 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!
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.