Bug 807154

Summary: [ovirt] [web-admin] expose more informative error when vm is failed to run on events tabs
Product: [Retired] oVirt Reporter: Haim <hateya>
Component: ovirt-engine-webadminAssignee: Einav Cohen <ecohen>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, dyasny, ecohen, iheim, mgoldboi, michal.skrivanek, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-12 10:43:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Haim 2012-03-27 07:52:21 UTC
Description of problem:

- started several vms after hibernation
- noticed that one of the vms failed to run
- opened events tab in vm context (click on vm, events tab)
- got the following message: 
  Failed to run VM $vmname on host $hostname

- opened console to $hostname, but didn't notice any errors. 
- opened engine logs, looked for $vmname and saw the following log:


2012-03-27 09:42:22,002 INFO  [org.ovirt.engine.core.vdsbroker.CreateVmVDSCommand] (pool-5-thread-50) [1a4ac1a6] Vm Running failed - vm 1b52d502-880a-4c39-83bd-8e71a108ddcd:IgorFix-06 already running
2012-03-27 09:42:22,002 INFO  [org.ovirt.engine.core.vdsbroker.CreateVmVDSCommand] (pool-5-thread-50) [1a4ac1a6] FINISH, CreateVmVDSCommand, return: Suspended, log id: 18f6395b
2012-03-27 09:42:22,009 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand] (pool-5-thread-39) [7b61cf1a] START, CreateVDSCommand(vdsId = fec2f7b6-71db-11e1-8631-9b877a97bb15, vmId=abd99d69-448d-4df1-b6d9-889283a703bf, vm=org.ovirt.engine.core.common.businessentities.VM@2342a9ba), log id: 6af37ecf
2012-03-27 09:42:22,018 INFO  [org.ovirt.engine.core.bll.RunVmCommand] (pool-5-thread-50) [1a4ac1a6] Failed to run desktop IgorFix-06, rerun
2012-03-27 09:42:22,061 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.IsValidVDSCommand] (pool-5-thread-43) [1a4ac1a6] START, IsValidVDSCommand(storagePoolId = 552256b8-3266-4930-9d13-f9c7ff636f35, ignoreFailoverLimit = false, compatabilityVersion = null), log id: 1108d6ae
2012-03-27 09:42:22,063 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.IsValidVDSCommand] (pool-5-thread-43) [1a4ac1a6] FINISH, IsValidVDSCommand, return: true, log id: 1108d6ae
2012-03-27 09:42:22,079 INFO  [org.ovirt.engine.core.bll.RunVmCommand] (pool-5-thread-50) [53f81d66] Running command: RunVmCommand internal: false. Entities affected :  ID: abd99d69-448d-4df1-b6d9-889283a703bf Type: VM
2012-03-27 09:42:22,093 INFO  [org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] (pool-5-thread-43) [1a4ac1a6] START, IsVmDuringInitiatingVDSCommand(vmId = 1b52d502-880a-4c39-83bd-8e71a108ddcd), log id: 38d916d0
2012-03-27 09:42:22,093 INFO  [org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] (pool-5-thread-43) [1a4ac1a6] FINISH, IsVmDuringInitiatingVDSCommand, return: true, log id: 38d916d0
2012-03-27 09:42:22,093 WARN  [org.ovirt.engine.core.bll.RunVmCommand] (pool-5-thread-43) [1a4ac1a6] CanDoAction of action RunVm failed. Reasons:VAR__ACTION__RUN,VAR__TYPE__VM,VAR__ACTION__RUN,VAR__TYPE__VM,VAR__ACTION__RUN,VAR__TYPE__VM,ACTION_TYPE_FAILED_VM_IS_RUNNING

please propagate correct errors to event tab

Comment 1 Itamar Heim 2012-12-12 10:43:40 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.