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 1514373 - RFE: support preallocation=falloc/full/off when create raw image on cephfs
Summary: RFE: support preallocation=falloc/full/off when create raw image on cephfs
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: qemu-kvm
Version: ---
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Stefano Garzarella
QA Contact: Tingting Mao
URL:
Whiteboard:
: 1200232 (view as bug list)
Depends On:
Blocks: 1200234
TreeView+ depends on / blocked
 
Reported: 2017-11-17 09:09 UTC by Longxiang Lyu
Modified: 2019-02-22 22:09 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

Description Longxiang Lyu 2017-11-17 09:09:32 UTC
Description of problem:
not support preallocation=falloc/full/off when create raw image on cephfs

Version-Release number of selected component (if applicable):
kernel-3.10.0-785.el7.x86_64
qemu-kvm-rhev-2.10.0-6.el7
ceph-12.2.1-37.el7cp.x86_64

How reproducible:
100%

Steps to Reproduce:
1. create raw image on cephfs
# qemu-img create -f raw  rbd:kvm-test/test.img:mon_host=10.73.199.64 1G 
Formatting 'rbd:kvm-test/test.img:mon_host=10.73.199.64', fmt=raw size=1073741824


2. create raw image on cephfs with preallocation=off/full/falloc

# qemu-img create -f raw -o preallocation=off rbd:kvm-test/test1.img:mon_host=10.73.199.64 1G 
qemu-img: Invalid parameter 'preallocation'
qemu-img: rbd:kvm-test/test1.img:mon_host=10.73.199.64: Invalid options for file format 'raw'

# qemu-img create -f raw -o preallocation=full rbd:kvm-test/test1.img:mon_host=10.73.199.64 1G 
qemu-img: Invalid parameter 'preallocation'
qemu-img: rbd:kvm-test/test1.img:mon_host=10.73.199.64: Invalid options for file format 'raw'

# qemu-img create -f raw -o preallocation=falloc rbd:kvm-test/test1.img:mon_host=10.73.199.64 1G 
qemu-img: Invalid parameter 'preallocation'
qemu-img: rbd:kvm-test/test1.img:mon_host=10.73.199.64: Invalid options for file format 'raw'


Actual results:
As the results above.

Expected results:
Should successfully create raw image with preallocation on cephfs. If preallocation mode is not supported, should give error message like "preallocation not supported" instead of "qemu-img: Invalid parameter 'preallocation'"

Additional info:

Comment 5 yilzhang 2017-12-13 06:19:21 UTC
Creating raw image with preallocation=falloc/full/off  on iSCSI backend also has this problem:

# qemu-img create -f raw  iscsi://10.0.0.7/iqn.2017-08.com.yilzhang:libiscsi/0    10G   -o preallocation=full
qemu-img: Invalid parameter 'preallocation'
qemu-img: iscsi://10.0.0.7/iqn.2017-08.com.yilzhang:libiscsi/0: Invalid options for file format 'raw'

Comment 6 Jeff Cody 2018-06-13 18:57:51 UTC
*** Bug 1200232 has been marked as a duplicate of this bug. ***


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