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 ***