Bug 957602 - [RHEVM-RHS] Remove rebalance and replace-brick actions from REST API
Summary: [RHEVM-RHS] Remove rebalance and replace-brick actions from REST API
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.3.0
Assignee: Sahina Bose
QA Contact: SATHEESARAN
URL:
Whiteboard: gluster
Depends On:
Blocks: 3.3snap4
TreeView+ depends on / blocked
 
Reported: 2013-04-29 06:52 UTC by Shruti Sampat
Modified: 2016-02-10 18:59 UTC (History)
14 users (show)

Fixed In Version: is26
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Gluster
Target Upstream Version:
Embargoed:
scohen: Triaged+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 15872 0 None None None Never
oVirt gerrit 21777 0 None None None Never

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


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