Bug 766657

Summary: Backend: trying to import vm that was created in nfs storage as sparse+raw with snapshot to iscsi domain will fail with unsupported format message
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: Maor <mlipchuk>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: high Docs Contact:
Priority: high    
Version: 3.0.0CC: abaron, acathrow, amureini, iheim, lpeer, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: SI19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 19:59:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
log none

Description Dafna Ron 2011-12-12 14:38:38 UTC
Created attachment 545755 [details]
log

Description of problem:

we started supporting import of vms created in nfs storage as sparse+raw with collapse snapshot (bug 732972).  
however, vm which is sparse+raw with snapshot makes the vm cow+thin and importing it with or without collapse snapshots will fail with Can_Do_Action

2011-12-12 16:23:46,660 WARN  [org.ovirt.engine.core.bll.ImportVmCommand] (http-0.0.0.0-8443-2) CanDoAction of action ImportVm failed. Reasons:ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED,VAR__ACTION__IMPORT,VAR__TYPE__VM

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

ic152

How reproducible:

100%

Steps to Reproduce:
1. create a sparse+raw vm in nfs storage (thin provision disk format)
2. create snapshot for the vm 
3. export the vm to an export domain
4. try to import the vm to iscsi storage domain with and without collapse snapshot tag
  
Actual results:

import fails with CanDoAction:

2011-12-12 16:23:46,660 WARN  [org.ovirt.engine.core.bll.ImportVmCommand] (http-0.0.0.0-8443-2) CanDoAction of action ImportVm failed. Reasons:ACTION_TYPE_FAILED_DISK_CONFIGURATION_NOT_SUPPORTED,VAR__ACTION__IMPORT,VAR__TYPE__VM


Expected results:

we should be able to import the vm 

Additional info: full rhevm log

Comment 2 Ayal Baron 2012-08-01 12:28:36 UTC
With collapse + format change this should be allowed.
Any other combination should be blocked at GUI as well as CanDoAction.

Comment 3 Maor 2012-09-05 00:53:26 UTC
Posted upstream at http://gerrit.ovirt.org/#/c/7756/1

Comment 4 Allon Mureinik 2012-09-06 15:26:40 UTC
Dafna/Ayal - why is this bug marked as private?
It doesn't seem to have any security related impact or customer details

Comment 5 Dafna Ron 2012-09-09 07:29:07 UTC
it's not marked as privet now - if it was before I have no idea why

Comment 6 Maor 2012-09-13 15:16:08 UTC
Merged upstream with Change-Id: Ic6f4b762fbd9770c5157fee6b24373fa9a0dca10

Comment 8 Dafna Ron 2012-09-27 13:24:58 UTC
verified on si19
we can import sparse+raw with collapse only