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

Bug 1138419

Summary: VMs pool disappeared after creating a Sub Template version
Product: [Retired] oVirt Reporter: meital avital <mavital>
Component: ovirt-engine-coreAssignee: Ravi Nori <rnori>
Status: CLOSED CURRENTRELEASE QA Contact: meital avital <mavital>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.5CC: ecohen, gklein, iheim, ofrenkel, oourfali, rbalakri, rnori, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: ovirt-3.5.0_rc3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-17 12:22:51 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
VDSM log
none
Engine log none

Description meital avital 2014-09-04 18:25:21 UTC
Description of problem:
VMs pool disappeared after creating a Sub Template version

Version-Release number of selected component (if applicable):
ovirt-3.5.0_rc1.1

How reproducible:
100%

Steps to Reproduce:
1.Create VM with Small Instance Type 
2.Create Template from this VM
3.Create Pool with this Template and with Template Version = latest and with Medium instance Type
4.Update the VM (from step 1) change the Instace Type to Lage
5.Create Sub Template Version (of the Template from step 2) from the updated VM


Actual results:
All the VMs of the pool disappeared (removed) and can't open the pool edit dialog

Expected results:
The VMs are not supposed to disappear 

Additional info:

Comment 1 meital avital 2014-09-04 18:29:04 UTC
Created attachment 934589 [details]
VDSM log

Comment 2 meital avital 2014-09-04 18:36:22 UTC
Created attachment 934591 [details]
Engine log

Comment 3 Omer Frenkel 2014-09-07 13:56:54 UTC
Ravi, can you please help here? what is missing/changed that caused this? 
this is regression from 3.4
i see this in the log :

2014-09-04 20:53:22,636 ERROR [org.ovirt.engine.core.bll.CommandsFactory] (org.ovirt.thread.pool-8-thread-37) An exception has occured while trying to create a command object for command UpdateVmVersion: java.lang.RuntimeException: could not find matching constructor for Command class class org.ovirt.engine.core.bll.UpdateVmVersionCommand
	at org.ovirt.engine.core.bll.CommandsFactory.findCommandConstructor(CommandsFactory.java:206) [bll.jar:]
	at org.ovirt.engine.core.bll.CommandsFactory.createCommand(CommandsFactory.java:62) [bll.jar:]
	at org.ovirt.engine.core.bll.CommandsFactory.createCommand(CommandsFactory.java:54) [bll.jar:]
	at org.ovirt.engine.core.bll.tasks.CoCoAsyncTaskHelper.endAction(CoCoAsyncTaskHelper.java:321) [bll.jar:]
	at org.ovirt.engine.core.bll.tasks.CommandCoordinatorImpl.endAction(CommandCoordinatorImpl.java:350) [bll.jar:]
	at org.ovirt.engine.core.bll.tasks.CommandAsyncTask.endCommandAction(CommandAsyncTask.java:149) [bll.jar:]
	at org.ovirt.engine.core.bll.tasks.CommandAsyncTask.access$000(CommandAsyncTask.java:28) [bll.jar:]
	at org.ovirt.engine.core.bll.tasks.CommandAsyncTask$1.run(CommandAsyncTask.java:109) [bll.jar:]
	at org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil$InternalWrapperRunnable.run(ThreadPoolUtil.java:90) [utils.jar:]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]

2014-09-04 20:53:22,644 INFO  [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (org.ovirt.thread.pool-8-thread-38) CommandAsyncTask::HandleEndActionResult: endAction for action type UpdateVmVersion threw an unrecoverable RuntimeException the task will be cleared.
2014-09-04 20:53:22,652 ERROR [org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (org.ovirt.thread.pool-8-thread-37) [within thread]: endAction for action type UpdateVmVersion threw an exception.: java.lang.NullPointerException
	at org.ovirt.engine.core.bll.tasks.CoCoAsyncTaskHelper.endAction(CoCoAsyncTaskHelper.java:322) [bll.jar:]
	at org.ovirt.engine.core.bll.tasks.CommandCoordinatorImpl.endAction(CommandCoordinatorImpl.java:350) [bll.jar:]
	at org.ovirt.engine.core.bll.tasks.CommandAsyncTask.endCommandAction(CommandAsyncTask.java:149) [bll.jar:]
	at org.ovirt.engine.core.bll.tasks.CommandAsyncTask.access$000(CommandAsyncTask.java:28) [bll.jar:]
	at org.ovirt.engine.core.bll.tasks.CommandAsyncTask$1.run(CommandAsyncTask.java:109) [bll.jar:]
	at org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil$InternalWrapperRunnable.run(ThreadPoolUtil.java:90) [utils.jar:]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_65]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_65]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]

Comment 4 meital avital 2014-10-12 10:47:12 UTC
Verified - vt5

Comment 5 Sandro Bonazzola 2014-10-17 12:22:51 UTC
oVirt 3.5 has been released and should include the fix for this issue.