1

所以我的 Openstack Devstack 安装因以下错误而停止:

./stack.sh:686:install_infra /home/mycloud/devstack/lib/infra:45:git_clone /home/mycloud/devstack/functions-common:545:git_timed /home/mycloud/devstack/functions-common:599: die [ERROR] /home/mycloud/devstack/functions-common:599 git 调用失败:[git clone git://git.openstack.org/openstack/requirements.git /opt/stack/requirements]

在这里找到了一些谷歌搜索后的解决方案:安装 Openstack 错误 ......并且它有效。

我的问题是,如果安装了 git 并且与存储库(以及 Internet 的其余部分)的连接存在,什么会使“git”调用失败并且“https”一项工作?

4

2 回答 2

8

如果 GIT 端口在防火墙上被阻止,您还可以通过修改 devstack 中的 stackrc 文件来更改安装。您可以更改该行:

GIT_BASE=${GIT_BASE:-git://git.openstack.org}

至:

GIT_BASE=${GIT_BASE:-https://git.openstack.org}

或者您也可以尝试http

GIT_BASE=${GIT_BASE:-http://git.openstack.org}
于 2015-07-01T12:52:00.350 回答
2

很可能是防火墙问题。该git://协议运行在 9418 端口,而 https:// 使用 443 端口。80 和 443 端口在防火墙中通常是开放的,其他端口可能需要配置。

更多信息: http: //git-scm.com/book/en/Git-on-the-Server-The-Protocols#The-Git-Protocol

于 2014-09-20T18:07:54.183 回答