Bug 889051
Summary: | Commands "__com.redhat_drive_add/del" don' t exist in RHEL7.0 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | juzhang <juzhang> |
Component: | qemu-kvm | Assignee: | Markus Armbruster <armbru> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | urgent | ||
Version: | 7.0 | CC: | areis, armbru, bili, eblake, flang, juzhang, knoel, lcapitulino, michen, mrezanin, qzhang, sluo, thomas.oulevey, unicell, virt-maint |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-1.5.3-30.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-13 13:10:23 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: | 720747, 895240, 1026966 |
Description
juzhang
2012-12-20 06:20:49 UTC
Additional info: 3. I tested latest upstream(qemu1.3), hit the same issue. You're right that the commands don't exist in RHEL7.0 and upstream. Those commands (and any commands starting with __com.redhat_) are Red Hat specific commands and exist only in RHEL6.4. IIRC, the upstream solution is/was to have new block commands for that, which were/are being worked on by Markus. Either, we get the replacement commands merged upstream in time for RHEL-7.0 or we'll have to forward port the RHEL6 ones to RHEL-7.0. Re-assigning to Markus, as (if my memory isn't failing me) he was the person who worked on the __com.redhat_drive_add/del commands. *** Bug 907290 has been marked as a duplicate of this bug. *** After adding __com.redhat_drive_add command, drive_add command should be disabled as we will use downstream version instead of upstream one. *** Bug 1032388 has been marked as a duplicate of this bug. *** Hi Markus, Could you help see comment #7, this lack of __com.redhat_drive_add/del effect our hotpluging functional testing and bug 1032388 was duplicated to this one, so could you help to fixed this bug soon ? Thanks in advance. Best Regards, sluo I hope to post my patch today. Reproduce this bus as follow version: Host: qemu-kvm-1.5.3-21.el7.x86_64 Guest:rhel7 Steps: 1.Boot guest with "/usr/libexec/qemu-kvm -qmp tcp:0:4445,server,nowait....." 2.Host: telnet 10.66.106.21 4445 Trying 10.66.106.21... Connected to 10.66.106.21. Escape character is '^]'. {"QMP": {"version": {"qemu": {"micro": 3, "minor": 5, "major": 1}, "package": " (qemu-kvm-1.5.3-21.el7)"}, "capabilities": []}} {"execute":"qmp_capabilities"} {"return": {}} {"execute":"query-commands"} Results: can't found "__com.redhat_drive_add/del" commands Verify this bug as follow version: Host: qemu-kvm-1.5.3-30.el7.x86_64 Steps as same as reproduce Results: {"execute":"query-commands"} {"return": [{"name": "query-rx-filter"}, {"name": "blockdev-add"}, {"name": "chardev-remove"}, {"name": "chardev-add"}, {"name": "query-tpm-types"}, {"name": "query-tpm-models"}, {"name": "query-tpm"}, {"name": "query-target"}, {"name": "query-cpu-definitions"}, {"name": "query-machines"}, {"name": "device-list-properties"}, {"name": "qom-list-types"}, {"name": "change-vnc-password"}, {"name": "nbd-server-stop"}, {"name": "nbd-server-add"}, {"name": "nbd-server-start"}, {"name": "qom-get"}, {"name": "qom-set"}, {"name": "qom-list"}, {"name": "query-block-jobs"}, {"name": "query-balloon"}, {"name": "query-migrate-capabilities"}, {"name": "migrate-set-capabilities"}, {"name": "query-migrate"}, {"name": "query-command-line-options"}, {"name": "query-uuid"}, {"name": "query-name"}, {"name": "query-spice"}, {"name": "query-vnc"}, {"name": "query-mice"}, {"name": "query-status"}, {"name": "query-kvm"}, {"name": "query-pci"}, {"name": "query-cpus"}, {"name": "query-blockstats"}, {"name": "query-block"}, {"name": "query-chardev"}, {"name": "query-events"}, {"name": "query-commands"}, {"name": "query-version"}, {"name": "human-monitor-command"}, {"name": "qmp_capabilities"}, {"name": "add_client"}, {"name": "expire_password"}, {"name": "set_password"}, {"name": "block_set_io_throttle"}, {"name": "block_passwd"}, {"name": "query-fdsets"}, {"name": "remove-fd"}, {"name": "add-fd"}, {"name": "closefd"}, {"name": "getfd"}, {"name": "set_link"}, {"name": "balloon"}, {"name": "block-job-complete"}, {"name": "block-job-resume"}, {"name": "block-job-pause"}, {"name": "block-job-cancel"}, {"name": "block-job-set-speed"}, {"name": "block_resize"}, {"name": "netdev_del"}, {"name": "netdev_add"}, {"name": "dump-guest-memory"}, {"name": "client_migrate_info"}, {"name": "migrate_set_downtime"}, {"name": "migrate_set_speed"}, {"name": "query-migrate-cache-size"}, {"name": "migrate-set-cache-size"}, {"name": "migrate_cancel"}, {"name": "migrate"}, {"name": "xen-set-global-dirty-log"}, {"name": "xen-save-devices-state"}, {"name": "ringbuf-read"}, {"name": "ringbuf-write"}, {"name": "inject-nmi"}, {"name": "pmemsave"}, {"name": "memsave"}, {"name": "cpu-add"}, {"name": "cpu"}, {"name": "send-key"}, {"name": "device_del"}, {"name": "device_add"}, {"name": "system_powerdown"}, {"name": "system_reset"}, {"name": "system_wakeup"}, {"name": "cont"}, {"name": "stop"}, {"name": "__com.redhat_qxl_screendump"}, {"name": "screendump"}, {"name": "change"}, {"name": "__com.redhat_drive_del"}, {"name": "__com.redhat_drive_add"}, {"name": "eject"}, {"name": "quit"}]} Can found commands "__com.redhat_drive_add/del" Addtional info: 1)Try add/del blk ... { "execute": "__com.redhat_drive_add", "arguments": { "id": "drive1","file":"/home/disk01.img","format":"qcow2"} } {"return": {}} { "execute": "device_add", "arguments": { "driver": "virtio-blk-pci","drive":"drive1","id": "virtio-blk-pci1" } } {"return": {}} { "execute": "__com.redhat_drive_del", "arguments": { "id": "drive1" } } {"return": {}} the command work well According to above test,this bug has been fixed. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |