Bug 790987

Summary: rhc-port-forward doesn't display the correct error message on key-pair mismatch between client/server
Product: OKD Reporter: Nam Duong <nduong>
Component: ocAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: jizhao, jofernan, rmillner
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhc-0.86.7-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-17 02:06:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.