Bug 891431

Summary: Pre/post stop hooks aren't getting called for ruby cartridges
Product: OKD Reporter: Mrunal Patel <mpatel>
Component: ContainersAssignee: Mrunal Patel <mpatel>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: dmcphers, jhou
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: devenv_2642 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-13 23:40:49 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 Mrunal Patel 2013-01-02 22:13:43 UTC
Description of problem:
pre/post stop hooks aren't getting called for ruby cartridges.

Comment 2 Jianwei Hou 2013-01-08 04:27:03 UTC
Verified on devenv_2642

Steps:
1. Create ruby-1.8/ruby-1.9 app
2. Add some commands to pre/post stop hooks
eg: 
touch $OPENSHIFT_REPO_DIR/pre_stop.log
touch $OPENSHIFT_REPO_DIR/post_stop.log
3. Git push 
4. stop the application
rhc app stop $app_name
5. ssh into app gear, check files are created

Result:
[r18-2642t1.dev.rhcloud.com ~]\> ls $OPENSHIFT_REPO_DIR 
config.ru  post_stop.log  pre_stop.log	public	README	tmp


Files are created, pre/post stop hooks are called