Bug 956859

Summary: rhc-broker is missing an rpm dependency...
Product: OpenShift Online Reporter: Thomas Wiest <twiest>
Component: PodAssignee: Dan McPherson <dmcphers>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: dmcphers, jhou
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-07 22:54:03 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 Thomas Wiest 2013-04-25 19:24:01 UTC
Description of problem:
On a machine that _only_ has a broker installed, when I try to run any broker commands it says that it can't find the mocha gem.

The rpm that needs to be installed is:
ruby193-rubygem-mocha


Here's the output.
# oo-admin-ctl-district 
Could not find gem 'mocha (~> 0.12.10) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.



Version-Release number of selected component (if applicable):
rhc-broker-1.7.5-1.el6oso.noarch

Comment 1 Dan McPherson 2013-07-22 15:44:00 UTC
The fix should be to remove the dependency and only require mocha for test.

Comment 2 Dan McPherson 2013-07-30 19:55:48 UTC
https://github.com/openshift/li/pull/1779

Comment 3 Dan McPherson 2013-07-30 19:56:53 UTC
Note: the dep is removed for production mode.

Comment 6 Jianwei Hou 2013-07-31 02:12:08 UTC
Verified on devenv_3588 with rhc-broker-1.12.5-1.git.25.7ec7064.el6.noarch

ruby193-rubygem-mocha is removed from the broker package dependencies.

[root@ip-10-191-41-74 broker]# rpm -qR rhc-broker-1.12.5-1.git.25.7ec7064.el6.noarch
/bin/bash  
/bin/sh  
/usr/bin/env  
config(rhc-broker) = 1.12.5-1.git.25.7ec7064.el6
httpd  
mod_ssl  
openshift-origin-broker-util  
rhc-common  
rhc-server-common  
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
ruby193  
ruby193-mod_passenger  
ruby193-ruby-wrapper  
ruby193-rubygem-bigdecimal  
ruby193-rubygem-bson_ext  
ruby193-rubygem-dalli  
ruby193-rubygem-dnsruby  
ruby193-rubygem-json  
ruby193-rubygem-minitest  
ruby193-rubygem-mongo_mapper  
ruby193-rubygem-mongoid  
ruby193-rubygem-open4  
ruby193-rubygem-parseconfig  
ruby193-rubygem-pony  
ruby193-rubygem-rails  
ruby193-rubygem-regin  
ruby193-rubygem-rest-client  
ruby193-rubygem-ruby-prof  
ruby193-rubygem-simplecov  
ruby193-rubygem-state_machine  
ruby193-rubygem-stomp  
ruby193-rubygem-systemu  
ruby193-rubygem-uuidtools  
ruby193-rubygem-wddx  
ruby193-rubygem-xml-simple  
rubygem-openshift-origin-auth-streamline  
rubygem-openshift-origin-billing-aria  
rubygem-openshift-origin-controller  
rubygem-openshift-origin-dns-dynect  
rubygem-openshift-origin-msg-broker-mcollective  
rubygem-passenger-native-libs  
rpmlib(PayloadIsXz) <= 5.2-1