Patches required ~~~~~~~~~~~~~~~~ Markus Armbruster (8): nbd sockets vnc: Mark problematic address family tests TODO char: Fix socket with "type": "vsock" address io vnc sockets: Clean up SocketAddressKind switches block: Document -drive problematic code and bugs gluster: Prepare for SocketAddressFlat extension qapi-schema: SocketAddressFlat variants 'vsock' and 'fd' nbd: Tidy up blockdev-add interface sheepdog: Fix blockdev-add Get them from: http://repo.or.cz/qemu/armbru.git/tree/refs/heads/blockdev-fixes-dbg $ git describe pull-misc-2017-03-28-27-g885750d Sheepdog setup ~~~~~~~~~~~~~~ https://kashyapc.fedorapeople.org/virt/sheepdog-qemu-corosync.txt We're testing with the Sheepdog image "Alice" -------- $ dog vdi list Name Id Size Used Shared Creation time VDI id Copies Tag Block Size Shift Alice 0 5.0 GB 0.0 MB 0.0 MB 2017-03-28 09:49 15d167 2 22 foo 0 1.0 GB 0.0 MB 0.0 MB 2017-03-30 10:44 d9d577 2 22 cirros0.3.5vm 0 39 MB 12 MB 0.0 MB 2017-03-28 12:21 ee4c40 2 22 -------- These are the two hosts in the Sheepdog cluster: -------- $ dog node list Id Host:Port V-Nodes Zone 0 192.168.122.84:7000 4 1417324736 1 192.168.122.169:7000 252 2843388096 -------- Four variants of syntax (thanks: Markus Armbruster) -------- sheepdog:hostname:port:Alice sheepdog://hostname:port/Alice -drive if=none,driver=sheepdog,server.host=hostname,server.port=port,vdi=Alice -blockdev node-name=nn,driver=sheepdog,server.type=inet,server.host=hostname,server.port=port,vdi=Alice -------- === Tests === Test-1: Syntax - "sheepdog:hostname:port:Alice" ----------------------------------------------------------------------- ./qemu-system-x86_64 -display none -nodefconfig -nodefaults sheepdog:192.168.122.84:7000:Alice @@@ server.host=192.168.122.84 @@@ server.port=7000 @@@ tag= @@@ vdi=Alice ### vdi=Alice host=192.168.122.84 port=7000 path=(null) snap-id=(null) tag= WARNING: Image format was not specified for 'json:{"server.host": "192.168.122.84", "server.port": "7000", "tag": "", "driver": "sheepdog", "vdi": "Alice"}' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. ----------------------------------------------------------------------- Test-2: Syntax: sheepdog://hostname:port/Alice ----------------------------------------------------------------------- $ ./qemu-system-x86_64 -display none -nodefconfig -nodefaults sheepdog://192.168.122.84:7000/Alice @@@ server.host=192.168.122.84 @@@ server.port=7000 @@@ tag= @@@ vdi=Alice ### vdi=Alice host=192.168.122.84 port=7000 path=(null) snap-id=(null) tag= WARNING: Image format was not specified for 'json:{"server.host": "192.168.122.84", "server.port": "7000", "tag": "", "driver": "sheepdog", "vdi": "Alice"}' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. ----------------------------------------------------------------------- Test-3: Syntax: -drive if=none,driver=sheepdog,server.host=hostname,server.port=port,vdi=Alice ----------------------------------------------------------------------- $ ./qemu-system-x86_64 -display none -nodefconfig -nodefaults -drive if=none,driver=sheepdog,server.host=192.168.122.84,server.port=7000,vdi=Alice @@@ server.host=192.168.122.84 @@@ server.port=7000 @@@ vdi=Alice ### vdi=Alice host=192.168.122.84 port=7000 path=(null) snap-id=(null) tag= ----------------------------------------------------------------------- Test-4: Syntax: -blockdev node-name=nn,driver=sheepdog,server.type=inet,server.host=host,server.port=port,vdi=Alice ----------------------------------------------------------------------- $ ./qemu-system-x86_64 -display none -nodefconfig -nodefaults -blockdev node-name=nn,driver=sheepdog,server.type=inet,server.host=192.168.122.84,server.port=7000,vdi=Alice @@@ server.port=7000 @@@ server.host=192.168.122.84 @@@ server.type=inet @@@ vdi=Alice ### vdi=Alice addr=192.168.122.84:7000 snap-id=(null) tag= -----------------------------------------------------------------------