Bug 1056372

Summary: rest: cryptic error message given for stopmigrate when no migration is occurring
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Dustin Tsang <dtsang>
Component: rhsc-sdkAssignee: Shubhendu Tripathi <shtripat>
Status: CLOSED EOL QA Contact: storage-qa-internal <storage-qa-internal>
Severity: low Docs Contact:
Priority: low    
Version: 2.1CC: asriram, dpati, mmahoney, mmccune, nlevinki, rhs-bugs, shtripat
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
When no migration is occuring, incorrect error message is displayed for stop migrate operation.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-03 17:22:59 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1035040    

Description Dustin Tsang 2014-01-22 04:21:30 UTC
Description of problem:
incorrect error message given for stopmigrate when no migration is occurring.

"Cannot stop remove bricks Gluster Brick(s). Invalid task type.]"


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

How reproducible:
100% of the time


Steps to Reproduce:
1. create a simple volume in rhsc
2. via rest call stopmigrate on the volume with some of the bricks
(example request)
POST /api/clusters/73db05ad-775a-405d-b4e9-91cf5dbb54e7/glustervolumes/81f47779-49ff-40d1-9dab-9de32ad390d7/bricks/stopmigrate
<action>[\n]"
    <bricks>[\n]"
        <replica_count>0</replica_count>[\n]"
        <brick>[\n]"
            <name>rhsc-cb15-node-a:/bricks/201401212251036201942637805</name>[\n]"
        </brick>[\n]"
    </bricks>[\n]"
</action>[\n]"

Actual results:
< "<?xml version="1.0" encoding="UTF-8" standalone="yes"?>[\n]"
< "<fault>[\n]"
< "    <reason>Operation Failed</reason>[\n]"
< "    <detail>[Cannot stop remove bricks Gluster Brick(s). Invalid task type.]</detail>[\n]"
< "</fault>[\n]"




Expected results:

Should be something similar to "Cannot stop remove bricks. Remove brick has not been started yet."

Additional info:

Comment 2 Shalaka 2014-01-23 09:08:43 UTC
Please review the edited Doc Text and signoff.

Comment 3 Shubhendu Tripathi 2014-01-27 04:59:35 UTC
looks fine

Comment 6 Vivek Agarwal 2015-12-03 17:22:59 UTC
Thank you for submitting this issue for consideration in Red Hat Gluster Storage. The release for which you requested us to review, is now End of Life. Please See https://access.redhat.com/support/policy/updates/rhs/

If you can reproduce this bug against a currently maintained version of Red Hat Gluster Storage, please feel free to file a new report against the current release.