Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 861154

Summary: engine: several multiple RemoveVmCommand get java.lang.RuntimeException when restarting engine
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: mkublin <mkublin>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: high Docs Contact:
Priority: urgent    
Version: 3.1.0CC: acathrow, amureini, bazulay, dyasny, iheim, lpeer, mkublin, oramraz, Rhev-m-bugs, yeylon, ykaul, yzaslavs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: infra
Fixed In Version: si20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 20:05:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
log none

Description Dafna Ron 2012-09-27 16:15:11 UTC
Created attachment 618191 [details]
log

Description of problem:

I removed a large number of vms (created 100 vms selected and deleted about 10-15 at a time) + restart of engine will cause the following error in engine log: 

2012-09-27 17:56:08,874 ERROR [org.ovirt.engine.core.bll.CommandsFactory] (pool-4-thread-40) CommandsFactory [parameter: VdcActionParametersBase]: Failed to get type information using reflection for Action: RemoveVm: java.lang.RuntimeException: could not find matching constructor for Command class class org.ovirt.engine.core.bll.RemoveVmCommand


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

si19

Steps to Reproduce:
1. create 100vms
2. select 10-15 each time and remove them until you remove all vms
3. restart engine
  
Actual results:

2012-09-27 17:56:08,874 ERROR [org.ovirt.engine.core.bll.CommandsFactory] (pool-4-thread-40) CommandsFactory [parameter: VdcActionParametersBase]: Failed to get type information using reflection for Action: RemoveVm: java.lang.RuntimeException: could not find matching constructor for Command class class org.ovirt.engine.core.bll.RemoveVmCommand


Expected results:

no exception should happen

Additional info:log

Comment 1 mkublin 2012-10-02 08:22:06 UTC
The problem is a following : we have a code at CommandBase which should update
task with parameters of parent command the code is unneeded, the fix is easy, benefit a bug will be solved and we will reduce at least two updates of DB on each task.

The patch for upstream:
http://gerrit.ovirt.org/#/c/8291/

Comment 2 mkublin 2012-10-02 09:30:14 UTC
merged upstream

Comment 5 Dafna Ron 2012-11-27 14:16:46 UTC
verified on si24.4
there is a different issue - the disks are staying in locked state even though we write that they are moved to illegal. new bug will be opened.