Bug 818330

Summary: Git/ssh error on git clone GIT_URL: ControlPath too long
Product: OKD Reporter: Nam Duong <nduong>
Component: ocAssignee: Clayton Coleman <ccoleman>
Status: CLOSED WONTFIX QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.xCC: jofernan, rmillner, xtian
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-25 05:43:58 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-05-02 19:24:12 UTC
Description of problem:
See forum post:
https://openshift.redhat.com/community/forums/openshift/solved-git-clone-or-other-git-command-exits-with-error-controlpath-too-long

This user ran into a very specific ssh error:
$ git clone GIT_URL
Cloning into 'myapp'...
ControlPath too long
fatal: The remote end hung up unexpectedly

Solution:
Added the following to ~/.ssh/config:
Host *.rhcloud.com
    ControlPath ~/.ssh/control-%h


For this enhancement, should we include this into our rhc client tool's ssh environment config?  Does it hurt?

Please note that this is the first time I've seen this exact error, but I haven't been *looking for it.

Comment 1 Clayton Coleman 2012-05-03 22:55:49 UTC
Changing the ControlPath means that multiple SSH agents might collide - I don't think restricting it this way is a good idea.  We might be able to shorten the hostname or user.  I think if they followed these steps they would only be able to ssh/git on one process at a time

Can you document this as a workaround in the KB for now?

Comment 2 Clayton Coleman 2012-06-21 14:40:24 UTC
I opened a KB article for this.  https://openshift.redhat.com/community/kb/kb-e1046-unable-to-git-clone-an-application-when-ssh-multiplexing-is-in-use-controlpath-too-long.  We have no easy path to implement this in the CLI and changing the Git URL is fairly expensive.  Not many folks have hit this.

Comment 3 Xiaoli Tian 2012-06-25 05:43:58 UTC
Since there's a KB for this, and according to comment 2, close it as won't fix.