Bug 609417 - [vdsm] [libvirt intg] in case vm is paused due to unknown reason by libvirt it remains "up" in vdsm
Summary: [vdsm] [libvirt intg] in case vm is paused due to unknown reason by libvirt i...
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.1
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Dan Kenigsberg
QA Contact: Moran Goldboim
Whiteboard: vdsm * libvirt integration
Depends On:
Blocks: 581275
TreeView+ depends on / blocked
Reported: 2010-06-30 08:56 UTC by Haim
Modified: 2014-01-13 00:46 UTC (History)
6 users (show)

Clone Of:
Last Closed: 2011-08-19 15:22:01 UTC

Attachments (Terms of Use)

Description Haim 2010-06-30 08:56:09 UTC
Description of problem:

there are some conditions where libvirt decides to pause vm (e_no_space for example) and if event is not properly handled by vdsm, then vm will go to pause from libvirt side, but will remain up by vdsm and as a result rhev-m side. 
i know we can't deal with all cases, but at least we should say that in case that pause event is not handled correctly, put vm into pause.

Version-Release number of selected component (if applicable):


How reproducible: run scenario of lvextend on iscsi with sparse allocation - currently it's not dealt correctly, so you will hit this scenario.

Comment 2 RHEL Product and Program Management 2010-06-30 09:23:08 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

Comment 4 Haim 2010-07-30 08:28:52 UTC
Dan, how can I test this flow ? libvirt now handles the enospace event, can you provide me some code to test it ?

Comment 5 Dan Kenigsberg 2010-08-01 07:01:56 UTC
Haim, I told you not to open this bug...

You can comment out the lines
        elif eventid == libvirt.VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON:
            srcPath, devAlias, action, reason = args[:-1]
            v._onAbnormalStop(devAlias, reason)
in libvirtvm.py. The VM should go to Paused even without them.

Comment 6 Haim 2010-08-19 07:14:38 UTC
Dan, we have another unhanded case which creates this state where 'qemu' produces 'eother' error reason (with UDEV case). 

what do you think ?

Comment 7 Dan Kenigsberg 2010-08-19 07:23:45 UTC
let the eother be tracked by its specific BZ. This issue is much more general.

Comment 8 Haim 2010-08-19 07:38:23 UTC
verified then, it only occurs with 'eother' sate. 


Note You need to log in before you can comment on or make changes to this bug.