Bug 863766 - webadmin: cannot run a stateless vm with java.lang.RuntimeException
Summary: webadmin: cannot run a stateless vm with java.lang.RuntimeException
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.1.0
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: ---
: ---
Assignee: Frantisek Kobzik
QA Contact: Dafna Ron
URL:
Whiteboard: virt
: 864918 (view as bug list)
Depends On:
Blocks: 854491
TreeView+ depends on / blocked
 
Reported: 2012-10-07 10:18 UTC by Dafna Ron
Modified: 2012-12-04 20:01 UTC (History)
10 users (show)

Fixed In Version: si22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-04 20:01:07 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
log (55.56 KB, application/x-xz)
2012-10-07 10:18 UTC, Dafna Ron
no flags Details
log_collector (12.22 MB, application/x-xz)
2012-11-02 09:57 UTC, Martin Pavlik
no flags Details

Description Dafna Ron 2012-10-07 10:18:59 UTC
Created attachment 622952 [details]
log

Description of problem:

we cannot run a stateless vm. 
when running the vm we are getting java.lang.RuntimeException on RunVmCommand
and the stateless snapshot is stuck in image locked


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

si20


How reproducible:

100%

Steps to Reproduce:
1. create a vm with disk
2. edit vm -> check the stateless checkbox
3. run the vm
  
Actual results:

we fail to run the vm with java.lang.RuntimeException and the snapshot is stuck in image locked

Expected results:

we should be able to run the vm and if for any reason operation fails we should release lock on snapshot and roll back. 


Additional info:log

2012-10-07 11:15:56,833 ERROR [org.ovirt.engine.core.bll.CommandsFactory] (pool-4-thread-50) CommandsFactory [parameter: VdcActionParametersBase]: Failed to get type information using reflection for Action: RunVm: java.lang.RuntimeException: could not find matching constructor for Command class class org.ovirt.engine.core.bll.RunVmCommand
        at org.ovirt.engine.core.bll.CommandsFactory.findCommandConstructor(CommandsFactory.java:146) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.CommandsFactory.CreateCommand(CommandsFactory.java:36) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.Backend.endAction(Backend.java:354) [engine-bll.jar:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_05-icedtea]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_05-icedtea]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_05-icedtea]
        at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_05-icedtea]
        at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) [jboss-as-ee.jar:7.1.2.Final-redhat-1]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar:1.1.1.Final-redhat-1]
        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) [jboss-invocation.jar:1.1.1.Final-redhat-1]
        at org.ovirt.engine.core.utils.ThreadLocalSessionCleanerInterceptor.injectWebContextToThreadLocal(ThreadLocalSessionCleanerInterceptor.java:11) [engine-utils.jar:]
        at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source) [:1.7.0_05-icedtea]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_05-icedtea]
        at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_05-icedtea]
        at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:123) [jboss-as-ee.jar:7.1.2.Final-redhat-1]
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation.jar:1.1.1.Final-redhat-1]
:

Comment 1 Frantisek Kobzik 2012-10-10 12:17:39 UTC
In gerrit: http://gerrit.ovirt.org/#/c/8461/

Comment 4 Frantisek Kobzik 2012-10-18 07:47:52 UTC
*** Bug 864918 has been marked as a duplicate of this bug. ***

Comment 6 Martin Pavlik 2012-10-24 11:39:42 UTC
stateless VM can be run in si22 with no issue

Comment 7 Martin Pavlik 2012-11-02 09:57:59 UTC
Created attachment 637017 [details]
log_collector

Comment 8 Martin Pavlik 2012-11-02 10:00:18 UTC
it seems that in si23 this issues is back, VM cannot be stated stateless, snapshot is locked forever

log collector is  attcahed


2012-11-02 10:37:44,963 ERROR [org.ovirt.engine.core.bll.CommandsFactory] (pool-4-thread-47) [2b7fd09e] CommandsFactory [parameter: VdcActionParametersBase]: Failed to get type information using reflection for Action: CreateAllSnapshotsFromVm: java.lang.RuntimeException: could not find matching constructor for Command class class org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand
        at org.ovirt.engine.core.bll.CommandsFactory.findCommandConstructor(CommandsFactory.java:154) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.CommandsFactory.CreateCommand(CommandsFactory.java:36) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.Backend.endAction(Backend.java:366) [engine-bll.jar:]
        at org.ovirt.engine.core.bll.Backend.EndAction(Backend.java:359) [engine-bll.jar:]
        at sun.reflect.GeneratedMethodAccessor366.invoke(Unknown Source) [:1.7.0_09-icedtea]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_09-icedtea]
        at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_09-icedtea]

Comment 9 Michal Skrivanek 2012-11-02 11:23:27 UTC
This is a different issue - please see 872201

Comment 10 Martin Pavlik 2012-11-05 08:59:41 UTC
verified on si24, VM can be started stateless


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