Bug 766657 - 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
Summary: Backend: trying to import vm that was created in nfs storage as sparse+raw wi...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.0.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: 3.1.0
Assignee: Maor
QA Contact: Dafna Ron
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-12 14:38 UTC by Dafna Ron
Modified: 2016-02-10 16:53 UTC (History)
8 users (show)

Fixed In Version: SI19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-04 19:59:14 UTC
oVirt Team: Storage
Target Upstream Version:


Attachments (Terms of Use)
log (126.12 KB, application/x-gzip)
2011-12-12 14:38 UTC, Dafna Ron
no flags Details

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


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