Bug 996082

Summary: [rhevm_33] - Backend - Cannot run a vm (Cannot run VM. VM is running)
Product: Red Hat Enterprise Virtualization Manager Reporter: David Botzer <dbotzer>
Component: ovirt-engineAssignee: Omer Frenkel <ofrenkel>
Status: CLOSED NOTABUG QA Contact:
Severity: urgent Docs Contact:
Priority: high    
Version: 3.3.0CC: acathrow, dbotzer, hateya, iheim, lpeer, lsvaty, michal.skrivanek, pstehlik, Rhev-m-bugs, yeylon
Target Milestone: ---Keywords: Regression, Triaged
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-22 14:10:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Engine-logs
none
vdsm-101
none
host-mem-general none

Description David Botzer 2013-08-12 11:32:09 UTC
Created attachment 785654 [details]
Engine-logs

Description of problem:
Clean installation with 1 host & one VM, cannot run VM
I get error when trying to run a vm,
Error while executing action:
Test-221:
   * Cannot run VM. VM is running. 

Version-Release number of selected component (if applicable):
3.3/is9.1

How reproducible:
always

Steps to Reproduce:
1.Clean install rhevm+dwh
2.create a VM from template or Blank 
3.Try to run any VM

Actual results:
Failed with inappropriate error

1.
Error while executing action:
Test-221:
   * Cannot run VM. VM is running. 
2.
Error while executing action Run VM once: Internal Engine Error

Expected results:
Any VM should be able to run, or an appropriate error message suggesting the error should be displayed

Additional info:
GUI
------
Error while executing action Run VM once: Internal Engine Error

engine.log
-----------
2013-08-12 14:20:42,652 ERROR [org.ovirt.engine.core.bll.RunVmCommand] (pool-5-thread-6) [3bb21a0c] Command org.ovirt.engine.core.bll.RunVmCommand throw exception: java.lang.NullPointerException
        at org.ovirt.engine.core.bll.VDSBrokerFrontendImpl.RunAsyncVdsCommand(VDSBrokerFrontendImpl.java:56) [bll.jar:]
        at org.ovirt.engine.core.bll.RunVmCommand.createVm(RunVmCommand.java:471) [bll.jar:]
        at org.ovirt.engine.core.bll.RunVmCommand.runVm(RunVmCommand.java:237) [bll.jar:]
        at org.ovirt.engine.core.bll.RunVmCommand.executeVmCommand(RunVmCommand.java:307) [bll.jar:]
        at org.ovirt.engine.core.bll.VmCommand.executeCommand(VmCommand.java:85) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.executeWithoutTransaction(CommandBase.java:1128) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.executeActionInTransactionScope(CommandBase.java:1213) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:1860) [bll.jar:]
        at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.java:174) [utils.jar:]
        at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInScope(TransactionSupport.java:116) [utils.jar:]
        at org.ovirt.engine.core.bll.CommandBase.execute(CommandBase.java:1231) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.executeAction(CommandBase.java:365) [bll.jar:]
        at org.ovirt.engine.core.bll.MultipleActionsRunner.executeValidatedCommand(MultipleActionsRunner.java:175) [bll.jar:]
        at org.ovirt.engine.core.bll.MultipleActionsRunner.RunCommands(MultipleActionsRunner.java:156) [bll.jar:]
        at org.ovirt.engine.core.bll.SortedMultipleActionsRunnerBase.RunCommands(SortedMultipleActionsRunnerBase.java:17) [bll.jar:]
        at org.ovirt.engine.core.bll.MultipleActionsRunner$1.run(MultipleActionsRunner.java:94) [bll.jar:]
        at org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil$InternalWrapperRunnable.run(ThreadPoolUtil.java:71) [utils.jar:]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_25]
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_25]
        at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_25]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
        at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

2013-08-12 14:20:42,665 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (pool-5-thread-6) [3bb21a0c] Correlation ID: 3bb21a0c, Job ID: d7022d51-d2b6-4459-a597-578dd1ab3924, Call Stack: null, Custom Event ID: -1, Message: Failed to run VM Test-221 (User: admin@internal).

Comment 1 David Botzer 2013-08-12 11:34:17 UTC
Created attachment 785655 [details]
vdsm-101

Comment 2 David Botzer 2013-08-12 11:38:16 UTC
Created attachment 785657 [details]
host-mem-general

Comment 3 David Botzer 2013-08-12 12:10:31 UTC
I tried to workaround the issue & to change the default "MacPoolRanges"
rhevm-config -s MacPoolRanges=.......

As a result when I create new VM, all fields are empty

Comment 6 Michal Skrivanek 2013-08-22 12:33:53 UTC
which VM? name please. 
status of the host in GUI?
virsh -r list on the host?

Comment 7 David Botzer 2013-08-22 12:48:17 UTC
Hi,
VM name is Test-221
Host status is Active

Setup doesnt exists anymore, so i cannot virsh list

Test-221:
   * Cannot run VM. VM is running.

Comment 8 Michal Skrivanek 2013-08-22 13:31:44 UTC
then there's little we can do. Assumption is the VM with the same name was already on the host, but that cannot be proven. As long as a reguler any other VM on any other setup can be run successfully this will need to be closed WORKSFORME...

Comment 9 David Botzer 2013-08-22 14:10:54 UTC
ok,