Bug 837224 - Pre/post start/stop hooks does not work for jbossas and jbosseap apps
Summary: Pre/post start/stop hooks does not work for jbossas and jbosseap apps
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: Rob Millner
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-03 08:48 UTC by Meng Bo
Modified: 2015-05-14 22:56 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-13 23:43:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Meng Bo 2012-07-03 08:48:47 UTC
Description of problem:
pre_start pre_stop post_start post_stop, the 4 hooks dose not work for jbossas and jbosseap type apps.

Version-Release number of selected component (if applicable):
cartridge-jbossas-7-0.95.3-1.el6_3.noarch
cartridge-jbosseap-6.0-0.2.3-1.el6_3.noarch

How reproducible:
always

Steps to Reproduce:
1.Create jbossas/jbosseap app
2.Modify the pre/post start/stop scripts in the .openshift/action_hooks/
like add "echo 'Pre_start'"
3.Push the build
  
Actual results:
The scripts will not be run during the push build.

Expected results:
The scripts should be run and show the echo message in console output. 

Additional info:

Comment 1 Rob Millner 2012-07-09 20:49:04 UTC
In the case of the jboss cartridges, output is redirected to /dev/null.

In order to tests the pre/post start/stop scripts; add something like the following:

echo "***** PRE START JBOSSAS-7 RAN *****" >> "${OPENSHIFT_DATA_DIR}"/hooks.txt

And then check the data directory for the presence of the output.

Comment 2 Meng Bo 2012-07-10 10:07:30 UTC
After modify the pre/post start/stop script as Rob's comment, the script works fine for jboss apps.
Mark bug as verified.


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