Bug 999603

Summary: openshift-origin-cartridge-jbossas does not requires 'bc' package
Product: OKD Reporter: Ricardo Katz <ricardo.katz>
Component: ContainersAssignee: Dan Mace <dmace>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: chunchen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-24 03:21:34 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 Ricardo Katz 2013-08-21 17:01:21 UTC
Description of problem:

The openshift-origin-cartridge-jbossas spec file does not requires the bc package as dependencies.

Version-Release number of selected component (if applicable):

Release 2: https://mirror.openshift.com/pub/openshift-origin/release/2/rhel-6/packages/x86_64/


How reproducible:

Do the 'Minimal' install of RHEL6.

Install the openshift-origin-cartridge-jbossas and verify on '/usr/libexec/openshift/cartridges/jboss-as7/bin/control' that this script uses the 'bc' command.

Also verify on the SRPM of the cartridge that the spec file doesn't require this program to install

Actual result: The JBoss AS 7 is available as a gear, but doesn't start, returning an error to the user

Expected result: Jboss AS 7 installed and running as a gear on OpenShift Origin environment.

Comment 2 openshift-github-bot 2013-10-22 21:14:48 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/372840fd5f41873901a63f4a7d97323df2fbbaaf
Bug 999603: Add missing bc dependency to jboss cart specfiles

Comment 3 chunchen 2013-10-23 03:21:25 UTC
It's fixed, verified on devenv_3932, please refer to the following results:

1. Create a jbossas-7 app
rhc app create cas00 jbossas-7 --no-git
2. SSH into this app and run "bc -h"
3. Check the status of this app
rhc app show cas00 --state
4. Access this app url via browser

at step 2:
usage: bc [options] [file ...]
  -h  --help         print this usage and exit
  -i  --interactive  force interactive mode
  -l  --mathlib      use the predefined math routines
  -q  --quiet        don't print initial banner
  -s  --standard     non-standard bc constructs are errors
  -w  --warn         warn about non-standard bc constructs
  -v  --version      print version information and exit
at step 3:
Cartridge jbossas-7 is started
at step 4: 
access app url successfully