Bug 515270
| Summary: | RFE: Notifications of guest stopping due to disk I/O errors | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Daniel Berrangé <berrange> | |
| Component: | libvirt | Assignee: | Dave Allan <dallan> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | low | |||
| Version: | 6.0 | CC: | hbrock, lcapitulino, mjenner, nzhang, syeghiay, tburke, veillard, xen-maint | |
| Target Milestone: | rc | Keywords: | FutureFeature | |
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | libvirt-0.7.8-0.pre20100330.el6 | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 536947 (view as bug list) | Environment: | ||
| Last Closed: | 2010-07-02 19:24:28 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: | ||||
| Bug Depends On: | 547501, 586014 | |||
| Bug Blocks: | 526231, 536947 | |||
|
Description
Daniel Berrangé
2009-08-03 15:00:24 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. Dan, is this fixed in the monitor patch series? The monitor patches merely put in place the infrastructure, they didn't hook up any of the events yet because that's waiting on the JSON work in QEMU. Once that's ready we'll support this. A proof of concept is posted upstream. This will always set werror=stop, rerror=stop and switch libvirt state to PAUSED, and emit an error apps can detect http://www.redhat.com/archives/libvir-list/2010-February/msg00545.html We need to update this to allow passing a flag to QEMU to tell it *not* to pause the VM on i/o error (there are cases where you want the VM to receive an i/o error so it can act on it). We currently have a bug in QMP that when the i/o error occurs several events are emitted: https://bugzilla.redhat.com/show_bug.cgi?id=568098 Now, the point is that I'm not sure whether this is a bug for all possible cases. It's something I'd expect if action is ignore, for example. Posted as part of this thread http://www.redhat.com/archives/libvir-list/2010-March/msg00804.html This patch does IO error events http://www.redhat.com/archives/libvir-list/2010-March/msg00816.html libvirt-0.7.8-0.pre20100330.el6 was built in RHEL-6-candidate with the patches Daniel Verified with libvirt-0.8.1-9.el6.x86_64. libvirt can catch the disk I/O errors events. Moving to VERIFIED.
15:23:55.912: debug : qemuMonitorJSONIOProcessEvent:86 : mon=0x7f3cb008f5b0 obj=0x7f3cc809cf70
15:23:55.912: debug : qemuMonitorJSONIOProcessEvent:99 : handle BLOCK_IO_ERROR handler=0x478330 data=0x7f3cc809d900
15:23:55.912: warning : qemuMonitorJSONHandleIOError:597 : missing reason in disk io error event
15:23:55.912: debug : qemuMonitorJSONIOProcess:188 : Total used 208 bytes out of 208 available in buffer
15:23:55.913: debug : qemuMonitorJSONIOProcessLine:115 : Line [{"timestamp": {"seconds": 1277321035, "microseconds": 913367}, "event": "BLOCK_IO_ERROR", "data": {"device": "drive-virtio-disk1", "__com.redhat_reason": "eother", "operation": "write", "action": "report"}}]
Red Hat Enterprise Linux Beta 2 is now available and should resolve the problem described in this bug report. This report is therefore being closed with a resolution of CURRENTRELEASE. You may reopen this bug report if the solution does not work for you. |