Bug 1502741 - Cannot fence host through REST API: PM is enabled for Host but no Agent type selected
Summary: Cannot fence host through REST API: PM is enabled for Host but no Agent type ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Infra
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.2.0
: 4.2.0
Assignee: Eli Mesika
QA Contact: Petr Matyáš
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-16 15:00 UTC by Petr Matyáš
Modified: 2017-12-20 11:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-20 11:10:57 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 83036 0 master MERGED core: Fix fetching fence agents in FenceProxyLocator 2017-10-25 20:45:02 UTC
oVirt gerrit 83037 0 master MERGED core: Fix fetching fence agents in HostFenceActionExecutor 2017-10-25 20:45:08 UTC
oVirt gerrit 83038 0 master MERGED core: Fix fetching fence agents in PmHealthCheckManager 2017-10-25 20:45:16 UTC
oVirt gerrit 83039 0 master MERGED core: Fix fetching fence agents in FenceValidator 2017-10-25 20:45:23 UTC

Description Petr Matyáš 2017-10-16 15:00:44 UTC
Description of problem:
I'm getting 400 error after running fence from REST API
<action>
    <fault>
        <detail>[Cannot restart Host. Power Management is enabled for Host but no Agent type selected., Cannot fence Host, Host fence is disabled., Cannot restart Host. Fence operation failed.]</detail>
        <reason>Operation Failed</reason>
    </fault>
    <fence_type>restart</fence_type>
    <status>failed</status>
</action>

Version-Release number of selected component (if applicable):
4.2.0-0.0.master.20171013142622.git15e767c.el7.centos

How reproducible:
always

Steps to Reproduce:
1.curl -v -u "$user@$domain:$password" -H "Content-type: application/xml" --insecure -X POST https://$engine_url/ovirt-engine/api/hosts/$host_id/fence -d "<action><fence_type>restart</fence_type></action>"

Actual results:
400 bad request with [Cannot restart Host. Power Management is enabled for Host but no Agent type selected., Cannot fence Host, Host fence is disabled., Cannot restart Host. Fence operation failed.]

Expected results:
successful fence of a host

Additional info:

Comment 2 Petr Matyáš 2017-10-30 17:03:06 UTC
Verified on ovirt-engine-4.2.0-0.0.master.20171029154613.git19686f3.el7.centos.noarch

Comment 3 Sandro Bonazzola 2017-12-20 11:10:57 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.