Bug 814811

Summary: rake is now a requirement on some platforms before installing rhc gem.
Product: OKD Reporter: Nam Duong <nduong>
Component: ocAssignee: Fotios Lindiakos <fotios>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.xCC: baulakh, bzhao, daobrien, jkeck, jofernan, mpatel
Target Milestone: ---Keywords: Documentation, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhc-0.91.8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-27 20:47:13 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 Nam Duong 2012-04-20 18:36:14 UTC
Description of problem:
This has been reported in 2 different forum posts:
1) https://www.redhat.com/openshift/community/forums/openshift/update-getting-started-documentation-to-also-install-rake-gem-before-installing-the
2) https://www.redhat.com/openshift/community/forums/openshift/rhc-not-working-after-install-client-tools-centos-5

This is odd since I didn't need the rake gem on my Mac, but it was definitely needed on CentOS and Ubuntu.

We need to update our getting started guides or possibly have it automatically installed as a dependency.

Comment 1 Clayton Coleman 2012-04-20 18:40:55 UTC
Rake shouldn't be a dependency to runtime users

Comment 2 Fotios Lindiakos 2012-04-24 17:17:57 UTC
Because of the way gem installs the native extensions, rake is unfortunately required. Since this is a pretty standard gem, this shouldn't be a problem for most users. This does not affect RPM installation (or dependencies) since the extension does not get executed.

Comment 3 David O'Brien 2012-04-26 01:19:04 UTC
Bilhar,
can you review this and patch the GSG where appropriate?

thanks

Comment 4 bzhao 2012-04-26 08:37:31 UTC
I think it have still the ERROR about missing rake on windows7, i still need to carry out "gem install rake" and then i can execute the "gem install rhc" successfully..
env:
Windows7 Ultimate 64-bit SP1 Eng
cygwin 1.7.14-2
rubygems 1.8.23
rhc-0.91.10.gem or rhc-0.91.8.gem

See details below:
====>>   gem instal rhc rhc-0.91.10.gem -l
ERROR:  While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: rhc requires rake (>= 0)
=============================
$ gem instal rhc rhc-0.91.8.gem -l
ERROR:  While executing gem ... (Gem::DependencyError)
    Unable to resolve dependencies: rhc requires rake (>= 0)

Comment 5 bzhao 2012-04-26 09:00:01 UTC
I think it should be my VM issue, i switch to the another VM and execute "gem install rhc-0.91.10.gem", rake and rhc could be installed automatically without any error..

So it is fixed..

See details below:
$ gem install rhc-0.91.10.gem
Fetching: rake-0.9.2.2.gem (100%)
Building native extensions.  This could take a while...
      ===================================================
        rhc-rest is no longer needed as an external gem
          - If it is installed, it will be removed
          - Its libraries are now included in rhc
            - Any applications requiring rhc-rest will
              still function as expected
      ===================================================
Successfully installed rake-0.9.2.2
Successfully installed rhc-0.91.10
2 gems installed
Installing ri documentation for rake-0.9.2.2...
Installing ri documentation for rhc-0.91.10...
Installing RDoc documentation for rake-0.9.2.2...
Installing RDoc documentation for rhc-0.91.10...

Comment 6 Bilhar 2012-04-27 06:05:11 UTC
Does this mean this is not an issue on Windows machines?  Please confirm so that we can document correctly.  Also we state that we have added rake as a dependency in rhc as of version 0.91.8 to solve this in this forum:  http://hurl.test.redhat.com/TofGnL

But I still had these issues on newer versions (0.92.1) of client tools on Fedora and RHEL.  After installing client tools, I got error messages for rake.  Then I did a gem install rake, and after that I was able to use the client tools without any issues.  It doesn't appear that the dependency is resolved, or am I missing something?

Also, can someone please clarify which operating systems are affected by this?  I have tested on RHEL and Fedora and had rake issues. But I can't get rhc to update on Mac OS.  And on Ubuntu I can only get version 0.90.7 of rhc to install. It doesn't update to a newer version for some reason.

Can someone please help?  I'm just trying to gather as much information as possible to correctly document this in the Getting Started Guide.

Comment 7 Fotios Lindiakos 2012-04-27 12:47:52 UTC
What error messages did you get and what did you try to run? I just installed this on Ubuntu (with no other gems installed) and it worked fine: http://pastebin.test.redhat.com/86976

(In reply to comment #6)
> Does this mean this is not an issue on Windows machines?  Please confirm so
> that we can document correctly.  Also we state that we have added rake as a
> dependency in rhc as of version 0.91.8 to solve this in this forum: 
> http://hurl.test.redhat.com/TofGnL
> 
> But I still had these issues on newer versions (0.92.1) of client tools on
> Fedora and RHEL.  After installing client tools, I got error messages for rake.
>  Then I did a gem install rake, and after that I was able to use the client
> tools without any issues.  It doesn't appear that the dependency is resolved,
> or am I missing something?
> 
> Also, can someone please clarify which operating systems are affected by this? 
> I have tested on RHEL and Fedora and had rake issues. But I can't get rhc to
> update on Mac OS.  And on Ubuntu I can only get version 0.90.7 of rhc to
> install. It doesn't update to a newer version for some reason.
> 
> Can someone please help?  I'm just trying to gather as much information as
> possible to correctly document this in the Getting Started Guide.