Bug 1206013

Summary: ruby193-rubygem-rest-client should be installed as dependency when installing rubygem-openshift-origin-routing-daemon
Product: OpenShift Container Platform Reporter: Johnny Liu <jialiu>
Component: NodeAssignee: Scott Dodson <sdodson>
Status: CLOSED ERRATA QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 2.2.0CC: adellape, bleanhar, jokerman, libra-onpremise-devel, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-openshift-origin-routing-daemon-0.23.2.0-1.el6op Doc Type: Bug Fix
Doc Text:
After starting the routing daemon service, operations using the oo-admin-ctl-routing tool would fail if the ruby193-rubygem-rest-client package was not installed. This was due to the rubygem-openshift-origin-routing-daemon package missing a dependency on the ruby193-rubygem-rest-client package. This bug fix updates the rubygem-openshift-origin-routing-daemon package to include this dependency, and the issue no longer occurs as a result.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-06 17:06: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:

Description Johnny Liu 2015-03-26 06:47:45 UTC
Description of problem:
On a minimal installation, install rubygem-openshift-origin-routing-daemon, config it to connect F5 load balancer, then start the routing service.

# oo-admin-ctl-routing list-pools; oo-admin-ctl-routing list-aliases; oo-admin-ctl-routing list-monitors
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require': cannot load such file -- restclient (LoadError)
	from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
	from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-routing-daemon-0.23.1.1/lib/openshift/routing/models/f5-icontrol-rest.rb:5:in `<top (required)>'
	from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
	from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
	from /usr/sbin/oo-admin-ctl-routing:55:in `initialize'
	from /usr/sbin/oo-admin-ctl-routing:89:in `new'
	from /usr/sbin/oo-admin-ctl-routing:89:in `<main>'
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require': cannot load such file -- restclient (LoadError)
	from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
	from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-routing-daemon-0.23.1.1/lib/openshift/routing/models/f5-icontrol-rest.rb:5:in `<top (required)>'
	from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
	from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
	from /usr/sbin/oo-admin-ctl-routing:55:in `initialize'
	from /usr/sbin/oo-admin-ctl-routing:89:in `new'
	from /usr/sbin/oo-admin-ctl-routing:89:in `<main>'
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require': cannot load such file -- restclient (LoadError)
	from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
	from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-routing-daemon-0.23.1.1/lib/openshift/routing/models/f5-icontrol-rest.rb:5:in `<top (required)>'
	from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
	from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
	from /usr/sbin/oo-admin-ctl-routing:55:in `initialize'
	from /usr/sbin/oo-admin-ctl-routing:89:in `new'
	from /usr/sbin/oo-admin-ctl-routing:89:in `<main>'


After installed ruby193-rubygem-rest-client, the error disappeared.

Version-Release number of selected component (if applicable):
rubygem-openshift-origin-routing-daemon-0.23.1.1-1.el6op.noarch

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Scott Dodson 2015-03-26 13:09:34 UTC
Trivial, I'll take this.

Comment 5 Johnny Liu 2015-03-27 06:03:35 UTC
Verified this bug with rubygem-openshift-origin-routing-daemon-0.23.2.0-1.el6op.noarch, and PASS.

# yum update rubygem-openshift-origin-routing-daemon
=========================================================================================================================================================================================
 Package                                                       Arch                         Version                                   Repository                                    Size
=========================================================================================================================================================================================
Updating:
 rubygem-openshift-origin-routing-daemon                       noarch                       0.23.2.0-1.el6op                          openshift_infra_puddle                       209 k
Installing for dependencies:
 ruby193-rubygem-rest-client                                   noarch                       1.6.1-2.el6op                             openshift_infra_puddle                       159 k

Transaction Summary
=========================================================================================================================================================================================
Install       1 Package(s)
Upgrade       1 Package(s)



# rpm -qR rubygem-openshift-origin-routing-daemon|grep rest
ruby193-rubygem(rest-client)

Comment 7 errata-xmlrpc 2015-04-06 17:06:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0779.html