Bug 1000381

Summary: "jboss-cli.sh" could not be found in jbosseap-6.0 gear
Product: OpenShift Container Platform Reporter: Ma xiaoqiang <xiama>
Component: ContainersAssignee: Brenton Leanhardt <bleanhar>
Status: CLOSED NEXTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.2.1CC: jdetiber, libra-onpremise-devel, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-23 12:45:28 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:

Description Ma xiaoqiang 2013-08-23 10:45:00 UTC
Description of problem:
"jboss-cli.sh" could not be found in  jbosseap-6.0 gear, but online devenv could.

Version-Release number of selected component (if applicable):
1.2/2013-08-22.2 puddle

How reproducible:
always

Steps to Reproduce:
1.create a jbosseap-6.0 app
2.login to gear, run the following command:
> jboss-cli.sh -c --controller=$OPENSHIFT_JBOSSEAP_IP:9999

Actual results:
bash: jboss-cli.sh: command not found

Expected results:
"jboss-cli.sh" shoud be found, and executed successfully.

Additional info:
online:
> jboss-cli.sh -c --controller=$OPENSHIFT_JBOSSEAP_IP:9999
[standalone.251.1:9999 /] 
> which jboss-cli.sh
/var/lib/openshift/52173b6ee6498c096b000001/jbosseap/bin/tools/jboss-cli.sh

Comment 2 Jason DeTiberus 2013-08-23 12:45:28 UTC
For OSE 1.2 you can use the following:
/usr/share/jbossas/bin/jboss-cli.sh -c --controller=$OPENSHIFT_JBOSSEAP_IP:9999

The jboss-cli.sh helper script also exports JAVA_OPTS="-Djboss.management.client_socket_bind_address=$OPENSHIFT_JBOSSEAP_IP", since the jboss cli tries to bind to a localhost port by default and that is blocked by SELinux policy in Online (but not in Enterprise).

That said, we will inherit the jboss-cli.sh helper script with the 2.0 rebase.