Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1064068 - PRD34 [RFE] engine: supporting move of raw+sparse from nfs to iscsi domains
Summary: PRD34 [RFE] engine: supporting move of raw+sparse from nfs to iscsi domains
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: RFEs
Version: 3.3.0
Hardware: x86_64
OS: Linux
Target Milestone: ---
: 3.4.0
Assignee: Tal Nisan
QA Contact: Aharon Canan
Whiteboard: storage
Depends On: 1098258
TreeView+ depends on / blocked
Reported: 2014-02-11 23:01 UTC by Dafna Ron
Modified: 2015-09-22 13:10 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Sparse images can now be moved between a file domain and a block domain. Note that a "thinly provisioned" disk on a file domain is converted to "preallocated" disk on a block domain when it is moved.
Clone Of:
Last Closed: 2014-06-09 15:03:54 UTC
oVirt Team: ---
Target Upstream Version:

Attachments (Terms of Use)
logs (deleted)
2014-02-11 23:01 UTC, Dafna Ron
no flags Details

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2014:0506 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Virtualization Manager 3.4.0 update 2014-06-09 18:55:38 UTC
oVirt gerrit 25778 None None None Never
oVirt gerrit 26469 None None None Never

Description Dafna Ron 2014-02-11 23:01:10 UTC
Created attachment 862053 [details]

Description of problem:

Due to the change in Data Center's allowing both nfs and iscsi domains
to be under the same pool I have a question regrading move image.

We used to block move of image from export domain (which is nfs) to
iscsi domains with the raw+sparse combination.
This was changed about 2 years ago and we fixed this limitation.
if we are able to export the vm with both disks and import the disks
back to a new domain (iscsi), can we not use the same for nfs -> iscsi
data domains image move instead of blocking the operation with

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

tested this in ovirt 3.4 ovirt-engine-backend-3.4.0-0.7.beta2.el6.noarch
but opening this as RFE for rhevm

How reproducible:


Steps to Reproduce:
1. create a pool with two domains, 1 nfs and one iscsi
2. create a vm with thin provision disk on the nfs domain
3. try to move the disk to iscsi domain
4. export the vm to export domain
5. import the vm and change the target domain to iscsi domain

Actual results:

we fail to move the disk with raw+sparse format error but we are able to export and import the vm and change domains.

Expected results:

although there is a format change from raw to cow during import (although user will still just see thin provision) we are able to import the image from nfs to iscsi. 
I think it would be nice to do the same for move image between data domains and when we create a template or do a copy template disk. 

Additional info: logs

this is the disk I created:

014-02-11 16:39:31,629 INFO
(ajp-- [6a3bf4b5] START, CreateImageVDSCommand(
storagePoolId = 53771658-e350-42bc-b505-22d11dca7678,
    false, storageDomainId = 8c649966-0b58-40ae-a291-e5bdd789107e,
imageGroupId = b6a063d9-341b-4171-b339-3249dfeba30f, imageSizeInBytes =
3221225472, volumeFormat = RAW, newImageId =
6fce4cf1-92b8-4eeb-b1ad-b83d9904c052, newImageDescriptio
n = ), log id: 3f89669b

same disk during import:

2014-02-11 16:48:54,769 INFO
(org.ovirt.thread.pool-6-thread-39) [16e0ff43] START,
CopyImageVDSCommand( storagePoolId =
53771658-e350-42bc-b505-22d11dca7678, ignoreFailoverLimit = false,
storageDomainId = ae82505c-54bc-4795-99e3-2cc1b1c7c6b5, imageGroupId =
b6a063d9-341b-4171-b339-3249dfeba30f, imageId =
6fce4cf1-92b8-4eeb-b1ad-b83d9904c052, dstImageGroupId =
b6a063d9-341b-4171-b339-3249dfeba30f, vmId =
c2fb6923-9d0c-40ef-b8b7-92538da945d4, dstImageId =
6fce4cf1-92b8-4eeb-b1ad-b83d9904c052, imageDescription = ,
dstStorageDomainId = bb179c25-dd30-48ef-81ca-fefd5c5ca094,
copyVolumeType = LeafVol, volumeFormat = COW, preallocate = Sparse,
postZero = false, force = true), log id: 2d03a46c
2014-02-11 16:48:54,771 INFO
(org.ovirt.thread.pool-6-thread-39) [16e0ff43] --
executeIrsBrokerCommand: calling 'copyImage' with two new parameters:
description and UUID
2014-02-11 16:48:54,771 INFO
(org.ovirt.thread.pool-6-thread-39) [16e0ff43] -- copyImage parameters:

Comment 1 Allon Mureinik 2014-04-07 13:56:18 UTC
Tal, don't you have a bunch of patches addressing this issue already?

Comment 2 Tal Nisan 2014-04-09 08:49:46 UTC
Indeed, updated bug accordingly

Comment 4 Elad 2014-05-13 09:31:08 UTC
Test case was executed:

Verified using av9

Comment 5 Aharon Canan 2014-05-18 08:30:09 UTC
following results from 1098258 and our discussion 


Comment 6 Allon Mureinik 2014-05-19 12:27:16 UTC
Moving to MODIFIED as bug 1098258 is MODIFIED too.

Comment 8 Aharon Canan 2014-05-22 09:27:58 UTC

when moving raw-sparse from file domain to block domain it becomes raw- pre allocated

following our discussion this change is o.k.

operation works as expected.

Comment 9 errata-xmlrpc 2014-06-09 15:03:54 UTC
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.

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