Bug 1261877

Summary: RuntimeException: Failed managing transaction - occurs when refreshing host capabilities and powering off VM.
Product: Red Hat Enterprise Virtualization Manager Reporter: Nisim Simsolo <nsimsolo>
Component: ovirt-engineAssignee: Martin Betak <mbetak>
Status: CLOSED CURRENTRELEASE QA Contact: Nisim Simsolo <nsimsolo>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.6.0CC: gklein, lsurette, michal.skrivanek, nsimsolo, pstehlik, rbalakri, Rhev-m-bugs, sherold, srevivo, ykaul
Target Milestone: ovirt-3.6.0-rc   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-20 01:11:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log
none
server.log none

Description Nisim Simsolo 2015-09-10 11:08:33 UTC
Description of problem:
"Exception: java.lang.RuntimeException: Failed managing transaction" observed on engine.log when doing different engine actions (so far I observed it during host refresh capabilities and powering off suspended VM).
During this exception webadmin functionality is not affected.

Version-Release number of selected component (if applicable):
rhevm-3.6.0-0.13.master.el6
sanlock-3.2.4-1.el7.x86_64
qemu-kvm-rhev-2.3.0-22.el7.x86_64
vdsm-4.17.5-1.el7ev.noarch
libvirt-client-1.2.17-5.el7.x86_64

How reproducible:
Consistently. 

Steps to Reproduce:
1. Open webadmin and refresh host capabilities.
2. Power off suspended VM
3.

Actual results:
Next exception observed on engine log (not sure how it's affecting engine functionality):
2015-09-10 13:53:49,369 ERROR [org.ovirt.engine.core.bll.hostdev.RefreshHostDevicesCommand] (org.ovirt.thread.pool-7-thread-37) [970b11f] Command 'org.ovirt.engine.core.bll.hostdev.RefreshHostDevicesCommand' failed: Failed managing transaction
2015-09-10 13:53:49,369 ERROR [org.ovirt.engine.core.bll.hostdev.RefreshHostDevicesCommand] (org.ovirt.thread.pool-7-thread-37) [970b11f] Exception: java.lang.RuntimeException: Failed managing transaction
.
.
.
Caused by: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.

Expected results:
Exception should not occur.

Additional info:
engine.log attached.
Powering off VM event time: 2015-09-10 13:52:12
Refreshing host capability event time: 2015-09-10 13:53:48

Comment 1 Nisim Simsolo 2015-09-10 11:10:19 UTC
Created attachment 1072099 [details]
engine.log

Comment 2 Martin Betak 2015-09-14 14:29:54 UTC
Hi Nisim,

From the error code: 'ARJUNA016053: Could not commit transaction' this seems to be failure of the underlying JBoss transaction manager.

I tried to reproduce this both on Wildfly and on EAP 6.4 but still could not manage to simulate the failure. Are you sure this happens consistently for you? 

Thanks,

Martin

Comment 3 Nisim Simsolo 2015-09-16 07:45:03 UTC
Hi Martin
This issue happens consistently. 
jboss EAP build: JBoss EAP 6.4.3.GA (AS 7.5.3.Final-redhat-2)
Verified using the next command: grep EAP /var/log/ovirt-engine/server.log

Comment 4 Nisim Simsolo 2015-09-16 11:29:32 UTC
Created attachment 1073982 [details]
server.log

Comment 5 Martin Betak 2015-09-16 11:53:42 UTC
Ok, from the server.logs I can see now the underlying cause. Patch posted upstream.

Comment 6 Nisim Simsolo 2015-11-01 13:43:46 UTC
Verified: 
rhevm-3.6.0.1-0.1.el6 (3.6.0-17)