Bug 1086193
Summary: | RFE: Add blockdev-delete QMP command in company with blockdev-add | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Sibiao Luo <sluo> |
Component: | qemu-kvm-rhev | Assignee: | Kevin Wolf <kwolf> |
Status: | CLOSED ERRATA | QA Contact: | CongLi <coli> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | armbru, chayang, famz, hannsj_uhl, hhuang, juzhang, kwolf, michen, mrezanin, mtessun, mzhan, qzhang, rbalakri, virt-maint, xfu |
Target Milestone: | rc | Keywords: | FutureFeature |
Target Release: | 7.4 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-rhev-2.9.0-1.el7 | Doc Type: | Enhancement |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-01 23:27:12 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, 1288337 |
Description
Sibiao Luo
2014-04-10 10:43:37 UTC
Bug 750801 tracks the remaining blockdev-add work for 7.1. Bug 750801 got deferred to 7.2, following suit. Still no blockdev-del upstream. Adding it shouldn't be hard, but makes little sense until blockdev-add is ready for prime time. We've been making progress, but we're clearly not there, yet. Upstream commit commit 81b936a "block: Add 'x-blockdev-del' QMP command" will be in 2.5. It's flagged experimental because blockdev-add de facto still is. They're expected to become stable interfaces together. Maybe this could be considered a duplicate of Bug 750801 (blockdev-add main BZ)? blockdev-add/del is declared stable in QEMU-2.9. Verified this bug on: qemu-kvm-rhev-2.9.0-2.el7.x86_64 1. There is 'blockdev-del' command when execute 'query-commands' {"execute":"query-commands"} {"return": [... {"name": "blockdev-mirror"}, {"name": "blockdev-del"}, {"name": "blockdev-close-tray"}, {"name": "blockdev-change-medium"}, {"name": "blockdev-backup"}, {"name": "blockdev-add"}...]} 2. node is not attached to a device {"execute": "blockdev-add","arguments": {"node-name": "drive2","driver": "raw", "file": {"driver":"file", "filename": "/root/test.raw"}}} {"return": {}} { "execute": "blockdev-del","arguments": { "node-name": "drive2"}} {"return": {}} 3. node is attached to a device. All scenarios of 'info block -n' work well before and after blockdev-add and blockdev-del. 3.1 local - pass 3.1.1 virtio_scsi {"execute": "blockdev-add","arguments": {"node-name": "drive2","driver": "raw", "file": {"driver":"file", "filename": "/root/test.raw"}}} {"return": {}} {"execute":"device_add","arguments":{"driver":"virtio-scsi-pci","id":"scsi1","bus":"pci.0","addr":"0x8"}} {"return": {}} {"execute":"device_add","arguments":{"driver":"scsi-hd","drive":"drive2","id":"data-disk1"}} {"return": {}} {"execute":"device_del","arguments":{"id":"data-disk1"} } {"timestamp": {"seconds": 1493790042, "microseconds": 560590}, "event": "DEVICE_DELETED", "data": {"device": "data-disk1", "path": "/machine/peripheral/data-disk1"}} {"return": {}} {"execute":"device_del","arguments":{"id":"scsi1"} } {"return": {}} {"timestamp": {"seconds": 1493790053, "microseconds": 582917}, "event": "DEVICE_DELETED", "data": {"path": "/machine/peripheral/scsi1/virtio-backend"}} {"timestamp": {"seconds": 1493790053, "microseconds": 582995}, "event": "DEVICE_DELETED", "data": {"device": "scsi1", "path": "/machine/peripheral/scsi1"}} { "execute": "blockdev-del","arguments": { "node-name": "drive2"}} {"return": {}} 3.1.2 virtio_blk {"execute": "blockdev-add","arguments": {"node-name": "drive2","driver": "raw", "file": {"driver":"file", "filename": "/root/test.raw"}}} {"return": {}} {"execute":"device_add","arguments":{"driver":"virtio-blk-pci", "drive": "drive2", "id":"blk1"}} {"return": {}} {"execute":"device_del","arguments":{"id": "blk1"}} {"return": {}} {"timestamp": {"seconds": 1493791389, "microseconds": 53820}, "event": "DEVICE_DELETED", "data": {"path": "/machine/peripheral/blk1/virtio-backend"}} {"timestamp": {"seconds": 1493791389, "microseconds": 53912}, "event": "DEVICE_DELETED", "data": {"device": "blk1", "path": "/machine/peripheral/blk1"}} { "execute": "blockdev-del","arguments": { "node-name": "drive2"}} {"return": {}} 3.2 iscsi - pass 3.2.1 virtio_scsi { "execute": "blockdev-add", "arguments": { "node-name": "drive2", "driver": "qcow2", "file": { "driver":"iscsi", "transport":"tcp", "portal":"10.73.199.233", "initiator-name":"iqn.2008-11.org.linux-kvm", "target":"iqn.2017-04.com.example:t3", "lun":0 } } } {"return": {}} {"execute":"device_add","arguments":{"driver":"virtio-scsi-pci","id":"scsi1","bus":"pci.0","addr":"0x8"}} {"return": {}} {"execute":"device_add","arguments":{"driver":"scsi-hd","drive":"drive2","id":"data-disk1"}} {"return": {}} {"execute":"device_del","arguments":{"id":"data-disk1"} } {"timestamp": {"seconds": 1493796907, "microseconds": 470991}, "event": "DEVICE_DELETED", "data": {"device": "data-disk1", "path": "/machine/peripheral/data-disk1"}} {"return": {}} {"execute":"device_del","arguments":{"id":"scsi1"} } {"return": {}} {"timestamp": {"seconds": 1493796916, "microseconds": 366318}, "event": "DEVICE_DELETED", "data": {"path": "/machine/peripheral/scsi1/virtio-backend"}} {"timestamp": {"seconds": 1493796916, "microseconds": 366392}, "event": "DEVICE_DELETED", "data": {"device": "scsi1", "path": "/machine/peripheral/scsi1"}} { "execute": "blockdev-del","arguments": { "node-name": "drive2"}} {"return": {}} 3.2.2 virtio_blk { "execute": "blockdev-add", "arguments": { "node-name": "drive2", "driver": "qcow2", "file": { "driver":"iscsi", "transport":"tcp", "portal":"10.73.199.233", "initiator-name":"iqn.2008-11.org.linux-kvm", "target":"iqn.2017-04.com.example:t3", "lun":0 } } } {"return": {}} { "execute":"device_add", "arguments":{ "driver":"virtio-blk-pci", "drive":"drive2", "id":"blk1" } } {"return": {}} {"execute":"device_del","arguments":{"id": "blk1"}} {"return": {}} {"timestamp": {"seconds": 1493796700, "microseconds": 536194}, "event": "DEVICE_DELETED", "data": {"path": "/machine/peripheral/blk1/virtio-backend"}} {"timestamp": {"seconds": 1493796700, "microseconds": 536287}, "event": "DEVICE_DELETED", "data": {"device": "blk1", "path": "/machine/peripheral/blk1"}} { "execute": "blockdev-del","arguments": { "node-name": "drive2"}} {"return": {}} 3.3 glusterfs - pass 3.3.1 virtio_scsi { "execute": "blockdev-add", "arguments": { "node-name": "drive2", "driver": "raw", "file": { "driver": "gluster", "volume": "distdata01", "path": "test.raw", "server" : [ { "type": "inet", "host": "gluster-virt-qe-01.lab.eng.pek2.redhat.com", "port": "24007"}]}}} {"return": {}} {"execute":"device_add","arguments":{"driver":"virtio-scsi-pci","id":"scsi1","bus":"pci.0","addr":"0x8"}} {"return": {}} {"execute":"device_add","arguments":{"driver":"scsi-hd","drive":"drive2","id":"data-disk1"}} {"return": {}} {"execute":"device_del","arguments":{"id":"data-disk1"} } {"timestamp": {"seconds": 1493954803, "microseconds": 900570}, "event": "DEVICE_DELETED", "data": {"device": "data-disk1", "path": "/machine/peripheral/data-disk1"}} {"return": {}} {"execute":"device_del","arguments":{"id":"scsi1"} } {"return": {}} {"timestamp": {"seconds": 1493954809, "microseconds": 427627}, "event": "DEVICE_DELETED", "data": {"path": "/machine/peripheral/scsi1/virtio-backend"}} {"timestamp": {"seconds": 1493954809, "microseconds": 427700}, "event": "DEVICE_DELETED", "data": {"device": "scsi1", "path": "/machine/peripheral/scsi1"}} { "execute": "blockdev-del","arguments": { "node-name": "drive2"}} {"return": {}} 3.3.2 virtio_blk { "execute": "blockdev-add", "arguments": { "node-name": "drive2", "driver": "raw", "file": { "driver": "gluster", "volume": "distdata01", "path": "test.raw", "server" : [ { "type": "inet", "host": "gluster-virt-qe-01.lab.eng.pek2.redhat.com", "port": "24007"}]}}} {"return": {}} { "execute":"device_add", "arguments":{ "driver":"virtio-blk-pci", "drive":"drive2", "id":"blk1"} } {"return": {}} {"execute":"device_del","arguments":{"id": "blk1"}} {"return": {}} {"timestamp": {"seconds": 1493954631, "microseconds": 254479}, "event": "DEVICE_DELETED", "data": {"path": "/machine/peripheral/blk1/virtio-backend"}} {"timestamp": {"seconds": 1493954631, "microseconds": 254586}, "event": "DEVICE_DELETED", "data": {"device": "blk1", "path": "/machine/peripheral/blk1"}} { "execute": "blockdev-del","arguments": { "node-name": "drive2"}} {"return": {}} 4. block layer sanity test pass. 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://access.redhat.com/errata/RHSA-2017:2392 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://access.redhat.com/errata/RHSA-2017:2392 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://access.redhat.com/errata/RHSA-2017:2392 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://access.redhat.com/errata/RHSA-2017:2392 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://access.redhat.com/errata/RHSA-2017:2392 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://access.redhat.com/errata/RHSA-2017:2392 |