Red Hat Bugzilla – 1098258 – A movement operation of raw sparse disk from file to block domain results in Raw preallocated disk, but reports its type wrongly in the webadmin
Description of problem:
When moving a thin provision NFS disk to ISCSI domain,a Raw sparse disk
becomes Raw preallocated disk after the movement.
the web admin interface reports wrongly:"Allocation Policy -> thin provision"
but the actual size of the disk increases to its virtual size,and ,as stated,
the allocation policy also changes.
copy paste from terminal's vdsClient, before and after the movement:
[root@camel-vdsb ~]# vdsClient -s 0 getVolumeInfo 61a3e5e4-d191-4652-8bcc-50ea53b2ae11 $spuuid d05a7628-1750-4ca8-b77a-5917040df844 813a1759-1cb5-418c-b0af-e9786fa901cc
status = OK
domain = 61a3e5e4-d191-4652-8bcc-50ea53b2ae11
capacity = 4294967296
voltype = LEAF
description =
parent = 00000000-0000-0000-0000-000000000000
format = RAW
image = d05a7628-1750-4ca8-b77a-5917040df844
uuid = 813a1759-1cb5-418c-b0af-e9786fa901cc
disktype = 2
legality = LEGAL
mtime = 1400164357
apparentsize = 4294967296
truesize = 24576
type = SPARSE
children = []
pool =
ctime = 1400164357
[root@camel-vdsb ~]# vdsClient -s 0 getVolumeInfo $sduuid $spuuid d05a7628-1750-4ca8-b77a-5917040df844 813a1759-1cb5-418c-b0af-e9786fa901cc status = OK
domain = f9eeafd7-4686-4368-8102-af590e285a27
capacity = 4294967296
voltype = LEAF
description =
parent = 00000000-0000-0000-0000-000000000000
format = RAW
image = d05a7628-1750-4ca8-b77a-5917040df844
uuid = 813a1759-1cb5-418c-b0af-e9786fa901cc
disktype = 2
legality = LEGAL
mtime = 1400164929
apparentsize = 4294967296
truesize = 4294967296
type = PREALLOCATED
children = []
pool =
ctime = 1400164928
Version-Release number of selected component (if applicable):
vdsm-4.14.7-2.el6ev.x86_64
rhevm-3.4.0-0.20.el6ev.noarch
How reproducible:
100%
Steps to Reproduce:
Setup:Have a dc with 2 domains(one NFS,one ISCSI)
1.create a floating on NFS (thin provision) with or without vm
2.move it to ISCSI domain
Actual results:
The web admin ui reports a thin-provision disk on ISCSI domain,but
actually the disk is preallocated.
Expected results:
The disk should be moved to ISCSI domain and the allocation policy should change to be 'cow sparse',(plus,disk size should not increase above the actual size it had at the NFS domain)
Additional info:
I have added the logs,but I don't think there's much information over there.
RAW/Sparse is not supported in iSCSI/FCP, hence the disk is correctly typed as preallocated. The issue is merely updating the engine DB with the correct value.