Bug 1037698 - REST: migration job status always reports STARTED
Summary: REST: migration job status always reports STARTED
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: rhsc-sdk
Version: 2.1
Hardware: Unspecified
OS: Unspecified
high
high
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-03 15:46 UTC by Dustin Tsang
Modified: 2015-07-13 04:39 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-05 05:21:12 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Dustin Tsang 2013-12-03 15:46:36 UTC
Description of problem:
The status of job for migrating a set of bricks always reports STARTED.
Also the executing step for the job also remains in he STARTED state even though its children's state are FINISHED.

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. using the rest api migrate 2 bricks 
=> job id is returned
3. using the gluster cli monitor the migration status by running 'gluster vol status'
4. when migration has complete, use the rest api to show the job
(GET /api/jobs/:id )

Actual results:
The status of the job is STARTED

Expected results:
The status of the job should be FINISHED

Additional info:

Comment 2 Dusmant 2013-12-03 16:53:30 UTC
As per Dustin, the REST API shows "STARTED" but on the GUI it shows "FINISHED".

Comment 3 Shubhendu Tripathi 2013-12-04 12:36:04 UTC
Dustin/Dusmant,

In engine we keep the status of remove brick as STARTED till user performs stop/commit. So REST would keep showing as STARTED only and user should either execute delete action to remove the brick or activate action to retain the brick.

It is done this way to make sure user gets an alert that after migrate he has to perform either delete or retain. Actually in UI we keep showing an icon with "?" overlapped with remove brick icon just to indicate that migrate is completed but either delete or activate should be executed to complete the task. Till then the task in engine would be marked as STARTED only.

Hope this clarifies.

Comment 4 Dusmant 2013-12-04 15:42:42 UTC
Then, in this case it would not be considered as a bug. I will close this bug. But we need to document this API behaviour in the API guide.


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