Bug 831097

Summary: The status of DIY application when using CLI is not correct and does not match the status on website.
Product: OKD Reporter: Yujie Zhang <yujzhang>
Component: MasterAssignee: Mrunal Patel <mpatel>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: bmeng, rmillner, xtian
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-25 18:27:30 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 Yujie Zhang 2012-06-12 07:49:06 UTC
Description of problem:

I created a DIY application and check the status of this application using "rhc-ctl-app -c status -a $appname", the status is always "Application 'diy2' is either stopped or inaccessible", even when I change the status. However, the status of DIY application can be displayed correctly on website on application details page.

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

int.openshift.redhat.com

How reproducible:always


Steps to Reproduce:
1.Create a DIY application and change the status of the application 
2.Check the status of the DIY application using "rhc-ctl-app -c status -a $appname"
3.Check the status of the DIY application on website
  
Actual results:

The status of DIY application when using CLI is not correct and does not match the status on website.

Expected results:

The status of DIY application should be correct and consistent with the status on website.

Additional info:

Comment 1 Clayton Coleman 2012-06-15 18:50:10 UTC
Not sure but this looks like a mismatch between old broker API call and new broker api call to gear status.

Comment 2 Lili Nader 2012-06-19 01:09:57 UTC
These are 2 very different calls....

The website uses the call /broker/rest/domains/<domain-name>/applications/<app-name>/gear_groups.json to get the state of each gear.

The CLI on the otherhand uses the old API which calls "app_ctl.sh status" on the gear itself.  For DIY apps it gives the following error:

usr/libexec/stickshift/cartridges/diy-0.1/info/bin/app_ctl.sh: line 46: print_running_processes: command not found

I did a grep and could not find anywhere the command print_running_processes was defined.

Comment 3 John Poelstra 2012-06-19 17:25:43 UTC
Expect fix today

Comment 4 Yujie Zhang 2012-06-20 07:13:23 UTC
(In reply to comment #3)
Tested this issue on int.openshift.redhat.com , the status of diy application is correct both on CLI and website, thanks.