Bug 1004512

Summary: oo-admin-ctl-gears gearstatus does not mention if stoplock is set
Product: OpenShift Online Reporter: Sten Turpin <sten>
Component: ContainersAssignee: Marek Mahut <mmahut>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 2.xCC: mmahut, qiuzhang
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-17 13:28:11 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:

Description Sten Turpin 2013-09-04 19:38:49 UTC
Description of problem: oo-admin-ctl-gears gearstatus does not mention if stoplock is set


Version-Release number of selected component (if applicable):
openshift-origin-node-util-1.13.9-1.el6oso.noarch

How reproducible:
Always

Steps to Reproduce:
1. Run oo-admin-ctl-gears gearstatus on a gear with stoplock set

Actual results:
# oo-admin-ctl-gears statusgear <uuid>
Checking application status:
-----------------------------------------------
Cartridge: python...
Application is either stopped or inaccessible

Cartridge: postgresql...
Postgres is stopped


[root ~]# oo-admin-ctl-gears startgear <uuid>
Gear is locked: <uuid>

Expected results:
# oo-admin-ctl-gears statusgear <uuid>
Checking application status:
-----------------------------------------------
Cartridge: python...
Application is either stopped or inaccessible
Application is locked

Cartridge: postgresql...
Postgres is stopped


Additional info:

Comment 1 Marek Mahut 2013-09-23 13:26:21 UTC
Proposed pull request https://github.com/openshift/origin-server/pull/3679

Comment 2 Qiushui Zhang 2013-09-24 02:57:38 UTC
Tested on devenv 3816

When app is stopped, we can get the following result:

[root@ip-10-154-169-153 ~]# oo-admin-ctl-gears statusgear 5240fead4c159cc51e000044
Checking application php1 (5240fead4c159cc51e000044) status:
-----------------------------------------------
Gear 5240fead4c159cc51e000044 is locked.

Cartridge: postgresql...
Postgres is stopped

Cartridge: php...
Application is either stopped or inaccessible


So mark the bug as verified.