Bug 790987 - rhc-port-forward doesn't display the correct error message on key-pair mismatch between client/server
Summary: rhc-port-forward doesn't display the correct error message on key-pair mismat...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-15 21:28 UTC by Nam Duong
Modified: 2015-05-15 01:46 UTC (History)
3 users (show)

Fixed In Version: rhc-0.86.7-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-17 02:06:43 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Nam Duong 2012-02-15 21:28:09 UTC
Description of problem:
When my keys don't match on client and server, I get this error:

Nams-MacBook-Pro:test nduong$ rhc-port-forward -a myApp -l nduong+cygwin -d
Password: 
Submitting form:
debug: true
rhlogin: nduong+cygwin
Contacting https://openshift.redhat.com
Checking available ports...
ssh -t 2f03c46d100b46b5b7a1b45d9847d0e3.com 'rhc-list-ports'

No available ports to forward


This is confusing to the user (in this case, I mis-understood it as broken functionality).  

This occurs on all the clients (tried windows xp and Mac OSX)

Comment 1 Abhishek Gupta 2012-02-15 23:05:02 UTC
We are now doing a crude test to see if the ssh connection fails due to
permission denial and if so, we display the permission denied error message
instead of the misleading 'No available ports to forward' message being
earlier.

Comment 2 jizhao 2012-02-16 02:47:21 UTC
Verified on devenv-stage_132.


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