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
The fix should be to remove the dependency and only require mocha for test.
https://github.com/openshift/li/pull/1779
Note: the dep is removed for production mode.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/026d011ece694c803529b92945660ec6e35d22de Bug 956859
Commit pushed to master at https://github.com/openshift/li https://github.com/openshift/li/commit/7ec7064ab90c1630d829cb325e26627367e1c50f Bug 956859
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
Commit pushed to master at https://github.com/openshift/li https://github.com/openshift/li/commit/03086b137202f56aa14b36d970a0e22a09ddd800 Bug 956859