Error while deploying bosh : undefined method `name' for #<Hash

51 views
Skip to first unread message

rsanch...@gmail.com

unread,
Aug 29, 2013, 7:45:20 AM8/29/13
to bosh-...@cloudfoundry.org
Hi all,
 
     I'm trying to deploy BOSH release 13 but I'm getting:
 
Preparing configuration
  binding configuration: Error filling in template `director.yml.erb' for `director/0' (line 136: undefined method `name' for #<Hash:0x000000026683a0>) (00:00:00)
Error                   1/1 00:00:00
Error 80006: Error filling in template `director.yml.erb' for `director/0' (line 136: undefined method `name' for #<Hash:0x000000026683a0>)
It used to be a related issue:
 
 
But I'm using the right director.yml.erb :
 
...
   datacenters:
          <% datacenters.each do |dc| %>
          - name: <%= dc['name'] %>
            vm_folder: <%= dc['vm_folder'] || "BOSH_VMs" %>
            template_folder: <%= dc['template_folder'] || "BOSH_Templates" %>
...
 
But still getting  "undefined method `name' for #<Hash:0x000000026683a0>"
 
Any idea?
 
Thank you

rsanch...@gmail.com

unread,
Aug 29, 2013, 7:59:08 AM8/29/13
to bosh-...@cloudfoundry.org, rsanch...@gmail.com
I'm sorry, I forgot to include some extra info of my deployment:
 
gem list bosh
 
bosh_aws_cpi (1.5.0.pre.888)
bosh_cli (1.5.0.pre.888)
bosh_cli_plugin_micro (1.5.0.pre.888)
bosh_common (1.5.0.pre.888, 1.5.0.pre.867)
bosh_cpi (1.5.0.pre.888)
bosh_openstack_cpi (1.5.0.pre.888)
bosh_registry (1.5.0.pre.888)
bosh_vcloud_cpi (0.4.9)
bosh_vsphere_cpi (1.5.0.pre.888)
bosh status
 
Config
             /home/dds/.bosh_config
Director
  Name       micro01
  URL        https://10.16.94.230:25555
  Version    1.5.0.pre.912 (release:70118c29 bosh:70118c29)
  User       admin
  UUID       4198a6d1-e763-417f-bffd-1e7225e8a38c
  CPI        vsphere
  dns        enabled (domain_name: microbosh)
  compiled_package_cache disabled
  snapshots  disabled
Deployment
  Manifest   /home/dds/deployments/bosh.yml
bosh.yml
Reply all
Reply to author
Forward
0 new messages