Bug 1056372 - rest: cryptic error message given for stopmigrate when no migration is occurring
Summary: rest: cryptic error message given for stopmigrate when no migration is occurring
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhsc-sdk
Version: 2.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Shubhendu Tripathi
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1035040
TreeView+ depends on / blocked
 
Reported: 2014-01-22 04:21 UTC by Dustin Tsang
Modified: 2015-12-03 17:22 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
When no migration is occuring, incorrect error message is displayed for stop migrate operation.
Clone Of:
Environment:
Last Closed: 2015-12-03 17:22:59 UTC
Embargoed:


Attachments (Terms of Use)

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.


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