Bug 983823

Summary: "unsupported bus type" when useing "drive_add" takes drive id anyway
Product: Red Hat Enterprise Linux 7 Reporter: Shaolong Hu <shu>
Component: qemu-kvmAssignee: Kevin Wolf <kwolf>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, hhuang, juzhang, 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-12-06 12:56:19 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 Shaolong Hu 2013-07-12 02:59:28 UTC
Description of problem:
------------------------
Use "drive_add" with an invalid bus type "if=XXX" takes the drive id, following drive_add with same drive id fails.


Version-Release number of selected component (if applicable):
--------------------------------------------------------------
qemu-kvm-1.5.1-2.el7.x86_64


How reproducible:
------------------
100%

Steps to Reproduce:
-----------------------
(qemu) drive_add auto file=/root/nfs/RHEL-Server-7.0-64-virtio.qcow2,id=drive-scsi0-0-3,format=qcow2,werror=stop,if=dsfsd,cache=none,media=disk
unsupported bus type 'dsfsd'
(qemu) drive_add auto file=/root/nfs/RHEL-Server-7.0-64-virtio.qcow2,id=drive-scsi0-0-3,format=qcow2,werror=stop,if=none,cache=none,media=disk
Duplicate ID 'drive-scsi0-0-3' for drive


Expected results:
-------------------
Failed drive_add should not take the drive id.

Comment 2 Ademar Reis 2013-12-06 12:56:19 UTC
QMP-only bug, not supported in RHEL7 (not triggered by libvirt)