Bug 994891
Summary: | duplicate chardev reported after chardev-remove | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Amit Shah <amit.shah> |
Component: | qemu-kvm | Assignee: | Gerd Hoffmann <kraxel> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.5 | CC: | acathrow, amit.shah, bsarathy, flang, hhuang, juzhang, lersek, mdeng, mkenneth, pbonzini, qzhang, virt-maint |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-0.12.1.2-2.388.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 970548 | Environment: | |
Last Closed: | 2013-11-21 07:08:20 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: | 970548 | ||
Bug Blocks: |
Description
Amit Shah
2013-08-08 08:26:29 UTC
Test this bug on both unfixed version qemu-kvm-0.12.1.2-2.381.el6 and fixed version qemu-kvm-0.12.1.2-2.398.el6, both can not reproduce because failed to add chardev with 'chardev-add' hmp command. Only can hot add it with qmp command. 1. Boot a guest with qmp. 2. (qemu) chardev-add file,path=foo2,id=foo2 chardev-add: unknown type 'q' ======> Failed to hot add chardev with HMP. 3. Tried with qmp commands. (1) All with qmp commands: {"execute":"chardev-add","arguments":{"id":"foo2","backend":{"type":"file","data":{"out":"foo2"}}}} {"return": {}} {"execute":"chardev-remove","arguments":{"id":"foo2"}} {"return": {}} {"execute":"chardev-add","arguments":{"id":"foo2","backend":{"type":"file","data":{"out":"foo2"}}}} {"return": {}} {"execute":"chardev-remove","arguments":{"id":"foo2"}} {"return": {}} {"execute":"chardev-add","arguments":{"id":"foo2","backend":{"type":"file","data":{"out":"foo2"}}}} {"return": {}} (2) qmp + HMP commands: {"execute":"chardev-add","arguments":{"id":"foo2","backend":{"type":"file","data":{"out":"foo2"}}}} {"return": {}} (qemu) info chardev monitor: filename=stdio charserial0: filename=pty:/dev/pts/2 charchannel0: filename=unix:/var/lib/libvirt/qemu/r6.agent,server monitor1: filename=tcp:0.0.0.0:5555,server foo2: filename=file (qemu) chardev-remove foo2 =====> HMP "chardev-remove" works. (qemu) (qemu) info chardev monitor: filename=stdio charserial0: filename=pty:/dev/pts/2 charchannel0: filename=unix:/var/lib/libvirt/qemu/r6.agent,server monitor1: filename=tcp:0.0.0.0:5555,server {"execute":"chardev-add","arguments":{"id":"foo2","backend":{"type":"file","data":{"out":"foo2"}}}} {"return": {}} (qemu) chardev-remove foo2 (qemu) {"execute":"chardev-add","arguments":{"id":"foo2","backend":{"type":"file","data":{"out":"foo2"}}}} {"return": {}} (qemu) chardev-remove foo2 (qemu) Amit, we talked about this before, do you have some suggestion? (In reply to Qunfang Zhang from comment #5) > Test this bug on both unfixed version qemu-kvm-0.12.1.2-2.381.el6 and fixed > version qemu-kvm-0.12.1.2-2.398.el6, both can not reproduce because failed > to add chardev with 'chardev-add' hmp command. Only can hot add it with qmp > command. > Amit, we talked about this before, do you have some suggestion? Yes, the hmp command doesn't work in RHEL6, and there are no plans to fix it. Since the fix is obvious by code review, and since it fixes things for RHEL7, let's use that data for this bug too? (In reply to Amit Shah from comment #6) > (In reply to Qunfang Zhang from comment #5) > > Test this bug on both unfixed version qemu-kvm-0.12.1.2-2.381.el6 and fixed > > version qemu-kvm-0.12.1.2-2.398.el6, both can not reproduce because failed > > to add chardev with 'chardev-add' hmp command. Only can hot add it with qmp > > command. > > > Amit, we talked about this before, do you have some suggestion? > > Yes, the hmp command doesn't work in RHEL6, and there are no plans to fix it. > > Since the fix is obvious by code review, and since it fixes things for > RHEL7, let's use that data for this bug too? Okay, agree that and as we can not reproduce it in the latest qemu-kvm with qmp commands. So I will verify it. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-1553.html |