Bug 748886

Summary: Wrong PM status of host with no configured PM
Product: [Retired] oVirt Reporter: Jan Vorcak <jvorcak>
Component: ovirt-engine-coreAssignee: lpeer <lpeer>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: bazulay, iheim, lpeer, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-13 08:12:58 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 Jan Vorcak 2011-10-25 14:17:09 UTC
Description of problem:
According to docs and /capabilities, you should be able to get status for the host using 
POST /host/xxx/fence
<action>
    <fence_type>status</fence_type>
</action>

It works on the host with configured PM, and it even works if I change status for "stop/start/restart" (I get correct error message)

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

How reproducible:
Always

Steps to Reproduce:
1. Add host to your setup
2.
POST /host/xxx/fence
<action>
    <fence_type>status</fence_type>
</action>
3.
  
Actual results:
<fault>
    <reason>Operation Failed</reason>
    <detail>Entity not found: 3e7adf54-ff09-11e0-8bf9-001a4a013f0d</detail>
</fault>


Expected results:


Additional info:

rhevm log
2011-10-25 16:14:06,992 INFO  [org.ovirt.engine.core.bll.LogoutUserCommand] (http-0.0.0.0-8443-11) Running command: LogoutUserCommand internal: false.
2011-10-25 16:14:14,197 INFO  [org.ovirt.engine.core.bll.LoginAdminUserCommand] (http-0.0.0.0-8443-11) Running command: LoginAdminUserCommand internal: false.
2011-10-25 16:14:14,208 ERROR [org.ovirt.engine.core.bll.GetVdsFenceStatusQuery] (http-0.0.0.0-8443-11) Query GetVdsFenceStatusQuery failed. Exception message is null
2011-10-25 16:14:14,208 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (http-0.0.0.0-8443-11) Operation Failed: Entity not found: 3e7adf54-ff09-11e0-8bf9-001a4a013f0d
2011-10-25 16:14:14,210 INFO  [org.ovirt.engine.core.bll.LogoutUserCommand] (http-0.0.0.0-8443-11) Running command: LogoutUserCommand internal: false.
2011-10-25 16:16:02,548 INFO  [org.ovirt.engine.core.bll.LoginAdminUserCommand] (http-0.0.0.0-8443-11) Running command: LoginAdminUserCommand internal: false.
2011-10-25 16:16:02,563 ERROR [org.ovirt.engine.core.bll.GetVdsFenceStatusQuery] (http-0.0.0.0-8443-11) Query GetVdsFenceStatusQuery failed. Exception message is null
2011-10-25 16:16:02,563 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (http-0.0.0.0-8443-11) Operation Failed: Entity not found: 3e7adf54-ff09-11e0-8bf9-001a4a013f0d
2011-10-25 16:16:02,565 INFO  [org.ovirt.engine.core.bll.LogoutUserCommand] (http-0.0.0.0-8443-11) Running command: LogoutUserCommand internal: false.
2011-10-25 16:16:24,323 INFO  [org.ovirt.engine.core.bll.LoginAdminUserCommand] (http-0.0.0.0-8443-11) Running command: LoginAdminUserCommand internal: false.
2011-10-25 16:16:24,338 ERROR [org.ovirt.engine.core.bll.GetVdsFenceStatusQuery] (http-0.0.0.0-8443-11) Query GetVdsFenceStatusQuery failed. Exception message is null
2011-10-25 16:16:24,338 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (http-0.0.0.0-8443-11) Operation Failed: Entity not found: 3e7adf54-ff09-11e0-8bf9-001a4a013f0d
2011-10-25 16:16:24,346 INFO  [org.ovirt.engine.core.bll.LogoutUserCommand] (http-0.0.0.0-8443-11) Running command: LogoutUserCommand internal: false.

Comment 2 Itamar Heim 2012-12-13 08:12:58 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.