2014-10-08 53 views
1

我试图按照本指南在这里:http://kendrickcoleman.com/index.php/Tech-Blog/from-zero-to-cloud-foundry-on-vsphere-part-1-how-to-install-microbosh.htmlCloudfoundry部署微波什失败

我到步骤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:[email protected]: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>' 
[email protected]:/bosh/deployments# 

我没有得到足够的信息来帮助我的谷歌。有任何想法吗?

谢谢

+0

发生故障的代码行如下:https://github.com/cloudfoundry/bosh/blob/master/bosh_cli_plugin_micro/lib/bosh/deployer/instance_manager/vsphere.rb#L32。该错误消息暗示某事是一个数组,但代码试图访问它的元素,就好像它是一个带有String键的散列。我的猜测是你的Micro BOSH部署清单(类似于http://kendrickcoleman.com/phocadownload/userupload/micro_bosh_nodescriptors.yml)是错误的... – 2014-10-08 05:41:02

+0

...特别是我猜你的'apply_spec.properties.vcenter '看起来像一个数组而不是散列。这很令人困惑,因为在'cloud.properties.vcenters'下看起来相同,但它应该是一个数组。不同之处在于相应的行是说' - host:some_address'还是'host:some_address'(没有'-'来指示数组)。奥米特,冠军, – 2014-10-08 05:43:35

+0

。看起来是对的,太多了。现在在家,但明天会考试,谢谢。 – user1076412 2014-10-08 08:45:53

回答

1

确认,这从艾米特固定我的问题。

...特别是我猜你的apply_spec.properties.vcenter看起来像一个数组而不是散列。这很混乱,因为在cloud.properties.vcenters下它看起来一样,但它应该是一个数组。区别在于相应的行是否说 - host:some_address或host:some_address(没有 - 表示数组)。

+0

你应该接受这个答案,可能对下一个出现的人有用。 – 2014-10-09 22:18:51