Bug 957602

Summary: [RHEVM-RHS] Remove rebalance and replace-brick actions from REST API
Product: Red Hat Enterprise Virtualization Manager Reporter: Shruti Sampat <ssampat>
Component: ovirt-engine-restapiAssignee: Sahina Bose <sabose>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, bazulay, dtsang, iheim, jkt, knarra, mmahoney, oramraz, pprakash, Rhev-m-bugs, sabose, sasundar, scohen, sdharane
Target Milestone: ---Flags: scohen: Triaged+
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: gluster
Fixed In Version: is26 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: Gluster RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1044030    

Description Shruti Sampat 2013-04-29 06:52:57 UTC
Description of problem:
---------------------------------------
The operations rebalance, and replace-brick are not yet supported in the UI. It would be  better to remove them from the REST API.

Version-Release number of selected component (if applicable):
rhevm-cli-3.2.0.7-1.el6ev.noarch

How reproducible:
Always

Steps to Reproduce:
1.N/A
2.
3.
  
Actual results:


Expected results:
Remove rebalance and replace-brick actions from REST API.

Additional info:

Comment 1 Itamar Heim 2013-04-29 07:03:48 UTC
just wondering - what's the issue of having them in the API, even if not yet in the UI?

Comment 2 Sahina Bose 2013-04-29 07:07:54 UTC
Rebalance and replace-brick operations are now implemented as gluster asynchronous tasks. The current commands need to be rewritten to support this, which is why it needs to be hidden from UI and REST API.

Comment 3 Sahina Bose 2013-12-03 09:58:28 UTC
Replace brick API has been marked deprecated

Comment 4 SATHEESARAN 2013-12-13 14:33:01 UTC
After reading the comment 3, its clear that only Replace brick is deprecated.

And Rebalance apis still available with RHEVM 3.3 and gluster volumes make use of that.

Tested with RHEVM IS27 (3.3.0-0.40.rc.el6ev)

The contents of my RHEVM api (https://10.70.37.61/api?rsdl)  has the following,

<link href="/api/clusters/{cluster:id}/glustervolumes/{glustervolume:id}/bricks/{brick:id}/replace" rel="replace"><description>This is deprecated.Use migrate and delete instead.</description><request><http_method>POST</http_method><headers><header required="true"><name>Content-Type</name><value>application/xml|json</value></header><header required="false"><name>Correlation-Id</name><value>any string</value></header></headers><body><type>Action</type><parameters_set><deprecated>true</deprecated><description>replace the specified brick with a new brick directory in the gluster volume attached to the cluster</description><parameter required="true" type="xs:string"><name>action.brick.server_id</name></parameter><parameter required="true" type="xs:string"><name>action.brick.brick_dir</name></parameter><parameter required="false" type="xs:boolean"><name>action.force</name></parameter></parameters_set></body></request><response><type>Action</type></response></link>

From the above, replace brick is seem to be deprecated.
Rebalance API is still available.

Marking this bug as VERIFIED

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

Comment 6 Itamar Heim 2014-01-21 22:25:59 UTC
Closing - RHEV 3.3 Released

Comment 7 Itamar Heim 2014-01-21 22:29:32 UTC
Closing - RHEV 3.3 Released