Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1059683 - App create fails with remote code repo when user specified without password
Summary: App create fails with remote code repo when user specified without password
Keywords:
Status: CLOSED EOL
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Pod
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
: ---
Assignee: Luke Meyer
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-30 11:03 UTC by Jim Minter
Modified: 2017-01-13 22:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-13 22:35:32 UTC


Attachments (Terms of Use)

Description Jim Minter 2014-01-30 11:03:07 UTC
Description of problem:

When a user specifies a remote git repo when creating an app:

1. if no remote username & password is specified for the git repo, everything works
2. if a remote username & password is specified for the git repo, everything works
3. BUT, if a username but no password is specified for the git repo, it doesn't work, even though an equivalent 'git clone' WOULD work

In case 3 above, when the OpenShift node runs git clone, git hangs waiting interactively for a password.  The app create operation times out, possibly leaving a hung git process on the node (please verify).

So, the following commands work:

rhc app create test php --from-code 'https://myuser:mypass@code.google.com/p/project'
rhc app create test php --from-code 'https://code.google.com/p/project'

This one doesn't work:

rhc app create test php --from-code 'https://myuser@code.google.com/p/project'
(even though git clone 'https://myuser@code.google.com/p/project DOES work, albeit interactively)

And this one works:

rhc app create test php --from-code 'https://myuser:@code.google.com/p/project'
(note the additional colon, indicating a blank password and switching off the git interactive password prompt)

Version-Release number of selected component (if applicable):

2.0

How reproducible:

Every time

Steps to Reproduce:

See above

Additional info:

I'm submitting this bug because:
(a) this level of technical detail is possibly beyond the knowledge of the average OpenShift user, so it's confusing
(b) it looks like the git processes hang on the node (unconfirmed), which isn't great

I'd suggest ensuring that git clone can never go interactive on the node; a quick hack that worked for me was the following:

$ GIT_ASKPASS=/bin/echo git clone 'https://myuser@code.google.com/p/project'

This causes git to try a blank password if no password is specified by the user.

Comment 3 Rory Thrasher 2017-01-13 22:35:32 UTC
OpenShift Enterprise v2 has officially reached EoL.  This product is no longer supported and bugs will be closed.

Please look into the replacement enterprise-grade container option, OpenShift Container Platform v3.  https://www.openshift.com/container-platform/

More information can be found here: https://access.redhat.com/support/policy/updates/openshift/


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