Bug 999024 - [engine-backend] EJBComponentUnavailableException when engine crashes after task of CreateSnapshotVDSCommand was sent
Summary: [engine-backend] EJBComponentUnavailableException when engine crashes after t...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.3.0
Hardware: x86_64
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.4.0
Assignee: Martin Perina
QA Contact: Tareq Alayan
URL:
Whiteboard: infra
Depends On:
Blocks: rhev3.4beta 1142926
TreeView+ depends on / blocked
 
Reported: 2013-08-20 14:35 UTC by Elad
Modified: 2016-02-10 19:14 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-12 12:54:35 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs (928.30 KB, application/x-gzip)
2013-08-20 14:35 UTC, Elad
no flags Details
engine.log (1.26 MB, application/x-gzip)
2013-08-25 14:25 UTC, Elad
no flags Details
server.log (45 bytes, application/x-gzip)
2013-09-10 06:46 UTC, Elad
no flags Details

Description Elad 2013-08-20 14:35:58 UTC
Created attachment 788521 [details]
logs

Description of problem:
When engine looses it's connection with host after CreateSnapshotVDSCommand was send, it throws this exception in log:

2013-08-20 16:01:40,877 ERROR [org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] (DefaultQuartzScheduler_Worker-74) EJBComponentUnavailableException: JBAS014559: Invocation cannot proceed as component is shutting down: org.jboss.as.ejb3.component.EJBComponentUnavailableException: JBAS014559: Invocation cannot proceed as component is shutting down
        at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:59) [jboss-as-ejb3.jar:7.2.0.Final-redhat-8]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar:1.1.1.Final-redhat-2]

Version-Release number of selected component (if applicable):
rhevm-3.3.0-0.15.master.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
On a block pool:
- create a snapshot to vm and restart vdsm right after the task starts


Actual results:
When vdsm crashes after engine send the createVolume command, engine throws the mentioned exception. 
There are no other issues, just the exception in log

Expected results:
Engine should revert the CreateSnapshotVDSCommand without throwing these exception 


Additional info:
logs

Comment 1 Elad 2013-08-20 15:02:48 UTC
CORRECTION:
Engine throws this exception after it crashes after CreateSnapshotVDSCommand was send.
So the reproduction step is to create a snapshot to vm and restart ovirt-engine right after the task starts on spm.

Comment 2 Barak 2013-08-25 13:59:27 UTC
Does the operation succeeds ?

Comment 3 Elad 2013-08-25 14:23:58 UTC
No, engine performs roll-back for CreateAllSnapshotsFromVmCommand. The roll-back ends successfully. The only problem here is the log issue

Attaching the relevant engine.log

Comment 4 Elad 2013-08-25 14:25:28 UTC
Created attachment 790093 [details]
engine.log

Comment 5 Roy Golan 2013-09-10 06:21:43 UTC
(In reply to Elad from comment #1)
> CORRECTION:
> Engine throws this exception after it crashes after CreateSnapshotVDSCommand
> was send.
> So the reproduction step is to create a snapshot to vm and restart
> ovirt-engine right after the task starts on spm.

1st please supply the server.log as well

2nd The engine doesn't crash. it shuts down so the EJB components (LockManager, DB connection manager etc) throws exceptions with a clear message (component is shutting down)

The real issue here is WHY the engine shuts down? 

bug  962180 with possibly similar case so I want to know if thats a real issue.

Comment 6 Elad 2013-09-10 06:44:27 UTC
(In reply to Roy Golan from comment #5)
> (In reply to Elad from comment #1)
> > CORRECTION:
> > Engine throws this exception after it crashes after CreateSnapshotVDSCommand
> > was send.
> > So the reproduction step is to create a snapshot to vm and restart
> > ovirt-engine right after the task starts on spm.
> 
> 1st please supply the server.log as well
> 
> 2nd The engine doesn't crash. it shuts down so the EJB components
> (LockManager, DB connection manager etc) throws exceptions with a clear
> message (component is shutting down)
> 
> The real issue here is WHY the engine shuts down? 
That was part of the my test - the restart was done manually. The only issue is the ugly exception


server.log will be attached

Comment 7 Elad 2013-09-10 06:46:30 UTC
Created attachment 795856 [details]
server.log

Comment 8 Roy Golan 2013-09-10 06:54:32 UTC
(In reply to Elad from comment #6)
> (In reply to Roy Golan from comment #5)
> > (In reply to Elad from comment #1)
> > > CORRECTION:
> > > Engine throws this exception after it crashes after CreateSnapshotVDSCommand
> > > was send.
> > > So the reproduction step is to create a snapshot to vm and restart
> > > ovirt-engine right after the task starts on spm.
> > 
> > 1st please supply the server.log as well
> > 
> > 2nd The engine doesn't crash. it shuts down so the EJB components
> > (LockManager, DB connection manager etc) throws exceptions with a clear
> > message (component is shutting down)
> > 
> > The real issue here is WHY the engine shuts down? 
> That was part of the my test - the restart was done manually. The only issue
> is the ugly exception
> 

not an issue.
> 
> server.log will be attached

Comment 9 Martin Perina 2013-12-12 12:54:35 UTC
(In reply to Elad from comment #0)
> Created attachment 788521 [details]
> logs
> 
> Description of problem:
> When engine looses it's connection with host after CreateSnapshotVDSCommand
> was send, it throws this exception in log:
> 
> 2013-08-20 16:01:40,877 ERROR
> [org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo]
> (DefaultQuartzScheduler_Worker-74) EJBComponentUnavailableException:
> JBAS014559: Invocation cannot proceed as component is shutting down:
> org.jboss.as.ejb3.component.EJBComponentUnavailableException: JBAS014559:
> Invocation cannot proceed as component is shutting down
>         at
> org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.
> processInvocation(ShutDownInterceptorFactory.java:59)
> [jboss-as-ejb3.jar:7.2.0.Final-redhat-8]
>         at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation.jar:1.1.1.Final-redhat-2]

This is standard JBoss error message when you try to invoke some method on EJB during JBoss shutdown. Since the rollback was successful, there's no error.


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