Description of problem:
I tried to convert a vm's disk from thinprovision to preallocated and the the disk remains as thinprovision.
looking at the backend log we send the image with COW preallocated which leaves disk as thinprovision (preallocated disk type is sent with RAW preallocated).
Version-Release number of selected component (if applicable):
si10
How reproducible:
100%
Steps to Reproduce:
1. import a thinprovision disk with collapse snapshots and select to change the disk type to preallocated
2.
3.
Actual results:
disk is not converted from thinprovision to preallocated
Expected results:
disk should be converted from thinprovision to preallocated
Additional info:engine log
2012-07-16 20:52:26,415 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand] (pool-4-thread-48) [162a5da6] START, CopyImageVDSCommand(storagePoolId = de4388ec-3
973-4015-bd5e-15b346dec7f1, ignoreFailoverLimit = false, compatabilityVersion = 3.1, storageDomainId = 1c4b81c0-bc2b-4b57-9341-5179ee848abd, imageGroupId = e383d7f0-bac1-4948-ae
14-a9d0e6465413, imageId = f569d881-1d6d-4c46-b3a7-991be7e3ec17, dstImageGroupId = e383d7f0-bac1-4948-ae14-a9d0e6465413, vmId = b6f3bedd-14f7-46b0-adf4-25b27fae2658, dstImageId
= f569d881-1d6d-4c46-b3a7-991be7e3ec17, imageDescription = , dstStorageDomainId = 395bff6c-330a-423e-a84b-f8e533a03d0e, copyVolumeType = LeafVol, volumeFormat = COW, preallocate
= Sparse, postZero = false, force = true), log id: 304eb092
2012-07-16 20:52:26,435 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoVDSCommand] (ajp-/0.0.0.0:8009-2) FINISH, GetVmsInfoVDSCommand, log id: 3f0d6f0d
2012-07-16 20:52:26,435 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand] (pool-4-thread-48) [162a5da6] -- CopyImageVDSCommand::ExecuteIrsBrokerCommand: call
ing 'copyImage' with two new parameters: description and UUID
2012-07-16 20:52:26,435 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand] (pool-4-thread-48) [162a5da6] -- copyImage parameters:
sdUUID=1c4b81c0-bc2b-4b57-9341-5179ee848abd
spUUID=de4388ec-3973-4015-bd5e-15b346dec7f1
vmGUID=b6f3bedd-14f7-46b0-adf4-25b27fae2658
srcImageGUID=e383d7f0-bac1-4948-ae14-a9d0e6465413
srcVolUUID=f569d881-1d6d-4c46-b3a7-991be7e3ec17
dstImageGUID=e383d7f0-bac1-4948-ae14-a9d0e6465413
dstVolUUID=f569d881-1d6d-4c46-b3a7-991be7e3ec17
descr=
this is backend bug
the params are already wrong when they are sent to vdsm:
volumeFormat = COW, preallocate
at your request I am changing the headline.
(In reply to comment #4)
> this is backend bug
> the params are already wrong when they are sent to vdsm:
>
> volumeFormat = COW, preallocate
>
> at your request I am changing the headline.
but you say it's 'preallocate' so again, I don't understand.
Please provide vdsm log so I can properly see the vdsm command that was issued.
Description of problem: I tried to convert a vm's disk from thinprovision to preallocated and the the disk remains as thinprovision. looking at the backend log we send the image with COW preallocated which leaves disk as thinprovision (preallocated disk type is sent with RAW preallocated). Version-Release number of selected component (if applicable): si10 How reproducible: 100% Steps to Reproduce: 1. import a thinprovision disk with collapse snapshots and select to change the disk type to preallocated 2. 3. Actual results: disk is not converted from thinprovision to preallocated Expected results: disk should be converted from thinprovision to preallocated Additional info:engine log 2012-07-16 20:52:26,415 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand] (pool-4-thread-48) [162a5da6] START, CopyImageVDSCommand(storagePoolId = de4388ec-3 973-4015-bd5e-15b346dec7f1, ignoreFailoverLimit = false, compatabilityVersion = 3.1, storageDomainId = 1c4b81c0-bc2b-4b57-9341-5179ee848abd, imageGroupId = e383d7f0-bac1-4948-ae 14-a9d0e6465413, imageId = f569d881-1d6d-4c46-b3a7-991be7e3ec17, dstImageGroupId = e383d7f0-bac1-4948-ae14-a9d0e6465413, vmId = b6f3bedd-14f7-46b0-adf4-25b27fae2658, dstImageId = f569d881-1d6d-4c46-b3a7-991be7e3ec17, imageDescription = , dstStorageDomainId = 395bff6c-330a-423e-a84b-f8e533a03d0e, copyVolumeType = LeafVol, volumeFormat = COW, preallocate = Sparse, postZero = false, force = true), log id: 304eb092 2012-07-16 20:52:26,435 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.GetVmsInfoVDSCommand] (ajp-/0.0.0.0:8009-2) FINISH, GetVmsInfoVDSCommand, log id: 3f0d6f0d 2012-07-16 20:52:26,435 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand] (pool-4-thread-48) [162a5da6] -- CopyImageVDSCommand::ExecuteIrsBrokerCommand: call ing 'copyImage' with two new parameters: description and UUID 2012-07-16 20:52:26,435 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand] (pool-4-thread-48) [162a5da6] -- copyImage parameters: sdUUID=1c4b81c0-bc2b-4b57-9341-5179ee848abd spUUID=de4388ec-3973-4015-bd5e-15b346dec7f1 vmGUID=b6f3bedd-14f7-46b0-adf4-25b27fae2658 srcImageGUID=e383d7f0-bac1-4948-ae14-a9d0e6465413 srcVolUUID=f569d881-1d6d-4c46-b3a7-991be7e3ec17 dstImageGUID=e383d7f0-bac1-4948-ae14-a9d0e6465413 dstVolUUID=f569d881-1d6d-4c46-b3a7-991be7e3ec17 descr=