Bug 1154344
Summary: | "rhc app create" cannot use from-code option with SSH protocol like "--from-code=git@example.com:openshift/xxx.git" | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Kenjiro Nakayama <knakayam> | |
Component: | oc | Assignee: | John W. Lamb <jolamb> | |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> | |
Severity: | high | Docs Contact: | ||
Priority: | urgent | |||
Version: | 2.1.0 | CC: | anli, bleanhar, jhonce, jialiu, jokerman, knakayam, libra-onpremise-devel, mmccomas, ofayans | |
Target Milestone: | --- | Keywords: | Upstream | |
Target Release: | --- | |||
Hardware: | All | |||
OS: | All | |||
Whiteboard: | ||||
Fixed In Version: | rubygem-openshift-origin-node-1.33.1.1-1 | Doc Type: | Known Issue | |
Doc Text: |
Cause: A node's root user must have SSH keys in place in order to clone an application from a GIT repo over SSH. It's not common for users who are deploying applications to have the ability to deploy SSH keys to the root user.
Consequence: Cloning applications over SSH is not supported.
Workaround (if any): None.
Result: An appropriate error message is now provided indicating the user should clone over a non SSH protocol.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1163964 (view as bug list) | Environment: | ||
Last Closed: | 2015-01-08 15:34:16 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: | ||||
Bug Depends On: | 1163964 | |||
Bug Blocks: |
Description
Kenjiro Nakayama
2014-10-19 03:07:30 UTC
git SSH protocol is supported by the from-code, see below. When this has come up in the past it is some networking device/firewall blocking outbound SSH connections. The error message includes the hint to use http/s as those alternative protocols may be open. $rhc app create kitchensink jbossas-7 mysql-5.5 -g small --from-code=git:openshift/kitchensink-example.git Application Options ------------------- Domain: honcenet Cartridges: jbossas-7, mysql-5.5 Source Code: git:openshift/kitchensink-example.git Gear Size: small Scaling: no Creating application 'kitchensink' ... Artifact: ./ROOT.war is still deploying done MySQL 5.5 database added. Please make note of these credentials: Root User: admini4bU98q Root Password: PxX7ztf-FKAw Database Name: kitchensink Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/ You can manage your new MySQL database by also embedding phpmyadmin. The phpmyadmin username and password will be the same as the MySQL credentials above. Waiting for your DNS name to be available ... done Cloning into 'kitchensink'... Warning: Permanently added 'kitchensink-honcenet.dev.rhcloud.com,10.142.185.137' (RSA) to the list of known hosts. Your application 'kitchensink' is now available. URL: http://kitchensink-honcenet.dev.rhcloud.com/ SSH to: 5446ac2a3166c817a0000001.rhcloud.com Git remote: ssh://5446ac2a3166c817a0000001.rhcloud.com/~/git/kitchensink.git/ Cloned to: /root/kitchensink Run 'rhc show-app kitchensink' for more details about your app. I tested on my several different environment, but --from-code with SSH protocol is always failed. I am sure I can git clone with SSH protocol like this. $ git clone git:openshift/kitchensink-example.git Cloning into 'kitchensink-example'... remote: Counting objects: 140, done. remote: Total 140 (delta 0), reused 0 (delta 0) Receiving objects: 100% (140/140), 87.17 KiB | 66.00 KiB/s, done. Resolving deltas: 100% (29/29), done. Checking connectivity... done. Also I tested for my OSE environment and could see "Host key verification failed." error in /var/log/openshift/node/platform-trace.log. So, although I think my comment#1 is not wrong, I will wait for QA. Thanks for your comment, Jhon. Verified and pass on puddle-2-2-2014-12-08 Currently, rhc provide meanfull message when use from-code option with SSH protocol [anli@dhcp-129-213 ~]$ rhc app create python2 python-2.6 --from-code=git:openshift/flask-example.git Application Options ------------------- Domain: hanli1dom Cartridges: python-2.6 Source Code: git:openshift/flask-example.git Gear Size: default Scaling: no Creating application 'python2' ... Source code repository could not be cloned: 'git:openshift/flask-example.git'. Git clone using SSH requires the OpenShift server to authenticate to the repository. Please verify the repository is correct, and try a non-SSH URL such as HTTPS. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0019.html |