| Summary: | virsh start guest got "Out of space while reading console log output" errors | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Vivian Bian <vbian> | ||||
| Component: | libvirt | Assignee: | Jiri Denemark <jdenemar> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.1 | CC: | ajia, berrange, dallan, eblake, jyang, mzhan, xen-maint, yoyzhang | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | libvirt-0.8.7-16.el6 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 710404 (view as bug list) | Environment: | |||||
| Last Closed: | 2011-05-19 13:28:29 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 710404 | ||||||
| Attachments: |
|
||||||
|
Description
Vivian Bian
2011-03-02 11:21:59 UTC
The problem is a stack-allocated buffer in qemudWaitForMonitor: char buf[4096] = ""; /* Plenty of space to get startup greeting */ Apparently, it's much less than plenty, it's even not enough since it also needs to accommodate all the debug messages printed by libvirt when it prepares for starting up qemu binary. It was never expected to have to store debug messages. In addition those debug messages aren't really something we want to pass onto the user in the error message. If QEMU fails, we need to figure out how to skip over the libvirt debug messages & just provide the QEMU error message. If we manage that, then 4k should still be sufficient for the QEMU error message. Created attachment 483123 [details]
/var/log/libvirt/qemu/guest.log
Patch sent for review: http://post-office.corp.redhat.com/archives/rhvirt-patches/2011-April/msg00001.html retested with libvirt-0.8.7-16.el6.x86_64 qemu-kvm-0.12.1.2-2.153.el6.x86_64 kernel-2.6.32-128.el6.x86_64 1. virsh start guest for about 30 times , didn't meet "Out of space" error . So set bug status to VERIFIED An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0596.html |