Red Hat Bugzilla – Bug 1029271
Format specific information (create type) was wrong when create it specified subformat='streamOptimized'
Last modified: 2015-03-05 03:02:12 EST
Description of problem: Tried to create a vmdk image specified subformat='streamOptimized', but format specific information (create type) was wrong when use qemu-img to read it. BTW, tried other different vmdk create type that did not meet such issue. Version-Release number of selected component (if applicable): host info: # uname -r && rpm -q qemu-kvm 3.10.0-48.el7.x86_64 qemu-kvm-1.5.3-19.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.tried to create a vmdk image specified subformat='streamOptimized'. # qemu-img create -f vmdk VMDK-data-disk.vmdk -o subformat=streamOptimized 2G Formatting 'VMDK-data-disk.vmdk', fmt=vmdk size=2147483648 compat6=off subformat='streamOptimized' zeroed_grain=off 2.use qemu-img to read it. # qemu-img info VMDK-data-disk.vmdk image: VMDK-data-disk.vmdk file format: vmdk virtual size: 2.0G (2147483648 bytes) disk size: 12K Format specific information: cid: 1384223178 parent cid: 4294967295 create type: monolithicSparse <----------------here wrong extents: [0]: compressed: true virtual size: 2147483648 filename: VMDK-data-disk.vmdk cluster size: 65536 format: Actual results: Expected results: the create type should be 'streamOptimized' as specified when created it. Additional info:
Posted the fix to upstream: [PATCH] vmdk: Fix format specific information (create type) for streamOptimized
Fix included in qemu-kvm-1.5.3-67.el7
verify this issue. host info: # uname -r && rpm -q qemu-kvm 3.10.0-145.el7.x86_64 qemu-kvm-1.5.3-67.el7.x86_64 [root@dhcp-11-154 home]# qemu-img create -f vmdk VMDK-data-disk.vmdk -o subformat=streamOptimized 2G Formatting 'VMDK-data-disk.vmdk', fmt=vmdk size=2147483648 compat6=off subformat='streamOptimized' zeroed_grain=off [root@dhcp-11-154 home]# qemu-img info VMDK-data-disk.vmdk image: VMDK-data-disk.vmdk file format: vmdk virtual size: 2.0G (2147483648 bytes) disk size: 12K Format specific information: cid: 1409211551 parent cid: 4294967295 create type: streamOptimized extents: [0]: compressed: true virtual size: 2147483648 filename: VMDK-data-disk.vmdk cluster size: 65536 format: Base on above, this issue has been fixed correctly, move to VERIFIED status. Best Regards, sluo
Comment #6 was on Intel host. Now i tried the qemu-kvm-rhev on AMD host. host info: # uname -r && rpm -q qemu-kvm-rhev 3.10.0-147.el7.x86_64 qemu-kvm-rhev-2.1.0-2.el7.x86_64 Results: # qemu-img create -f vmdk VMDK-data-disk.vmdk -o subformat=streamOptimized 2G Formatting 'VMDK-data-disk.vmdk', fmt=vmdk size=2147483648 compat6=off subformat='streamOptimized' # qemu-img info VMDK-data-disk.vmdk image: VMDK-data-disk.vmdk file format: vmdk virtual size: 2.0G (2147483648 bytes) disk size: 12K cluster_size: 65536 Format specific information: cid: 1409558382 parent cid: 4294967295 create type: streamOptimized extents: [0]: compressed: true virtual size: 2147483648 filename: VMDK-data-disk.vmdk cluster size: 65536 format: Best Regards, sluo
According to comment #6 and comment #7, this issue has been fixed correctly, move to VERIFIED status. Best Regards, sluo
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. https://rhn.redhat.com/errata/RHSA-2015-0349.html