git 安装 Openstack 错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20390267/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 17:25:47  来源:igfitidea点击:

Installing Openstack errors

gitopenstackdevstack

提问by Steven Meow De Claude

I have no experience in openstack and would appreciate anyone who can help and guide me with this issue. I'm installing openstack in virtual environment (Ubuntu 12.04) and this came out:

我没有使用 openstack 的经验,如果有人可以帮助和指导我解决这个问题,我将不胜感激。我正在虚拟环境(Ubuntu 12.04)中安装 openstack,结果如下:

  • git clone git//git.openstack.org/openstack/requirements.git/opt/stack/reqiurements Cloning into '/opt/stack/requirements'... fatal:unable to connect to git.openstack.org: git.openstack.org[0: 192.237.223.224]: errno=Connection refused git.openstack.org[1: 2001:4800:7813:516:3bc3:d7f6:ff04:aacb]: errno=Network is unreachable
  • git clone git//git.openstack.org/openstack/requirements.git/opt/stack/reqiurements Cloning into '/opt/stack/requirements'... 致命:无法连接到 git.openstack.org:git.openstack .org[0: 192.237.223.224]: errno=连接被拒绝 git.openstack.org[1: 2001:4800:7813:516:3bc3:d7f6:ff04:aacb]: errno=网络无法访问

回答by Jacek Sztandera

I had the same problem, the git protocol is blocked in my testing environment.

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

The solution is to modify the sourcercfile in the devstack installation folder to use httpsinstead of git. You have to look for that line and change it. This file is also known as the local.conffile.

解决办法是修改devstack安装文件夹中的sourcerc文件,使用https代替git。你必须寻找那条线并改变它。此文件也称为local.conf文件。

Default setting in sourcerc file:

sourcerc 文件中的默认设置:

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

Modified setting that should bypass git restrictions:

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

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

Simply add this modified line to the local/localrc section of your local.conffile in the DevStack directory and it should use the HTTPS protocol instead of the Git protocol! More info on the local.conffile here - http://devstack.org/configuration.html

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

回答by gaurav

Make change in stackrc :

在 stackrc 中进行更改:

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

+GIT_BASE=${GIT_BASE:-https://www.github.com}

This would solve problem for you.

这将为您解决问题。

回答by Max Lobur

Sorry, can't help you with your particular error, but in general, the easiest way to install openstack is http://devstack.org/

抱歉,无法帮助您解决特定错误,但总的来说,安装 openstack 的最简单方法是http://devstack.org/

Here are a few notes to install it on virgin Ubuntu 12.04 x64 server:

以下是在原始 Ubuntu 12.04 x64 服务器上安装它的一些注意事项:

https://gist.github.com/max-lobur/7786074

https://gist.github.com/max-lobur/7786074

This manual is about OpenStack together with Ironic project, but it won't affect you anyway. And you can omit "Install ironic client" step.

本手册是关于 OpenStack 和 Ironic 项目的,但无论如何它不会影响您。您可以省略“安装讽刺客户端”步骤。

回答by Akhil

In the git clone command replace the protocol - git:// with http://, in the repository URL and try. May be the network, to which your machine is connected, is prohibiting the git protocol.

在 git clone 命令中,将存储库 URL 中的协议 - git:// 替换为 http:// 并尝试。可能是您的机器所连接的网络禁止了 git 协议。

回答by keerthi

Changing to "http" worked for me.

更改为“http”对我有用。

回答by Radhakrishnan Rk

This is my custom bash script to install openstack ocata. It covers the installation of openstack core projects which includes keystone, nova, glance, nova, neutron and horizon dashboard.

这是我用于安装 openstack ocata 的自定义 bash 脚本。它涵盖了 openstack 核心项目的安装,其中包括 keystone、nova、glance、nova、neutron 和 horizo​​n 仪表板。

Please follow the instructions in the document and execute the script in your environment. We can add additional compute node with this script.

请按照文档中的说明在您的环境中执行脚本。我们可以使用此脚本添加额外的计算节点。

https://github.com/techbhashya/openstack-ocata

https://github.com/techbhashya/openstack-ocata

回答by chitresh

Sometimes git:// urls won't work. In such scenario you can use https instead of git. use the following command:

有时 git:// 网址不起作用。在这种情况下,您可以使用 https 而不是 git。使用以下命令:

git config --global url."https://".insteadOf git://