簡體   English   中英

Cloudfoundry部署Micro Bosh失敗

[英]Cloudfoundry Deploy Micro Bosh Fails

我正在嘗試遵循此指南: http : //kendrickcoleman.com/index.php/Tech-Blog/from-zero-to-cloud-foundry-on-vsphere-part-1-how-to-install-microbosh html的

我要執行步驟13。

我在日志中得到一個錯誤:

I, [2014-10-08T15:57:11.460375 #30531] [attach_disk(vm-3bfd53b7-1bac-44e1-b6a9-87454f9d0f88, disk-e1e99cad-1c98-4096-a78c-4b81ee1509ee)]  INFO -- : Updating agent env to: {"vm"=>{"name"=>"vm-3bfd53b7-1bac-44e1-b6a9-87454f9d0f88", "id"=>"vm-8857"},
 "agent_id"=>"bm-913097b0-3865-4f87-b5b1-9608e66b34c9",
 "networks"=>
  {"bosh"=>
    {"cloud_properties"=>{"name"=>"Network Private"},
     "netmask"=>"mynetmask",
     "gateway"=>"mygateway",
     "ip"=>"myip",
     "dns"=>["mydns"],
     "type"=>nil,
     "default"=>["dns", "gateway"],
     "mac"=>"00:50:56:93:17:23"}},
 "disks"=>
  {"system"=>"0",
   "ephemeral"=>"1",
   "persistent"=>{"disk-e1e99cad-1c98-4096-a78c-4b81ee1509ee"=>"2"}},
 "ntp"=>["ntp.example.com.au"],
 "blobstore"=>
  {"provider"=>"local",
   "options"=>{"blobstore_path"=>"/var/vcap/micro_bosh/data/cache"}},
 "mbus"=>"https://vcap:b00tstrap@0.0.0.0:6868",
 "env"=>{"bosh"=>{"password"=>nil}}}

I, [2014-10-08T15:57:18.350121 #30531] [attach_disk(vm-3bfd53b7-1bac-44e1-b6a9-87454f9d0f88, disk-e1e99cad-1c98-4096-a78c-4b81ee1509ee)]  INFO -- : Attaching disk
I, [2014-10-08T15:57:20.381994 #30531] [attach_disk(vm-3bfd53b7-1bac-44e1-b6a9-87454f9d0f88, disk-e1e99cad-1c98-4096-a78c-4b81ee1509ee)]  INFO -- : Finished attaching disk

這是我的控制台說的:

  Started deploy micro bosh > Mount disk. Done (00:00:07)
     Done deploy micro bosh > Updating persistent disk (00:00:17)
  Started deploy micro bosh > Stopping agent services. Done (00:00:01)
  Started deploy micro bosh > Applying micro BOSH spec/usr/local/rvm/gems/ruby-2.0.0-p576/gems/bosh_cli_plugin_micro-1.2732.0/lib/bosh/deployer/instance_manager/vsphere.rb:32:in `[]': no implicit conversion of String into Integer (TypeError)
        from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/bosh_cli_plugin_micro-1.2732.0/lib/bosh/deployer/instance_manager/vsphere.rb:32:in `update_spec'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/bosh_cli_plugin_micro-1.2732.0/lib/bosh/deployer/instance_manager.rb:380:in `block in apply'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/bosh_cli_plugin_micro-1.2732.0/lib/bosh/deployer/instance_manager.rb:85:in `step'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/bosh_cli_plugin_micro-1.2732.0/lib/bosh/deployer/instance_manager.rb:378:in `apply'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/bosh_cli_plugin_micro-1.2732.0/lib/bosh/deployer/instance_manager.rb:146:in `create'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/bosh_cli_plugin_micro-1.2732.0/lib/bosh/deployer/instance_manager.rb:98:in `block in create_deployment'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/bosh_cli_plugin_micro-1.2732.0/lib/bosh/deployer/instance_manager.rb:92:in `with_lifecycle'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/bosh_cli_plugin_micro-1.2732.0/lib/bosh/deployer/instance_manager.rb:98:in `create_deployment'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/bosh_cli_plugin_micro-1.2732.0/lib/bosh/cli/commands/micro.rb:179:in `perform'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/bosh_cli-1.2732.0/lib/cli/command_handler.rb:57:in `run'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/bosh_cli-1.2732.0/lib/cli/runner.rb:56:in `run'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/bosh_cli-1.2732.0/lib/cli/runner.rb:16:in `run'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/gems/bosh_cli-1.2732.0/bin/bosh:7:in `<top (required)>'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/bin/bosh:23:in `load'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/bin/bosh:23:in `<main>'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/bin/ruby_executable_hooks:15:in `eval'
        from /usr/local/rvm/gems/ruby-2.0.0-p576/bin/ruby_executable_hooks:15:in `<main>'
root@vmt-cf-01:/bosh/deployments#

我沒有足夠的信息來幫助我的Google搜索。 有任何想法嗎?

謝謝

確認,來自Amit的此問題解決了我的問題。

...特別是我猜您的apply_spec.properties.vcenter看起來像數組而不是哈希。 這很令人困惑,因為在cloud.properties.vcenters下它看起來相同,但是應該有一個數組。 區別在於相應的行是否顯示-host:some_address或host:some_address(不帶-表示數組)。

暫無
暫無

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

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