Bug 1087142

Summary: add blockdev-add support with glusterfs backends
Product: Red Hat Enterprise Linux 7 Reporter: Sibiao Luo <sluo>
Component: qemu-kvmAssignee: Markus Armbruster <armbru>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: chayang, famz, hhuang, juzhang, kwolf, michen, pbonzini, qzhang, rbalakri, shyu, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1086677
: 1159726 (view as bug list) Environment:
Last Closed: 2014-11-03 17:27:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 750801, 1159726    

Comment 1 Sibiao Luo 2014-04-14 04:33:06 UTC
1.Prepare a glusterfs disk.
# qemu-img info gluster://10.66.9.107/volume_name/test.qcow2
image: gluster://10.66.9.107/volume_name/test.qcow2
file format: qcow2
virtual size: 10G (10737418240 bytes)
disk size: 193K
cluster_size: 65536
Format specific information:
    compat: 1.1
    lazy refcounts: false

2.Hot-plug it with "blockdev-add".
{"execute":"qmp_capabilities"}
{"return": {}}
{ "execute": "blockdev-add", "arguments": {'options' : {'driver': 'qcow2', 'id':'drive-disk1', "aio":"native", 'rerror':'stop', 'werror':'stop', 'file': {'driver': 'file', 'filename': 'gluster://10.66.9.107/volume_name/test.qcow2'}, 'cache': { 'writeback': false, 'direct': true, 'no-flush': false }}} }
{"error": {"class": "GenericError", "desc": "could not open disk image drive-disk1: Could not open file: No such file or directory"}}

Best Regards,
sluo

Comment 2 Markus Armbruster 2014-11-03 17:27:20 UTC
blockdev-add is a work in progress upstream.  At this time, we intend to bring the results to RHEL-7 qemu-kvm-rhev, but not to qemu-kvm.

blockdev-add support for gluster is being worked on upstream.  It should find its way into qemu-kvm-rhev via rebase or backport (bug 1159726).  We don't intend to backport it to qemu-kvm.