Bug 849277

Summary: diy cartridge app_ctl.sh script doesn't update .state
Product: OKD Reporter: Jhon Honce <jhonce>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: jhou
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: devenv_2034 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-17 21:29:51 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 Jhon Honce 2012-08-17 23:42:39 UTC
Description of problem:
diy cartridge app_ctl.sh script doesn't update .state

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


How reproducible:
always

Steps to Reproduce:
1. create diy cartridge
2. use git to push update to default application
3. 
  
Actual results:
~/app-root/runtime/.state is contains 'deploying' not 'started'

Expected results:
~/app-root/runtime/.state contains 'started'

Additional info:
app_ctl.sh needs to be updated to call set_app_state appropriately

Comment 1 Jhon Honce 2012-08-20 15:16:54 UTC
I used https://github.com/kagesenshi/plone-openshift-quickstart to verify, changes in app_ctl.sh

https://github.com/openshift/crankcase/pull/405

Comment 2 Jianwei Hou 2012-08-21 04:49:36 UTC
Verified on INT

Steps:
1. Create diy cartridge
2. Use git to push update to default application, ssh into application, check app-root/runtime/.state before, during and after git push

Result:
.state is updated at during application stop, build, deploy and start.
After git push, the .state contains 'started'