Bug 1361335 - rhc dependency issues with different versions of Ruby
Summary: rhc dependency issues with different versions of Ruby
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Rory Thrasher
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-28 20:59 UTC by Rory Thrasher
Modified: 2016-09-08 17:53 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: RHC dependencies have been updating and deprecating older version of Ruby that RHC is required to support. Certain dependencies (net-ssh, addressable, and json) need different rubygem versions depending on which version of Ruby that is being used. Consequence: RHC was failing to build or run on certain versions of Ruby. Fix: Add updates to the enterprise/rhc gemfile to lock the versions of net-ssh, addressable, and json for Ruby 1.8.7. There is code that will select the proper version of these dependencies if github.com/openshift/rhc is built locally. Result: RHC will properly work with Ruby 1.8.7 by default. Users wishing to use other versions of Ruby can clone github.com/openshift/rhc and build the gem locally to have RHC use dependencies specific to the version of Ruby that it is built with.
Clone Of:
Environment:
Last Closed: 2016-09-08 17:53:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rory Thrasher 2016-07-28 20:59:25 UTC
RHC has a number of dependencies that are occasional updated to a point where they drop support for older versions of ruby (Ruby 1.8 and Ruby 1.9 are deprecated).  This causes problems as many customers are using rhc on RHEL systems with older versions of Ruby.  Likewise, many other customers use rhc on their personal machines with newer versions of Ruby, and we need to support those as well.

The net-ssh, addressable, and json gems have recently released newer versions that are not compatible with our older versions of Ruby.  Net-ssh was particularly difficult, as not only does the latest version not support older versions of Ruby, but older versions of net-ssh don't support newer versions of Ruby.  Addressable has similar issues with versioning that would break newer versions.


In order to fix this, rhc will now install a specific version of net-ssh and addressable depending on which version of Ruby is used to build rhc.  Customers who want to use rhc on non-RHEL systems are encouraged to grab the source from github and build it themselves to grab the proper dependencies for their version of Ruby.

Comment 2 Rory Thrasher 2016-09-08 17:53:48 UTC
This bug is no longer needed.


Note You need to log in before you can comment on or make changes to this bug.