Bug 982917

Summary: Duplicate message when check the status of cartridge in scalable app.
Product: OpenShift Online Reporter: Lei Zhang <lzhang>
Component: ocAssignee: Clayton Coleman <ccoleman>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 2.xCC: xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-10 14:56:57 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:
Embargoed:

Description Lei Zhang 2013-07-10 06:46:45 UTC
Description of problem:
Given a scalable app(e.g, mynodejs06s), use this command 'rhc cartridge status -a mynodejs06s -c nodejs-0.6' to check the status of cartridge. Duplicate message shows.

Version-Release number of selected component (if applicable):
INT(devenv_3470)
rhc-1.11.3.gem

How reproducible:
always

Steps to Reproduce:
1. rhc app create mynodejs06s nodejs-0.6 -s
2. rhc cartridge status -a mynodejs06s -c nodejs-0.6
3.

Actual results:
[rayzhang@rayzhang Work]$ rhc cartridge status -a mynodejs06s -c nodejs-0.6
RESULT:
Application is running
Application is running

Expected results:
No duplicated message should be displayed.

Additional info:

Comment 1 Clayton Coleman 2013-07-10 14:56:57 UTC
There are two gears, so two outputs are displayed.

Comment 2 Lei Zhang 2013-07-11 02:10:06 UTC
Test on INT(devenv_3481), rhc-1.11.4, the bug doesn't exsit.


[rayzhang@rayzhang Work]$ rhc app show mynodejs06s
mynodejs06s @ http://mynodejs06s-ray.int.rhcloud.com/ (uuid: 51de12976cec0e5911000027)
--------------------------------------------------------------------------------------
  Created: 10:04 AM
  Gears:   1 (defaults to small)
  Git URL: ssh://51de12976cec0e5911000027.rhcloud.com/~/git/mynodejs06s.git/
  SSH:     51de12976cec0e5911000027.rhcloud.com

  nodejs-0.6 (Node.js 0.6)
  ------------------------
    Scaling: x1 (minimum: 1, maximum: available) on small gears

  haproxy-1.4 (OpenShift Web Balancer)
  ------------------------------------
    Gears: Located with nodejs-0.6
[rayzhang@rayzhang Work]$ rhc app show --gears -a mynodejs06s
ID                       State   Cartridges             Size  SSH URL
------------------------ ------- ---------------------- ----- --------------------------------------------------------
51de12976cec0e5911000027 started nodejs-0.6 haproxy-1.4 small 51de12976cec0e5911000027.rhcloud.com
[rayzhang@rayzhang Work]$ rhc cartridge status -a mynodejs06s -c nodejs-0.6 
RESULT:
Application is running
[rayzhang@rayzhang Work]$ rhc cartridge status -a mynodejs06s -c nodejs-0.6 
RESULT:
Application is running
[rayzhang@rayzhang Work]$

Comment 3 Lei Zhang 2013-07-11 02:28:28 UTC
After I scale up the app, and than check the status of the app, two lines "Application is running" display, yes, it's not bug. 

Thanks
Lei