origin: git clone errors on public repositories

Giving openshift origin V3 a try with a simple byo runbook setup that sticks closely with the Advanced Installation instructions. However, my builds are having difficulty cloning from any git repository, even public github ones.

HTTPS:

F0609 05:01:49.810021 1 builder.go:204] Error: build error: fatal: unable to access 'https://github.com/blongden/phpinfo.git/': Unable to communicate securely with peer: requested domain name does not match the server's certificate.

SSH:

I0609 05:10:41.228300 1 source.go:197] Downloading "git@github.com:blongden/phpinfo.git" ... F0609 05:10:41.867643 1 builder.go:204] Error: build error: Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

I have no problems cloning the repo manually on my master.

Any wisdom will be greatly appreciated.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 23 (4 by maintainers)

Most upvoted comments

Just some more details. I’m launching my Openshift Cluster using the AWS quickstart. When I don’t specify DHCP options. My /etc/resolv.conf looks like this

[ec2-user@ip-10-64-10-71 ~]$ cat /etc/resolv.conf
# Generated by NetworkManager
search ec2.internal
nameserver 10.64.0.2

And the Cluster is fine.

When I do turn on DHCP options to point to my personal DNS server. My resolv.conf looks like this

[root@ip-10-64-10-74 ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search Dev.myexample.org dev.myexample.org
nameserver 10.68.10.10
nameserver 10.68.11.10

The actual hosts have DNS as I can ssh in and clone a git repo but it appears the containers do not.

image

The only difference between these clusters is I have enabled DHCP options on one of them.

I have a fresh origin 1.4 installation (Centos7 using Ansible 1.4 branch) and get the same issue.

Cloning "git@github.com:madalinignisca/my-ghost-blog.git" ...
error: build error: Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Identical when trying https repo url.

They fails the same for the demos (ruby-ex, node-ex).