Description of problem: === When I try to use --from-code option with ssh protocol, I get forllowing error. knakayam@localhost:~$ rhc app create kitchensink jbossas-7 mysql-5.5 -g small --from-code=git:openshift/kitchensink-example.git Application Options ------------------- Domain: kenjiro Cartridges: jbossas-7, mysql-5.5 Source Code: git:openshift/kitchensink-example.git Gear Size: small Scaling: no Creating application 'kitchensink' ... Source code repository could not be cloned: 'git:openshift/kitchensink-example.git'. Please verify the repository is correct and try a non-SSH URL such as HTTP. Version-Release number of selected component (if applicable): === Tested for OSE2.1.4 and OpenShift Online with .. [root@vm ~]# rhc --version rhc 1.24.3.1 knakayam@localhost:~$ rhc --version rhc 1.19.5 How reproducible: === Steps to Reproduce: 1. Test below with OpenShift Online $ rhc app create kitchensink jbossas-7 mysql-5.5 -g small --from-code=git:openshift/kitchensink-example.git 2. I have already uploaded SSH pubkey on github, I can git clone. $ git clone git:openshift/kitchensink-example.git 3. Also we can create with git protocol like below. $ rhc app create kitchensink jbossas-7 --from-code git://github.com/openshift/kitchensink-example.git Actual results: (Please seee ${Description of problem}) Expected results: We need to spcify SSH protocol for --from-code. We cannot use other protocols except SSH on some environment.
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