Openstack devstack 安装因 git 调用失败而停滞
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25866608/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Openstack devstack installation stalls with git call failure
提问by Irvin H.
So my Openstack Devstack installation stalls with the following error:
所以我的 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 call failed: [git clone git://git.openstack.org/openstack/requirements.git /opt/stack/requirements]
./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 [错误] /home/mycloud/devstack/functions-common:599 git 调用失败:[git clone git://git.openstack.org/openstack/requirements.git /opt/stack/requirements]
The solution after a bit of googling is found here: Installing Openstack errors... and it works.
在这里找到了一些谷歌搜索后的解决方案:安装 Openstack 错误......并且它有效。
My question is what would make the "git" call fail and the "https" one work if git is installed and connectivity to the repository (as well as the rest of the Internet) is present?
我的问题是,如果安装了 git 并且存在与存储库(以及 Internet 的其余部分)的连接,什么会导致“git”调用失败并且“https”调用有效?
回答by Amit
In case the GIT port is blocked on the firewall, you may also alter the installation by modifying stackrc file in devstack. You may change the line:
如果防火墙阻止了 GIT 端口,您也可以通过修改 devstack 中的 stackrc 文件来更改安装。您可以更改行:
GIT_BASE=${GIT_BASE:-git://git.openstack.org}
to:
到:
GIT_BASE=${GIT_BASE:-https://git.openstack.org}
or you may also try with http
:
或者你也可以尝试http
:
GIT_BASE=${GIT_BASE:-http://git.openstack.org}
回答by Miguel
It's likely a firewall issue. The git://
protocol runs on port 9418, while https:// uses port 443. Ports 80 and 443 are normally open in firewalls, other ports may need to be configured.
很可能是防火墙问题。该git://
协议运行在9418端口,而https://使用443端口。80和443端口在防火墙中是正常开放的,其他端口可能需要配置。
For more information: http://git-scm.com/book/en/Git-on-the-Server-The-Protocols#The-Git-Protocol
更多信息:http: //git-scm.com/book/en/Git-on-the-Server-The-Protocols#The-Git-Protocol