簡體   English   中英

通過腳本創建Bosh VM時,Bosh init在openstack上給出錯誤

[英]Bosh init gives error, on openstack, while creating bosh VM through script

我已經創建了一個OpenStack環境,我想部署BOSH,然后在該VM上為我們辦公室的Test環境部署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版本不支持BOSH OpenStack CPI v28 +使用的中子網絡 ,因此您可以嘗試使用舊的nova聯網api在BOSH雲配置屬性中啟用Nova-Networking。

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中找到/解決了類似的錯誤

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM