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:
Verified on ovirt-engine-4.2.0-0.0.master.20171029154613.git19686f3.el7.centos.noarch
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.