linux - Bosh init 在通过脚本创建 bosh VM 时在 openstack 上出错

标签 linux ubuntu openstack cf-bosh

我已经创建了一个 OpenStack 环境,我想部署 BOSH,之后我将在该 VM 上为我们办公室的测试环境部署 CloudFoundry。我按照这些链接作为指南:

根据我的环境配置脚本后,我运行脚本并得到以下错误:

Error:
    Started deploying
      Creating VM for instance 'bosh/0' from stemcell '20e80643-76a0-4b28-8993-ceafd1ecfdaf'... Failed (00:00:04)
      Failed deploying (00:00:04)

    Stopping registry... Finished (00:00:00)

Command 'deploy' failed:
    Deploying:
        Creating instance 'bosh/0':
            Creating VM:
                Creating vm with stemcell cid '20e80643-76a0-4b28-8993-ceafd1ecfdaf':
            CPI 'create_vm' method responded with error: CmdError{"type":"Unknown","message":"Expected([200, 202]) \u003c=\u003e Actual(404 Not         Found)\nexcon.error.response\n  :body          =\u003e \"{\\\"itemNotFound\\\": {\\\"message\\\": \\\"The resource could not be found.\\\",         \\\"code\\\": 404}}\"\n  :headers       =\u003e {\n    \"Content-Length\"       =\u003e \"78\"\n    \"Content-Type\"         =\u003e \"applic        ation/json; charset=UTF-8\"\n    \"Date\"                 =\u003e \"Mon, 01 Jun 2015 07:59:11 GMT\"\n    \"X-Compute-Request-Id\" =\u003e \"r        eq-88aa57cd-b29f-49c0-ba77-a75292451367\"\n  }\n  :local_address =\u003e \"10.110.82.11\"\n  :local_port    =\u003e 52722\n  :reason_phrase =        \u003e \"Not Found\"\n  :remote_ip     =\u003e \"10.110.82.11\"\n  :status        =\u003e 404\n","ok_to_retry":false}

(注意:上面 BOSH 链接中提到的脚本指的是 Stemcell 2950,但我已将其替换为最新的,即 2977)

另外,我对 Linux、Openstack 和 cloud foundry 有点陌生,所以如果我需要一些时间来理解并为您提供更多诊断细节,我深表歉意。 关于我做错了什么的任何想法。谢谢。

最佳答案

您使用的 OpenStack 版本似乎不支持 neutron networking由 BOSH OpenStack CPI v28+ 使用,因此您可以尝试在 BOSH 云配置属性中启用 Nova-Networking 使用旧的 nova 网络 api。

properties:
  openstack: &openstack
    use_nova_networking: true

参见 http://bosh.io/docs/openstack-nova-networking.html了解详情。

https://github.com/cloudfoundry-incubator/bosh-openstack-cpi-release/issues/59 中发现/解决了类似的错误

关于linux - Bosh init 在通过脚本创建 bosh VM 时在 openstack 上出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30570596/

相关文章:

linux - 使用 BASH 脚本组合两行

ubuntu - 在 gnome-terminal/bash 中,std 输出可以作为命令直接运行(解释吗?)?

Python 检查元组的任何项目是否在字符串中

python - 想要使用 python swiftclient 将 sqlite.db 文件上传到 swift 容器并且总是得到 utf-8 错误

javascript - OpenStack Horizo​​n 仪表板(Folsom 版本)js 构建器

linux - 虚拟linux系统

C# - perlembed - 在 linux 中编译错误

ubuntu - 计算引擎 : upgrade Ubuntu before 14. 04 (Trusty) 弃用

java - 在 Jclouds for openstack 中创建 NeutronApi 对象时抛出 com.google.inject.ConfigurationException

linux - 互斥解锁和 request_module() 行为