Bug 1516792

Summary: Can not remove fence agent via REST API
Product: [oVirt] ovirt-engine Reporter: Artyom <alukiano>
Component: RestAPIAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: bugs, mperina, pmatyas
Target Milestone: ovirt-4.2.0Keywords: Automation, Regression
Target Release: ---Flags: rule-engine: ovirt-4.2+
rule-engine: blocker+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:34:05 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 Artyom 2017-11-23 11:34:38 UTC
Created attachment 1358152 [details]
engine log

Description of problem:
Can not remove fence agent via REST API

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

How reproducible:
Always

Steps to Reproduce:
1. Configure fence agent on host
<agenthref="/ovirt-engine/api/hosts/1a96ac70-1082-4ba3-bd6e-a69d10eb2344/fenceagents/8a8ef92a-aadc-4656-bdf7-d43e6b8f20ff"id="8a8ef92a-aadc-4656-bdf7-d43e6b8f20ff">
<address>host_power_management</address>
<encrypt_options>false</encrypt_options>
<order>1</order>
<password>pm_password</password>
<type>drac7</type>
<username>pm_user</username>
<hosthref="/ovirt-engine/api/hosts/1a96ac70-1082-4ba3-bd6e-a69d10eb2344"id="1a96ac70-1082-4ba3-bd6e-a69d10eb2344"/>
</agent>
2. Delete fence agent 
DELETE
https://jenkins-vm-12.qa.lab.tlv.redhat.com/ovirt-engine/api/hosts/1a96ac70-1082-4ba3-bd6e-a69d10eb2344/fenceagents/8a8ef92a-aadc-4656-bdf7-d43e6b8f20ff
3.

Actual results:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fault>
    <detail>[Cannot remove Fence Agent. Invalid Host Id.]</detail>
    <reason>Operation Failed</reason>
</fault>

Expected results:
The action succeeds

Additional info:

Comment 1 Red Hat Bugzilla Rules Engine 2017-11-23 12:59:09 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 4 Martin Perina 2017-11-30 09:54:11 UTC
*** Bug 1518698 has been marked as a duplicate of this bug. ***

Comment 6 Martin Perina 2017-11-30 12:14:48 UTC
Petre, could you please confirm that this issue is fixed in oVirt, because I think it's the same issue as you have filed in BZ1518698?

Comment 7 Petr Matyáš 2017-11-30 12:30:02 UTC
Yes, this is fixed on latest upstream, however this fix needs to be on downstream.

Comment 8 Petr Matyáš 2017-12-08 11:53:37 UTC
Verified on ovirt-engine-4.2.0-0.6.el7.noarch

Comment 9 Sandro Bonazzola 2017-12-20 11:34:05 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.