【问题标题】:Installing Openstack errors安装 Openstack 错误
【发布时间】:2013-12-21 19:39:30
【问题描述】:

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

  • git clone git//git.openstack.org/openstack/requirements.git/opt/stack/reqiurements 克隆到 '/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=网络是 无法到达

【问题讨论】:

    标签: git openstack devstack


    【解决方案1】:

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

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

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

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

    【讨论】:

      【解决方案2】:

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

      【讨论】:

        【解决方案3】:

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

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

        sourcerc 文件中的默认设置:

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

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

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

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

        【讨论】:

        • 在哈瓦那该文件称为 stackrc。
        • 很好,所以对于信息,我实际上不得不将配置更改为以下GIT_BASE=${GIT_BASE:-https://github.com} 非常感谢我们的公司防火墙阻止了 git 请求访问 git.openstack.org,不过好在openstack把源码放到了github上,github没有被封
        【解决方案4】:

        更改为“http”对我有用。

        【讨论】:

          【解决方案5】:

          在 stackrc 中进行更改:

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

          这将为您解决问题。

          【讨论】:

            【解决方案6】:

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

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

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

            【讨论】:

              【解决方案7】:

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

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

              【讨论】:

                猜你喜欢
                • 1970-01-01
                • 1970-01-01
                • 1970-01-01
                • 1970-01-01
                • 2016-11-10
                • 2012-01-17
                • 1970-01-01
                • 1970-01-01
                • 1970-01-01
                相关资源
                最近更新 更多