rhc package isn't working

Bug #1531613 reported by Rory Thrasher
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
rhc (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

It looks like the rhc package available on ubuntu 15.10 isn't working and is out of date.

Running 'sudo apt-get rhc' downloads rhc 1.35.4-3. After install, the --version is incorrect and the setup command will hang.

$ rhc --version
rhc 0.0.0

$ rhc setup --debug
DEBUG: Using config file /home/ubuntu/.openshift/express.conf
DEBUG: Running greeting_stage
OpenShift Client Tools (RHC) Setup Wizard

This wizard will help you upload your SSH keys, set your application namespace,
and check that other programs like Git are properly installed.
DEBUG: Running server_stage

If you have your own OpenShift server, you can specify it now. Just hit enter to
use the server for OpenShift Online: openshift.redhat.com.

You can add more servers later using 'rhc server'.
DEBUG: Running login_stage
DEBUG: Connecting to https://openshift.redhat.com/broker/rest/api
DEBUG: Client supports API versions 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
DEBUG: Created new httpclient
DEBUG: Request GET https://openshift.redhat.com/broker/rest/api
DEBUG: code 200 6565 ms
DEBUG: Server supports API versions 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
DEBUG: Using API version 1.7
DEBUG: Client API version 1.7 is not current. Refetching API
DEBUG: Request GET https://openshift.redhat.com/broker/rest/api
DEBUG: code 200 513 ms
DEBUG: Getting user info
DEBUG: Request GET https://openshift.redhat.com/broker/rest/user

# Hangs here endlessly

Installing rhc through ruby gems downloads rhc 1.38.4 - which works correctly. I'm not sure why the rhc package is having issues, but it looks like updating the package to a newer version might fix it.

I've only tested on 15.10, but 15.04 is supposedly an even earlier version of rhc, so that may also break in similar ways. The ubuntu 16 alpha is supposedly using the 1.38.4 package - so it would be useful to see if that is working there. The rhc package was first added to 15.04 - so these would be the only versions of ubuntu that might be affected.

Tags: packaging
Revision history for this message
Rory Thrasher (skullkid2424+ubuntu) wrote :

The --version coming back with 0.0.0 may indicate that the package might have a spec file, as its the result from the rescue in https://github.com/openshift/rhc/blob/master/lib/rhc/version.rb which should be looking for information from https://github.com/openshift/rhc/blob/master/rhc.gemspec#L8 .

This is pointing towards the package being faulty, not necessarily out of date.

Revision history for this message
Rory Thrasher (skullkid2424+ubuntu) wrote :

Sorry, comment #1 should say

"The --version coming back with 0.0.0 may indicate that the package might NOT have a spec file..."

tags: added: packaging
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in rhc (Ubuntu):
status: New → Confirmed
Revision history for this message
Wrwrwr (wrwrwr) wrote :

With Ubuntu 15.10 and rhc 1.35.4-3, rhc --version gives 0.0.0 and the setup hangs after GET (...) /broker/rest/user. Uninstalling the package (sudo apt-get remove rhc), installing the gem (sudo gem install rhc), and clearing bash's paths cache (hash -d rhc) did work.

Revision history for this message
Michael Vorburger (mike-vorburger) wrote :

FTR: Use of rhc deb package removed from OpenShift doc via https://github.com/openshift/devcenter/pull/457 until this is resolved (as the gem works just fine).

Revision history for this message
Tereza Simcic (tereza-simcic) wrote :

I have the same issue on Ubuntu 16.04, I solved it with some work around.
My version of gems is 2.5.1, but the rhc is in folder /var/lib/gems/2.3.0/gems/rhc-1.38.4
( I founded by searching the folders)

I navigated there and run 'rhc setup' from this location.
It worked.

Revision history for this message
Omar (onbiz) wrote :

Many thanks Wrwrwr, your workaround (comment #4) works for me on Ubuntu 16.04.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.