Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 907290

Summary: No "drive_add"/"drive_del" related QMP commands to hot plug/unplug disk
Product: Red Hat Enterprise Linux 7 Reporter: Qunfang Zhang <qzhang>
Component: qemu-kvmAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, juzhang, lcapitulino, michen, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-04 11:31:53 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:

Description Qunfang Zhang 2013-02-04 03:20:36 UTC
Description of problem:
In the current rhel7 qemu-kvm, there's no "__com.redhat_drive_add"/"drive_add" and "__com.redhat_drive_del"/"drive_del" qmp commands so can not do hot plug and unplug disk operations.

Luiz mentioned in bz 889051 that the "__com.redhat_*" commands are rhel6.4 specified. And if finally there's no "__com.redhat_*" commands in rhel7.0, we need to add "drive_add"/"drive_del" commands to qmp. Otherwise (if rhel7.0 has "__com.redhat_*" commands we also need to have it for qmp as well.
Create this bug to track this issue.

Version-Release number of selected component (if applicable):
kernel-3.7.0-0.33.el7.x86_64
qemu-kvm-1.3.0-3.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Boot guest with qmp.

2. Connect to qmp server and query the qmp commands.
 {"execute":"qmp_capabilities"}
{"return": {}}

{"execute":"query-commands"}

3.
  
Actual results:
There's no "__com.redhat_drive_add"/"drive_add" and "__com.redhat_drive_del"/"drive_del" qmp commands so can not do disk hot plug/unplug operations.

Expected results:
Need to include commands to do disk hot plug and unplug.

Additional info:

Comment 2 Luiz Capitulino 2013-02-04 11:31:53 UTC
Qunfang, we can use bug 889051 for this, there's no need to create a new one.

*** This bug has been marked as a duplicate of bug 889051 ***