安装Openstack错误

Ste*_*ude 10 git openstack devstack

我没有openstack的经验,我很感激任何可以帮助和指导我解决这个问题的人.我正在虚拟环境中安装openstack(Ubuntu 12.04),这就出现了:

  • 克隆git // git.openstack.org/openstack/requirements.git/opt/stack/reqiurements克隆到'/ opt/stack/requirements'...致命:无法连接到git.openstack.org:git.openstack .org [0:192.237.223.224]:错误=连接拒绝git.openstack.org [1:2001:4800:7813:516:3bc3:d7f6:ff04:aacb]:错误=网络无法访问

小智 45

我遇到了同样的问题,我的测试环境中阻止了git协议.

解决方案是修改devstack安装文件夹中的sourcerc文件以使用https而不是git.你必须寻找那条线并改变它.该文件也称为local.conf文件.

sourcerc文件中的默认设置:

GIT_BASE=${GIT_BASE:-git://git.openstack.org}
Run Code Online (Sandbox Code Playgroud)

修改后的设置应绕过git限制:

GIT_BASE=${GIT_BASE:-https://git.openstack.org}
Run Code Online (Sandbox Code Playgroud)

只需将此修改后的行添加到DevStack 目录中local.conf文件的local/localrc部分,它就应该使用HTTPS协议而不是Git协议!有关local.conf文件的更多信息,请访问http://devstack.org/configuration.html

  • 在哈瓦那,该文件名为stackrc. (5认同)
  • 好的ty所以对于信息,我实际上不得不将配置更改为以下`GIT_BASE = $ {GIT_BASE:-https://github.com}`非常感谢我们的公司防火墙阻止git请求访问**git.openstack .org**,但幸运的是openstack将源代码放在github上,并且github没有被阻止 (2认同)

gau*_*rav 9

在stackrc中进行更改:

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

+GIT_BASE=${GIT_BASE:-https://www.github.com}
Run Code Online (Sandbox Code Playgroud)

这将为您解决问题.