Bug 717606
Summary: | screendump fails silently instead of printing an error message | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Michal Privoznik <mprivozn> |
Component: | qemu-kvm | Assignee: | Luiz Capitulino <lcapitulino> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.0 | CC: | areis, juzhang, knoel, lcapitulino, mazhang, mkenneth, shuang, shu, tburke, virt-maint |
Target Milestone: | rc | Keywords: | Reopened |
Target Release: | 7.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu 1.3 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-13 12:00:06 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michal Privoznik
2011-06-29 11:06:50 UTC
Even better solution might be to even fail on that monitor command. Michal, Did you hit this problem in HMP or QMP? Upstream, this is fixed in both by my series that converts the screendump command to the qapi. This means that this will be fixed in RHEL7.0 too (although my series haven't been merged yet). For RHEL6.x, we don't support HMP. I could fix this for QMP if it's an issue for libvirt, but it would require a RHEL-only patch which would return limited information... Is this really needed in 6.4 or can we move it to RHEL7.0? Luiz, I've reproduced the problem in both HMP and QMP on upstream qemu. I haven't tested RHEL qemu though. Maybe it's because your patches haven't been merged yet. Even this being tricky bug (qemu and libvirt subsequently report success even for error case) I am okay with moving this to rhel7. (In reply to comment #6) > Luiz, > > I've reproduced the problem in both HMP and QMP on upstream qemu. I haven't > tested RHEL qemu though. Maybe it's because your patches haven't been merged > yet. Yes, they haven't. I'll respin my series soon and will CC you when I post it. > Even this being tricky bug (qemu and libvirt subsequently report success > even for error case) I am okay with moving this to rhel7. Closing as DEFERRED then. The series converting the screendump command to the qapi has been merged upstream (git log 149474c9..0ab6b636) and, as it adds full error handling, it fixes this bug: (qemu) screendump /tmp/screenshot.ppm failed to open file '/tmp/screenshot.ppm': Permission denied (qemu) Re-opening so that we can track this as a RHEL7 bz. Complementing last comment: we may need to backport patches merged for qemu 1.3 case we don't rebase (in that case RHEL7's base would be qemu 1.2). So, it's better to reopen this so that we can track it properly. Reproduced this bug. Host: qemu-kvm-1.2.0-21.el7.x86_64 kernel-3.7.0-0.36.el7.x86_64 Steps: as root: 1. touch /tmp/screenshot.ppm 2. chmod 0600 /tmp/screenshot.ppm as normal user: 1. start qemu 2. screendump /tmp/screenshot.ppm Result: Qemu fails silently. Verified this bug with qemu-kvm-1.5.3-38.el7.x86_64. Host: kernel-3.10.0-69.el7.x86_64 qemu-kvm-1.5.3-38.el7.x86_64 Result: Qemu prints error message. (qemu) screendump /tmp/screenshot.ppm failed to open file '/tmp/screenshot.ppm': Permission denied This bug has been fixed. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |