Bug 1040686 - rest api: incorrect error message commiting part of the migrated brick set
Summary: rest api: incorrect error message commiting part of the migrated brick set
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: rhsc-sdk
Version: 2.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: RHGS 2.1.2
Assignee: Shubhendu Tripathi
QA Contact: Dustin Tsang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-11 22:06 UTC by Dustin Tsang
Modified: 2015-07-13 04:39 UTC (History)
8 users (show)

Fixed In Version: cb13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-25 08:08:23 UTC
Target Upstream Version:


Attachments (Terms of Use)
automation log (462.91 KB, text/plain)
2013-12-11 22:06 UTC, Dustin Tsang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:0208 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #2 2014-02-25 12:20:30 UTC
oVirt gerrit 22344 0 None None None Never
oVirt gerrit 22353 0 None None None Never

Description Dustin Tsang 2013-12-11 22:06:43 UTC
Created attachment 835485 [details]
automation log

Description of problem:

Incorrect error message was received when commiting one brick from a pair of migrated bricks.

"<?xml version="1.0" encoding="UTF-8" standalone="yes"?><fault><reason>Operation Failed</reason><detail>[command execution failed[\n]"
"error: wrong brick type: null:null, use &lt;hostname&gt;:&lt;export-dir-abs-path&gt;[\n]"
"usage: volume remove-brick &lt;volname&gt; [replica &lt;count&gt;] &lt;brick&gt; ... [start|stop|status|commit|force][\n]"
"return code: 1]</detail></fault>"


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

How reproducible:
100% of the time

Steps to Reproduce:
1. create a dist volume in rhsc
2. via rest api migrate a pair of bricks
3. wait unit migration step has completed
4. using collection brick delete, delete just one brick from the pair of migrated bricks
 DELETE /api/clusters/1ca4f772-36e1-4aaf-93d6-93384c6a6455/glustervolumes/7a23abaf-9fb4-4273-95b3-0d823c0e78ee/bricks

Actual results:
400 Bad Request response received with body
"<?xml version="1.0" encoding="UTF-8" standalone="yes"?><fault><reason>Operation Failed</reason><detail>[command execution failed[\n]"
"error: wrong brick type: null:null, use &lt;hostname&gt;:&lt;export-dir-abs-path&gt;[\n]"
"usage: volume remove-brick &lt;volname&gt; [replica &lt;count&gt;] &lt;brick&gt; ... [start|stop|status|commit|force][\n]"
"return code: 1]</detail></fault>"


Expected results:
Something like...
"could not remove a single brick from migrated brick set"


Additional info:

Comment 2 Dusmant 2013-12-13 06:51:35 UTC
Needs a check in engine side to validate

Comment 3 Dustin Tsang 2013-12-20 18:45:50 UTC
verified in rhsc-cb13

Comment 5 errata-xmlrpc 2014-02-25 08:08:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-0208.html


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