首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cloudfoundry部署Micro Bosh失败

Cloudfoundry部署Micro Bosh失败
EN

Stack Overflow用户
提问于 2014-10-08 13:04:02
回答 1查看 237关注 0票数 1

我在这里尝试遵循这个指南:http://kendrickcoleman.com/index.php/Tech-Blog/from-zero-to-cloud-foundry-on-vsphere-part-1-how-to-install-microbosh.html

我已经完成了第13步。

我在日志中得到一个错误:

代码语言:javascript
复制
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

这是我的控制台所说的:

代码语言:javascript
复制
  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#

我没有得到足够的信息来帮助我的谷歌搜索。有什么想法吗?

谢谢

EN

回答 1

Stack Overflow用户

发布于 2014-10-09 07:15:04

确认,这个从Amit解决了我的问题。

..。特别是,我猜测您的apply_spec.properties.vcenter看起来像一个数组,而不是散列。这很令人困惑,因为在cloud.properties.vcenters下,它看起来是一样的,但它应该是一个数组。区别在于适当的行是显示- host: some_address还是host: some_address (没有-表示数组)。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26249526

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档