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

Bug 1144938

Summary: REST API fails to return the host ID of VM which is in unknown state due to node crash
Product: Red Hat Enterprise Virtualization Manager Reporter: Julie <juwu>
Component: ovirt-engine-restapiAssignee: Eldan Shachar <eshachar>
Status: CLOSED CURRENTRELEASE QA Contact: Ilanit Stein <istein>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: aberezin, bazulay, ecohen, ecs-bugs, gklein, iheim, juan.hernandez, juwu, lpeer, lsurette, mahendra_takwale, mavital, michal.skrivanek, ofrenkel, oramraz, rbalakri, rhev-docs, Rhev-m-bugs, sgordon, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: virt
Fixed In Version: org.ovirt.engine-root-3.5.0-18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1069530 Environment:
Last Closed: 2015-02-17 08:29:40 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:
Bug Depends On:    
Bug Blocks: 1069530    

Comment 1 Juan Hernández 2014-09-22 08:47:48 UTC
The RESTAPI just renders whatever the backend VM.getRunOnVds() method returns.

Comment 2 Omer Frenkel 2014-09-22 14:39:47 UTC
(In reply to Juan Hernández from comment #1)
> The RESTAPI just renders whatever the backend VM.getRunOnVds() method
> returns.

usually, but in this case, the mapper fills "dynamic" data only if the vm is "running or paused" which does not include the "unknown" status
i think in this status we should still show this info

Comment 3 Ilanit Stein 2014-11-05 13:18:18 UTC
Verified on vt8.
Power off host => host turn to Non responsive, and vms to unknown.
Before & after the power off read the VM object, and for both cases,
the host id is included in vm object, and contain the host id:

<host href="/api/hosts/916ee060-b92b-40f1-bb6b-bd1a24e23c88" id="916ee060-b92b-40f1-bb6b-bd1a24e23c88"/>

Comment 4 Omer Frenkel 2015-02-17 08:29:40 UTC
RHEV-M 3.5.0 has been released

Comment 5 jniederm 2015-08-17 13:31:36 UTC
*** Bug 1069530 has been marked as a duplicate of this bug. ***