Bug 996713 - Consider printing each cartridge's status for 'app show --state'
Summary: Consider printing each cartridge's status for 'app show --state'
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Clayton Coleman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-13 19:01 UTC by Hiro Asari
Modified: 2015-05-15 02:24 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-16 18:25:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Hiro Asari 2013-08-13 19:01:18 UTC
Description of problem:
As pointed out in https://bugzilla.redhat.com/show_bug.cgi?id=996609, 'rhc app show --state' simply passes on what the broker says as the state, which could be disconnected from the realities of individual cartridges belonging to the application. This disconnect can happen if the primary cartridge dies unexpectedly.

It may be beneficial to report each cartridge's status in addition to, or instead of, the broker's response.

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

How reproducible:
always

Steps to Reproduce:
1. rhc app create foo2 nodejs-0.6 postgresql-9.2 --from-code \ https://github.com/cjryan/nodejs-bughunting.git
2. rhc cartridge stop postgresql-9.2 -a foo2
3. rhc cartridge restart nodejs-0.6 -a foo2
4. curl http://foo2-*/postgresql
5. curl http://foo2-*/
6. rhc app show foo2 --state; rhc cartridge status nodejs-0.6 -a foo2

Actual results:
Cartridge nodejs-0.6, postgresql-9.2 is started
RESULT:
Application is running

Expected results:
Cartridge nodejs-0.6 is stopped
Cartridge postgresql-9.2 is stopped
RESULT:
Application is not running


Additional info:


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