Bug 969797

Summary: No fence_type parameter under /api/hosts/{host:id}/fence
Product: Red Hat Enterprise Virtualization Manager Reporter: Artyom <alukiano>
Component: ovirt-engine-restapiAssignee: Ori Liel <oliel>
Status: CLOSED CURRENTRELEASE QA Contact: Barak Dagan <bdagan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, bazulay, iheim, jkt, oramraz, pstehlik, Rhev-m-bugs
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard: infra
Fixed In Version: is2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Artyom 2013-06-02 12:01:48 UTC
Description of problem:
No fence_type parameter under /api/hosts/{host:id}/fence

Version-Release number of selected component (if applicable):
sf17

How reproducible:
Check api of rhevm

Steps to Reproduce:
1. Enter https://artyom-rhevm.scl.lab.tlv.redhat.com/api?rsdl via browser
2. Find /api/hosts/{host:id}/fence
3. 

Actual results:
No fence_type parameter

Expected results:
fence_type parameter exist

Additional info:
via cli try:
action host host_id fence --fence_type manual - auto complete for fence show just --correlation-id and no --fence_type

Comment 1 Ori Liel 2013-06-03 07:21:51 UTC
http://gerrit.ovirt.org/#/c/15289/

Comment 2 Barak Dagan 2013-07-03 11:13:11 UTC
Verified on IS4:

1) rsdl:

3.2:
<link href="/api/hosts/{host:id}/fence" rel="fence">
 <request>
  <http_method>POST</http_method>
  <body>
     <type>Action</type>
  </body>
 </request>
 <response>
   <type>Action</type>
 </response>
</link>

3.3:
<link href="/api/hosts/{host:id}/fence" rel="fence">
 <request>
  <http_method>POST</http_method>
  <body>
     <type>Action</type>
  </body>
 </request>
 <response>
   <type>Action</type>
   <parameters_set>
     <parameter required="true" type="xs:string">
       <name>action.fence_type</name>
     </parameter>
   </parameters_set>
 </response>
</link>


2) CLI:

action host e56c9e7a-a37e-406d-b040-ce54f048118b fence --fence_type manual

Comment 3 Itamar Heim 2014-01-21 22:31:45 UTC
Closing - RHEV 3.3 Released

Comment 4 Itamar Heim 2014-01-21 22:31:46 UTC
Closing - RHEV 3.3 Released

Comment 5 Itamar Heim 2014-01-21 22:34:22 UTC
Closing - RHEV 3.3 Released