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

Bug 1518698

Summary: Can't delete power management agent through RESTApi
Product: [oVirt] ovirt-engine Reporter: Petr Matyáš <pmatyas>
Component: BLL.InfraAssignee: Martin Perina <mperina>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: bugs, oourfali, pmatyas
Target Milestone: ---Keywords: Automation, AutomationBlocker, Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-30 09:54:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine log none

Description Petr Matyáš 2017-11-29 13:39:04 UTC
Created attachment 1360315 [details]
engine log

Description of problem:
Trying to delete PM agent through RESTApi results in     <detail>[Cannot remove Fence Agent. Invalid Host Id.]</detail>

Version-Release number of selected component (if applicable):
ovirt-engine-4.2.0-0.5.master.el7.noarch

How reproducible:
always

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

Actual results:
<fault>
    <detail>[Cannot remove Fence Agent. Invalid Host Id.]</detail>
    <reason>Operation Failed</reason>
</fault>

Expected results:
removed fence agent

Additional info:

Comment 2 Yaniv Kaul 2017-11-30 07:57:02 UTC
Does it work with host name?

Comment 3 Petr Matyáš 2017-11-30 09:25:10 UTC
(In reply to Yaniv Kaul from comment #2)
> Does it work with host name?

No, it fails as well.

Comment 4 Martin Perina 2017-11-30 09:54:11 UTC
Seems to me like a duplicate of BZ1518698

*** This bug has been marked as a duplicate of bug 1516792 ***