Bug 1516792 - Can not remove fence agent via REST API
Summary: Can not remove fence agent via REST API
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.2.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ovirt-4.2.0
: ---
Assignee: Juan Hernández
QA Contact: Petr Matyáš
URL:
Whiteboard:
: 1518698 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-23 11:34 UTC by Artyom
Modified: 2019-04-28 13:41 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-20 11:34:05 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.2+
rule-engine: blocker+


Attachments (Terms of Use)
engine log (292.54 KB, text/plain)
2017-11-23 11:34 UTC, Artyom
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 84574 0 master MERGED restapi: Fix remove of fence agent 2017-11-26 10:32:31 UTC

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.


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