Bug 849277 - diy cartridge app_ctl.sh script doesn't update .state
Summary: diy cartridge app_ctl.sh script doesn't update .state
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-17 23:42 UTC by Jhon Honce
Modified: 2015-05-14 22:58 UTC (History)
1 user (show)

Fixed In Version: devenv_2034
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-17 21:29:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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'


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