Bug 1140544 - "oo-admin-ctl-gears stopgear" failed to stop idled gear
Summary: "oo-admin-ctl-gears stopgear" failed to stop idled gear
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1160934
TreeView+ depends on / blocked
 
Reported: 2014-09-11 08:25 UTC by Liang Xia
Modified: 2015-06-12 03:12 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1160934 (view as bug list)
Environment:
Last Closed: 2015-06-12 03:12:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Liang Xia 2014-09-11 08:25:54 UTC
Description of problem:
Using "oo-admin-ctl-gears stopgear" to stop a gear which is in idle state,
while the output show stopped the gear successfully, the gear is still in idle state actually.

Version-Release number of selected component (if applicable):
devenv-stage_1006

How reproducible:
always

Steps to Reproduce:
1.Create an app of any type.
  # rhc create-app appname <cart>
2.Idle the gear of above app.
  # oo-admin-ctl-gears idlegear <gear-uuid>
3.Check the app/gear state
  # rhc show-app appname --state
  # oo-devel-node app-state-show -c <gear-uuid>
4.Stop the gear
  # oo-admin-ctl-gears stopgear <gear-uuid>
5.Check the app/gear state
  # rhc show-app appname --state
  # oo-devel-node app-state-show -c <gear-uuid>

Actual results:
Step 3:
# rhc app show diy --state
Cartridge diy-0.1 is idle
# oo-devel-node app-state-show -c 541176aa96a860a03d000543
idle

Step 4:
# oo-admin-ctl-gears stopgear 541176aa96a860a03d000543
Stopping gear 541176aa96a860a03d000543 ... [  OK ]

Step 5:
# rhc app show diy --state
Cartridge diy-0.1 is idle
# oo-devel-node app-state-show -c 541176aa96a860a03d000543
idle

Expected results:
The gear should be stopped after step 4.

Additional info:
Using "rhc stop-app" to stop an app whose gear in idle state, then the gear will be show stopped.

Comment 1 Dan McPherson 2015-06-12 03:12:55 UTC
This actually seems correct.  An admin requesting an idle app to stop shouldn't remove it from idle.  Since idle it stopped + a flag to restart by request.  I am closing this bug but feel free to reopen if you still disagree.


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