Bug 843453

Summary: Scaled jboss app gears are down after deployed a war file
Product: OKD Reporter: joycezhang <jinzhang>
Component: ContainersAssignee: Bill DeCoste <wdecoste>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xKeywords: Triaged
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 20:42:54 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:
Attachments:
Description Flags
Server log none

Description joycezhang 2012-07-26 11:18:06 UTC
Created attachment 600487 [details]
Server log

Description of problem:
Scaled jboss app gears are down after git push sfsbTest-1.0.war file to JBoss.

Here's the log file:
2012/07/26 06:56:36,687 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014775:    New missing/unsatisfied dependencies:
      service jboss.naming.context.java.jboss.datasources.MysqlDS (missing) dependents: [service jboss.persistenceunit."sfsbTest-1.0.war#jpa-test"] 

2012/07/26 06:56:36,692 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" 
=> {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"sfsbTest-1.0.war#jpa-test\"jboss.naming.context.java.jboss.datasourc
es.MysqlDSMissing[jboss.persistenceunit.\"sfsbTest-1.0.war#jpa-test\"jboss.naming.context.java.jboss.datasources.MysqlDS]"]}}}
2012/07/26 06:56:36,696 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back



Version-Release number of selected component (if applicable):
int.openshift.redhat.com
devenv_1912
rhc-0.96.3

How reproducible:
always

Pre-steps:
Configure JBoss Maven Repository to be available by Maven on client.

Steps to Reproduce:
1.Create a scalable JBoss app

rhc app create -a myjbossscale -t jbossas-7 -s 

2.Build and deploy the sfsbTest-1.0.war file to JBoss 

git clone git://github.com/bdecoste/sfsbTest.git

cd sfsbTest

mvn clean install

cp target/sfsbTest-1.0.war $JBOSS_GIT_REPO/deployments

cd $JBOSS_GIT_REPO/

git add .

git commit -a -m war

git push

3. Hit the application URL and check gears status.
  
Actual results:
Gears are down, the URL is not available.


Expected results:
Gears are up after git push, the URL is available.

Comment 1 Bill DeCoste 2012-07-27 15:28:48 UTC
Modified sfsbTest to use H2 instead of mysql

Comment 2 joycezhang 2012-07-30 10:26:07 UTC
Verified build:
rhc-0.96.4.gem
int.openshift.redhat.com

Verified steps:
1.Create a scalable JBoss app
rhc app create -a myjbossscale -t jbossas-7 -s 

2.Build and deploy the sfsbTest-1.0.war file to JBoss 

git clone git://github.com/bdecoste/sfsbTest.git

cd sfsbTest

mvn clean install

cp target/sfsbTest-1.0.war $JBOSS_GIT_REPO/deployments

cd $JBOSS_GIT_REPO/

git add .

git commit -a -m war

git push
3. Check gears status.

Verified results:
The gears are up and running after git push.

So this bug is fixed. Thanks.