Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 911274

Summary: webadmin: importing a vm with collapse snapshot when its original disk was preallocated will give default allocation policy of Sparse instead of the original disk allocation
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engine-webadmin-portalAssignee: Tal Nisan <tnisan>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.3CC: abaron, acathrow, amureini, dyasny, ecohen, hateya, iheim, Rhev-m-bugs, scohen, sgrinber, ykaul
Target Milestone: ---Flags: scohen: needinfo+
Target Release: 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-11 09:16:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
log none

Description Dafna Ron 2013-02-14 16:01:04 UTC
Created attachment 697264 [details]
log

Description of problem:

import a vm 

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

si27 (3.1.3)

How reproducible:

100%

Steps to Reproduce:
1. create a vm with preallocated disk on NFS storage
2. create snapshots
3. export the vm
4. import the vm
  
Actual results:

vm is created with RAW Preallocated, when adding the snapshot it becomes RAW Sparse. 
when importing the vm with collapse snapshot the default disk allocation is sprase 

Expected results:

when we import the vm back and select collaps snapshots, the default disk type should be RAW Preallocated which is the original image format.

Additional info: engine log

2013-02-14 17:37:45,685 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CreateImageVDSCommand] (ajp-/127.0.0.1:8702-16) [5ac71d45] -- CreateImageVDSCommand::ExecuteIrsBrokerCommand: calling 'createVolume' with two new parameters: descr
iption and UUID
2013-02-14 17:37:45,685 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CreateImageVDSCommand] (ajp-/127.0.0.1:8702-16) [5ac71d45] -- createVolume parameters:
                sdUUID=36c9b553-5da3-483c-8f29-7b60880c1548
                spUUID=851d32be-c533-4655-bd23-4157fcd9e548
                imgGUID=ae16e1fc-9a6c-4738-92a4-c5136a48f63e
                size=1,073,741,824 bytes
                volFormat=RAW
                volType=Preallocated
                volUUID=37a2caf7-c84c-49bb-80fd-0b1ff4ec317f
                descr=
                srcImgGUID=00000000-0000-0000-0000-000000000000
                srcVolUUID=00000000-0000-0000-0000-000000000000


2013-02-14 17:39:13,655 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CreateSnapshotVDSCommand] (pool-3-thread-49) [6f359fdf] -- CreateSnapshotVDSCommand::ExecuteIrsBrokerCommand: calling 'createVolume' with two new parameters: description and UUID
2013-02-14 17:39:13,655 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CreateSnapshotVDSCommand] (pool-3-thread-49) [6f359fdf] -- createVolume parameters:
                sdUUID=36c9b553-5da3-483c-8f29-7b60880c1548
                spUUID=851d32be-c533-4655-bd23-4157fcd9e548
                imgGUID=ae16e1fc-9a6c-4738-92a4-c5136a48f63e
                size=1,073,741,824 bytes
                volFormat=COW
                volType=Sparse
                volUUID=27872fee-f2d6-405e-8617-c0c23bfe8ccb
                descr=
                srcImgGUID=ae16e1fc-9a6c-4738-92a4-c5136a48f63e
                srcVolUUID=37a2caf7-c84c-49bb-80fd-0b1ff4ec317f


2013-02-14 17:39:41,059 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CreateSnapshotVDSCommand] (pool-3-thread-47) [43afa9cc] -- CreateSnapshotVDSCommand::ExecuteIrsBrokerCommand: calling 'createVolume' with two new parameters: description and UUID
2013-02-14 17:39:41,059 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CreateSnapshotVDSCommand] (pool-3-thread-47) [43afa9cc] -- createVolume parameters:
                sdUUID=36c9b553-5da3-483c-8f29-7b60880c1548
                spUUID=851d32be-c533-4655-bd23-4157fcd9e548
                imgGUID=ae16e1fc-9a6c-4738-92a4-c5136a48f63e
                size=1,073,741,824 bytes
                volFormat=COW
                volType=Sparse
                volUUID=5a9e098e-a50b-4ba3-b3f1-bd7f927465ab
                descr=
                srcImgGUID=ae16e1fc-9a6c-4738-92a4-c5136a48f63e
                srcVolUUID=27872fee-f2d6-405e-8617-c0c23bfe8ccb
                

2013-02-14 17:42:35,387 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand] (pool-3-thread-47) [3d372b24] START, CopyImageVDSCommand( storagePoolId = 851d32be-c533-4655-bd23-4157fcd9e548, ignoreFailoverLimit = false, c
ompatabilityVersion = 3.1, storageDomainId = db60351e-b8b1-4c51-bb0f-b8f8ad016e77, imageGroupId = ae16e1fc-9a6c-4738-92a4-c5136a48f63e, imageId = 5a9e098e-a50b-4ba3-b3f1-bd7f927465ab, dstImageGroupId = ae16e1fc-9a6c-4738-92a4-c5136a48f6
3e, vmId = 63840f09-f9e5-47ce-9058-9d0f929d7c64, dstImageId = 5a9e098e-a50b-4ba3-b3f1-bd7f927465ab, imageDescription = , dstStorageDomainId = 36c9b553-5da3-483c-8f29-7b60880c1548, copyVolumeType = LeafVol, volumeFormat = RAW, preallocat
e = Sparse, postZero = false, force = true), log id: 5d38642b
2013-02-14 17:42:35,387 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand] (pool-3-thread-47) [3d372b24] -- CopyImageVDSCommand::ExecuteIrsBrokerCommand: calling 'copyImage' with two new parameters: description and UU
ID
2013-02-14 17:42:35,387 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand] (pool-3-thread-47) [3d372b24] -- copyImage parameters:
                sdUUID=db60351e-b8b1-4c51-bb0f-b8f8ad016e77
                spUUID=851d32be-c533-4655-bd23-4157fcd9e548
                vmGUID=63840f09-f9e5-47ce-9058-9d0f929d7c64
                srcImageGUID=ae16e1fc-9a6c-4738-92a4-c5136a48f63e
                srcVolUUID=5a9e098e-a50b-4ba3-b3f1-bd7f927465ab
                dstImageGUID=ae16e1fc-9a6c-4738-92a4-c5136a48f63e
                dstVolUUID=5a9e098e-a50b-4ba3-b3f1-bd7f927465ab
                descr=

Comment 1 Tal Nisan 2013-04-30 09:39:17 UTC
After discussing with Haim moving to ON_QA

Comment 2 Elad 2013-05-01 14:43:48 UTC
Verified on RHEVM-3.2 - SF14

rhevm-3.2.0-10.20.master.el6ev.noarch
vdsm-4.10.2-16.0.el6ev.x86_64

engine action CopyImageVDSCommand of imported vm with RAW preallocated disk with preallocate = Preallocated




2013-05-01 16:25:10,015 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CreateImageVDSCommand] (ajp-/127.0.0.1:8702-4) [665367af] START, CreateImageVDSCommand( storagePoolId = f4ace0e8-b380-4e92-9517-8c366a81fd14, ignoreFailoverLimit = false, compatabilityVersion = 3.2, storageDomainId = df86b681-f3fa-4991-8c94-bac1c7ad436b, imageGroupId = 2a6f1259-a0c7-4b7e-8365-746d6abd21f5, imageSizeInBytes = 10737418240, volumeFormat = RAW, newImageId = 96429209-b779-42c8-8719-7c0ba8e8aa4d, newImageDescription = ), log id: 1b27721b
2013-05-01 16:25:10,016 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CreateImageVDSCommand] (ajp-/127.0.0.1:8702-4) [665367af] -- CreateImageVDSCommand::ExecuteIrsBrokerCommand: calling 'createVolume' with two new parameters: description and UUID
2013-05-01 16:25:10,016 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CreateImageVDSCommand] (ajp-/127.0.0.1:8702-4) [665367af] -- createVolume parameters:
                sdUUID=df86b681-f3fa-4991-8c94-bac1c7ad436b
                spUUID=f4ace0e8-b380-4e92-9517-8c366a81fd14
                imgGUID=2a6f1259-a0c7-4b7e-8365-746d6abd21f5
                size=10,737,418,240 bytes
                volFormat=RAW
                volType=Preallocated
                volUUID=96429209-b779-42c8-8719-7c0ba8e8aa4d
                descr=
                srcImgGUID=00000000-0000-0000-0000-000000000000
                srcVolUUID=00000000-0000-0000-0000-000000000000







2013-05-01 16:55:38,964 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand] (pool-3-thread-39) [6a46cd69] START, CopyImageVDSCommand( storagePoolId = f4ace0e8-b380-4e92-9517-8c366a81fd14, ignoreF
ailoverLimit = false, compatabilityVersion = 3.2, storageDomainId = 304acf42-c3bc-49ad-aa4d-12fa94766ce1, imageGroupId = 2a6f1259-a0c7-4b7e-8365-746d6abd21f5, imageId = ae2cc695-3d23-469f-95d8-2990bac3d984, dstIma
geGroupId = dd6d70a1-9d43-4ea1-9ba6-141fa3fee2ee, vmId = ce19ef96-3004-4711-82c2-3da517940626, dstImageId = ddade752-1a87-48b7-ba62-27fc612c4f4a, imageDescription = , dstStorageDomainId = df86b681-f3fa-4991-8c94-b
ac1c7ad436b, copyVolumeType = LeafVol, volumeFormat = RAW, preallocate = Preallocated, postZero = false, force = true), log id: 42c24f42
2013-05-01 16:55:38,964 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand] (pool-3-thread-39) [6a46cd69] -- CopyImageVDSCommand::ExecuteIrsBrokerCommand: calling 'copyImage' with two new paramet
ers: description and UUID

Comment 6 Itamar Heim 2013-06-11 09:16:16 UTC
3.2 has been released

Comment 7 Itamar Heim 2013-06-11 09:41:29 UTC
3.2 has been released