Bug 1145586

Summary: qemu-kvm will give strange hint when add bps twice for a drive
Product: Red Hat Enterprise Linux 7 Reporter: Jun Li <juli>
Component: qemu-kvm-rhevAssignee: Ademar Reis <areis>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 7.1CC: chayang, hhuang, juzhang, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1145904 (view as bug list) Environment:
Last Closed: 2014-09-24 14:30:18 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: 1145904    

Description Jun Li 2014-09-23 10:43:39 UTC
Description of problem:
when add bps twice for a dirve in command line, qemu-kvm will give hint :
Block format 'raw' used by device 'disk1' doesn't support the option 'bps'.

This hint is very strange. BTW, test other parameters, such as add "format=raw" twice, it will boot as normal and the second setting is effective.
# /usr/libexec/qemu-kvm -m 2G -smp 2 \
-drive file=/home/RHEL-Server-7.0-64-virtio.qcow2,if=none,media='disk',id=drive-ide0-1-0,readonly=off,format='qcow2',bps=0,format=qcow2,format=qcow2 \
-device virtio-blk-pci,drive=drive-ide0-1-0,id=sys-img \
-monitor stdio -spice port=5932,disable-ticketing -qmp tcp::8888,server,nowait -boot menu=on

Version-Release number of selected component (if applicable):
qemu-kvm-rhev-2.1.0-4.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. boot guest with setting "bps=0" twice.
# /usr/libexec/qemu-kvm -m 2G -smp 2 -drive file=/home/RHEL-Server-7.0-64-virtio.qcow2,if=none,media='disk',id=drive-ide0-1-0,readonly=off,format='qcow2',bps=0,bps=0 -device virtio-blk-pci,drive=drive-ide0-1-0,id=sys-img -monitor stdio -spice port=5932,disable-ticketing -qmp tcp::8888,server,nowait -boot menu=on
2. 
3.

Actual results:
After step 1, qemu-kvm will give hint as followings:
qemu-kvm: -drive file=/home/RHEL-Server-7.0-64-virtio.qcow2,if=none,media=disk,id=drive-ide0-1-0,readonly=off,format=qcow2,bps=0,bps=0: could not open disk image /home/RHEL-Server-7.0-64-virtio.qcow2: Block format 'qcow2' used by device 'drive-ide0-1-0' doesn't support the option 'bps'

Expected results:
qemu-kvm should not give hint "doesn't support the option 'bps'". 

Additional info:

Comment 2 Ademar Reis 2014-09-24 14:30:18 UTC
Since RHEL7 supports QEMU via libvirt, this shouldn't affect users, so I'm closing this bug.

(please correct me if you can reproduce it via standard libvirt calls).