Openshift Origin安全的git克隆错误

4
尝试使用一个简单的byo runbook设置来尝试openshift origin V3,并严格遵循高级安装说明。然而,我的构建在从任何git存储库(包括公共的github存储库)克隆时出现困难。
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.

我在主机上手动克隆仓库没有任何问题。

非常感谢您的建议。


请确保您正在使用已上传到 OpenShift 的相同公钥! - U.Swap
这是在本地运行的 openshift origin,位于 openshift.ORG,而不是托管在 openshift.COM 的 openshift online。即便如此,它仍然是一个公共存储库,因此不需要身份验证。 - Frank
顺便问一下,你是在公司代理后面吗?https://docs.openshift.com/enterprise/3.0/admin_guide/http_proxies.html#configuring-default-templates-for-proxies。你能直接在节点上检查项目吗? - dbalakirev
我不在公司代理后面。我可以直接在节点上检出项目。 - Frank
1个回答

1
/etc/sysconfig/network-scripts/etc/resolv.conf文件中删除所有searchdomain条目可以修复该问题。这是通过使用本地设置进行测试发现的,该设置使用DHCP寻址而不是手动分配IP地址,并且在我的原始问题中,主机正常工作,这有助于缩小两个环境之间的网络差异问题的范围。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接