Bug 1040686

Summary: rest api: incorrect error message commiting part of the migrated brick set
Product: Red Hat Gluster Storage Reporter: Dustin Tsang <dtsang>
Component: rhsc-sdkAssignee: Shubhendu Tripathi <shtripat>
Status: CLOSED ERRATA QA Contact: Dustin Tsang <dtsang>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: dpati, dtsang, knarra, mmahoney, mmccune, pprakash, rhs-bugs, ssampat
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 2.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cb13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-25 08:08:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
automation log none

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