{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/bosh/issues/750","labels_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/750/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/750/comments","events_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/750/events","html_url":"https://github.com/cloudfoundry/bosh/issues/750","id":56932827,"number":750,"title":"Fail to setup BOSH with vsphere with BOSH version 2830 ","user":{"login":"fckbo","id":10832015,"avatar_url":"https://avatars.githubusercontent.com/u/10832015?v=3","gravatar_id":"","url":"https://api.github.com/users/fckbo","html_url":"https://github.com/fckbo","followers_url":"https://api.github.com/users/fckbo/followers","following_url":"https://api.github.com/users/fckbo/following{/other_user}","gists_url":"https://api.github.com/users/fckbo/gists{/gist_id}","starred_url":"https://api.github.com/users/fckbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fckbo/subscriptions","organizations_url":"https://api.github.com/users/fckbo/orgs","repos_url":"https://api.github.com/users/fckbo/repos","events_url":"https://api.github.com/users/fckbo/events{/privacy}","received_events_url":"https://api.github.com/users/fckbo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-08T00:40:17Z","updated_at":"2015-02-09T12:30:31Z","closed_at":null,"body":"Hello,\r\n\r\nI'm a newbie on BOSH so sorry if this question is stupid....I've been playing with BOSH for few days now and got a old release (912) running on vsphere but when I tried with a newer version (2830) and I'm getting an error (see below).\r\n\r\nI'm getting the stemcells & release from here: http://bosh_artifacts.cfapps.io.\r\n\r\nthe vms are created \r\nroot@ubuntu1404:~/my-bosh-deployment# bosh vms\r\nDeployment `bosh2'\r\nDirector task 27\r\nTask 27 done\r\n\r\n+-------------+---------+---------------+----------------+\r\n| Job/index   | State   | Resource Pool | IPs            |\r\n+-------------+---------+---------------+----------------+\r\n| bosh_api/0  | running | default       | 10.105.144.237 |\r\n| bosh_data/0 | running | default       | 10.105.144.238 |\r\n+-------------+---------+---------------+----------------+\r\nVMs total: 2\r\n\r\n& strangely, \"bosh cloudcheck bosh2\" returns \"No problems found\"  (bosh2 is the name of my instance)\r\n\r\n\r\nAny idea about the cause of this pb ? (See below traces observed & manifest used)\r\nThx beforehand.\r\n\r\n1) HERE IS THE OUTPUT OF THE DEPLOY\r\n==================================\r\nroot@ubuntu1404:~/my-bosh-deployment# bosh deployment bosh.yml\r\nDeployment set to `/root/my-bosh-deployment/bosh.yml'\r\nroot@ubuntu1404:~/my-bosh-deployment# bosh deploy\r\n\r\nProcessing deployment manifest\r\n------------------------------\r\nGetting deployment properties from director...\r\nUnable to get properties list from director, trying without it...\r\nCompiling deployment manifest...\r\nCannot get current deployment information from director, possibly a new deployment\r\nPlease review all changes carefully\r\n\r\nDeploying\r\n---------\r\nDeployment name: `bosh.yml'\r\nDirector name: `microbosh'\r\nAre you sure you want to deploy? (type 'yes' to continue): yes\r\n\r\nDirector task 25\r\nDeprecation: Please use `templates' when specifying multiple templates for a job. `template' for multiple templates will soon be unsupported.\r\n\r\nDeprecation: Please use `templates' when specifying multiple templates for a job. `template' for multiple templates will soon be unsupported.\r\n\r\n  Started preparing deployment\r\n  Started preparing deployment > Binding deployment. Done (00:00:00)\r\n  Started preparing deployment > Binding releases. Done (00:00:00)\r\n  Started preparing deployment > Binding existing deployment. Done (00:00:00)\r\n  Started preparing deployment > Binding resource pools. Done (00:00:00)\r\n  Started preparing deployment > Binding stemcells. Done (00:00:00)\r\n  Started preparing deployment > Binding templates. Done (00:00:00)\r\n  Started preparing deployment > Binding properties. Done (00:00:00)\r\n  Started preparing deployment > Binding unallocated VMs. Done (00:00:00)\r\n  Started preparing deployment > Binding instance networks. Done (00:00:00)\r\n     Done preparing deployment (00:00:00)\r\n\r\n  Started preparing package compilation > Finding packages to compile. Done (00:00:00)\r\n\r\n  Started preparing dns > Binding DNS. Done (00:00:00)\r\n\r\n  Started creating bound missing vms\r\n  Started creating bound missing vms > default/0\r\n  Started creating bound missing vms > default/1\r\n     Done creating bound missing vms > default/0 (00:00:47)\r\n     Done creating bound missing vms > default/1 (00:00:47)\r\n     Done creating bound missing vms (00:00:47)\r\n\r\n  Started binding instance vms\r\n  Started binding instance vms > bosh_api/0\r\n  Started binding instance vms > bosh_data/0\r\n     Done binding instance vms > bosh_api/0 (00:00:00)\r\n     Done binding instance vms > bosh_data/0 (00:00:00)\r\n     Done binding instance vms (00:00:00)\r\n\r\n  Started preparing configuration > Binding configuration. Failed: Error filling in template `director.yml.erb.erb' for `bosh_api/0' (line 332: undefined method `each' for nil:NilClass) (00:00:00)\r\n\r\nError 100: Error filling in template `director.yml.erb.erb' for `bosh_api/0' (line 332: undefined method `each' for nil:NilClass)\r\n\r\nTask 25 error\r\n\r\nFor a more detailed error report, run: bosh task 25 --debug\r\n\r\n2) HERE IS THE BEGINNING OF THE DEBUG FILE (that includes the manifest)\r\n==============================================================\r\nDirector task 25\r\nI, [2015-02-07T18:24:54.493001 #1233] [0x3f9ce1dbd324]  INFO -- TaskHelper: Director Version: 1.2830.0\r\nI, [2015-02-07T18:24:54.493073 #1233] [0x3f9ce1dbd324]  INFO -- TaskHelper: Enqueuing task: 25\r\nI, [2015-02-07 18:24:54 #5516] []  INFO -- DirectorJobRunner: Looking for task with task id 25\r\nD, [2015-02-07 18:24:54 #5516] [] DEBUG -- DirectorJobRunner: (0.000591s) SELECT * FROM \"tasks\" WHERE \"id\" = 25\r\nI, [2015-02-07 18:24:54 #5516] []  INFO -- DirectorJobRunner: Starting task: 25\r\nI, [2015-02-07 18:24:54 #5516] [task:25]  INFO -- DirectorJobRunner: Creating job\r\nI, [2015-02-07 18:24:54 #5516] [task:25]  INFO -- DirectorJobRunner: Reading deployment manifest\r\nD, [2015-02-07 18:24:54 #5516] [task:25] DEBUG -- DirectorJobRunner: Manifest:\r\n---\r\nname: bosh2\r\nlogging:\r\n  -level: DEBUG\r\ndirector_uuid: 35b5ea35-213b-4494-8fb7-c1c191178824\r\nrelease:\r\n  name: bosh\r\n  version: 139\r\nnetworks:\r\n- name: default\r\n  type: manual\r\n  subnets:\r\n  - range: 10.105.144.224/28\r\n    gateway: 10.105.144.225\r\n    static:\r\n    - 10.105.144.237\r\n    - 10.105.144.238\r\n    reserved:\r\n    - 10.105.144.235 - 10.105.144.236\r\n    dns:\r\n    - 10.0.80.11\r\n    - 10.0.80.12\r\n    cloud_properties:\r\n      name: Private Network - vmnic0 vmnic2\r\nresource_pools:\r\n- name: default\r\n  stemcell:\r\n    name: bosh-vsphere-esxi-ubuntu-trusty-go_agent\r\n    version: 2830\r\n  network: default\r\n  size: 5\r\n  cloud_properties:\r\n    cpu: 2\r\n    ram: 512\r\n    disk: 2000\r\ncompilation:\r\n  reuse_compilation_vms: true\r\n  workers: 3\r\n  network: default\r\n  cloud_properties:\r\n    ram: 512\r\n    disk: 6000\r\n    cpu: 2\r\nupdate:\r\n  canaries: 1\r\n  canary_watch_time: 30000-90000\r\n  update_watch_time: 30000-90000\r\n  max_in_flight: 1\r\njobs:\r\n- name: bosh_data\r\n  template:\r\n  - blobstore\r\n  - postgres\r\n  - redis\r\n  instances: 1\r\n  resource_pool: default\r\n  persistent_disk: 8000\r\n  networks:\r\n  - name: default\r\n    static_ips:\r\n    - 10.105.144.238\r\n- name: bosh_api\r\n  template:\r\n  - nats\r\n  - director\r\n  - health_monitor\r\n  - powerdns\r\n  instances: 1\r\n  resource_pool: default\r\n  networks:\r\n  - name: default\r\n    static_ips:\r\n    - 10.105.144.237\r\nproperties:\r\n  ntp:\r\n  - servertime.service.softlayer.com\r\n  nats:\r\n    user: nats\r\n    password: nats-password\r\n    address: 10.105.144.237\r\n    port: 4222\r\n  blobstore:\r\n    address: 10.105.144.238\r\n    port: 25251\r\n    backend_port: 25552\r\n    agent:\r\n      user: agent\r\n      password: agent\r\n    director:\r\n      user: director\r\n      password: director\r\n  postgres: &17533100\r\n    user: bosh\r\n    password: bosh\r\n    host: 10.105.144.238\r\n    port: 5432\r\n    database: bosh\r\n  redis:\r\n    password: redis\r\n    address: 10.105.144.238\r\n    port: 25255\r\n  director:\r\n    name: bosh2\r\n    address: 10.105.144.237\r\n    port: 25555\r\n    encryption: false\r\n    enable_snapshots: false\r\n    max_tasks: 100\r\n    db: *17533100\r\n  hm:\r\n    http:\r\n      port: 25923\r\n      user: admin\r\n      password: admin\r\n    director_account:\r\n      user: admin\r\n      password: admin\r\n    intervals:\r\n      poll_director: 60\r\n      poll_grace_period: 30\r\n      log_stats: 300\r\n      analyze_agents: 60\r\n      agent_timeout: 180\r\n      rogue_agent_alert: 180\r\n    loglevel: info\r\n    email_notifications: false\r\n    tsdb_enabled: false\r\n    cloud_watch_enabled: false\r\n    resurrector_enabled: true\r\n  dns:\r\n    address: 10.105.144.237\r\n    recursor: 10.0.80.11\r\n    db: *17533100\r\n  vcenter:\r\n    address: 10.105.220.39\r\n    user: Administrator\r\n    password: a5pattes\r\n    datacenters:\r\n    - name: bschmcSL1\r\n      vm_folder: mycfvm\r\n      template_folder: mycftemplate\r\n      disk_path: /cfdir\r\n      datastore_pattern: datastore1\r\n      persistent_datastore_pattern: datastore1\r\n      allow_mixed_datastores: true\r\n      clusters:\r\n      - cfcluster: \r\n\r\nI, [2015-02-07 18:24:54 #5516] [task:25]  INFO -- DirectorJobRunner: Creating deployment plan\r\nI, [2015-02-07 18:24:54 #5516] [task:25]  INFO -- DirectorJobRunner: Deployment plan options: {}\r\n\r\n3) HERE IS THE END OF THE DEBUG FILE (that includes the error traces)\r\n===========================================================\r\nI, [2015-02-07 18:25:43 #5516] [task:25]  INFO -- DirectorJobRunner: Binding configuration\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Downloading template `blobstore' (5813adb9-be71-4dd6-a28b-c56d4285b6c3)...\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Template `blobstore' downloaded to /var/vcap/data/tmp/director/template-3d617414-9a8a-403f-bb51-a6aa43b1d2eb (took 0.00196793s)\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Downloading template `postgres' (7c72ca1a-a125-4e34-947b-561ece179849)...\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Template `postgres' downloaded to /var/vcap/data/tmp/director/template-5b86eed9-44fa-4e60-9590-55eb44e4c094 (took 0.001658084s)\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Downloading template `redis' (0970103e-beba-4c09-8d45-7bb8d6f68e42)...\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Template `redis' downloaded to /var/vcap/data/tmp/director/template-87ad6318-893e-4c93-8ad1-508d813e48c3 (took 0.001621872s)\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: (0.000787s) SELECT * FROM \"rendered_templates_archives\" WHERE (\"rendered_templates_archives\".\"instance_id\" = 16) ORDER BY \"created_at\" DESC LIMIT 1\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: (0.000130s) BEGIN\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: (0.000603s) INSERT INTO \"rendered_templates_archives\" (\"blobstore_id\", \"sha1\", \"content_sha1\", \"created_at\", \"instance_id\") VALUES ('ff12cbfa-5a19-412d-9d74-37b7bff4081a', 'c583ac6b01b58bb7254f62b551bf30f393f218ba', '3718c7cee2f33e333b82dd744cc7c152bbc84473', '2015-02-07 18:25:43.754353+0000', 16) RETURNING *\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: (0.000303s) COMMIT\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Downloading template `nats' (13bfe8e2-9dcc-44ab-b7d0-d00f97158702)...\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Template `nats' downloaded to /var/vcap/data/tmp/director/template-9ce5dfb8-c01b-4387-9d95-38bcd4c6782c (took 0.001471583s)\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Downloading template `director' (152ceb9b-df65-4e01-aef2-acd47aee5104)...\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Template `director' downloaded to /var/vcap/data/tmp/director/template-cc5c0bca-6f93-467d-a76c-f70efa82dea7 (took 0.001783735s)\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Downloading template `health_monitor' (0ffaf10b-bbd3-4df7-9697-e7c319a06494)...\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Template `health_monitor' downloaded to /var/vcap/data/tmp/director/template-1e0013fc-88fa-4d55-8680-1385f7095640 (took 0.001549402s)\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Downloading template `powerdns' (4207cae4-42e1-4029-ab65-4cf0c95ab54d)...\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Template `powerdns' downloaded to /var/vcap/data/tmp/director/template-30d0e869-0f7e-4ee5-bbcc-402a7d8c65b6 (took 0.001550487s)\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: #<NoMethodError: undefined method `each' for nil:NilClass>\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Error filling in template `director.yml.erb.erb' for `bosh_api/0' (line 332: undefined method `each' for nil:NilClass)\r\ndirector/director.yml.erb.erb:332:in `block (4 levels) in get_binding'\r\ndirector/director.yml.erb.erb:330:in `each'\r\ndirector/director.yml.erb.erb:330:in `block (3 levels) in get_binding'\r\ndirector/director.yml.erb.erb:327:in `each'\r\ndirector/director.yml.erb.erb:327:in `block (2 levels) in get_binding'\r\ndirector/director.yml.erb.erb:318:in `each'\r\ndirector/director.yml.erb.erb:318:in `block in get_binding'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-template-1.2830.0/lib/bosh/template/evaluation_context.rb:101:in `if_p'\r\ndirector/director.yml.erb.erb:308:in `get_binding'\r\n/var/vcap/packages/ruby/lib/ruby/2.1.0/erb.rb:850:in `eval'\r\n/var/vcap/packages/ruby/lib/ruby/2.1.0/erb.rb:850:in `result'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/source_erb.rb:17:in `render'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/job_template_renderer.rb:25:in `block in render'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/job_template_renderer.rb:24:in `map'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/job_template_renderer.rb:24:in `render'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/job_instance_renderer.rb:14:in `block in render'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/job_instance_renderer.rb:12:in `map'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/job_instance_renderer.rb:12:in `render'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/job_renderer.rb:20:in `render_job_instance'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/job_renderer.rb:16:in `block in render_job_instances'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/job_renderer.rb:16:in `each'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/job_renderer.rb:16:in `render_job_instances'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/deployment_plan/assembler.rb:324:in `block in bind_configuration'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/deployment_plan/assembler.rb:323:in `each'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/deployment_plan/assembler.rb:323:in `bind_configuration'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/deployment_plan/updater.rb:35:in `block in update'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/jobs/base_job.rb:48:in `block in track_and_log'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/event_log.rb:97:in `call'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/event_log.rb:97:in `advance_and_track'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/event_log.rb:50:in `track'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/jobs/base_job.rb:46:in `track_and_log'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/deployment_plan/updater.rb:34:in `update'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/jobs/update_deployment.rb:60:in `update'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/jobs/update_deployment.rb:87:in `block in perform'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/lock_helper.rb:21:in `block in with_deployment_lock'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/lock.rb:58:in `lock'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/lock_helper.rb:21:in `with_deployment_lock'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/jobs/update_deployment.rb:79:in `perform'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/job_runner.rb:108:in `perform_job'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/job_runner.rb:31:in `block in run'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh_common-1.2830.0/lib/common/thread_formatter.rb:49:in `with_thread_name'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/job_runner.rb:31:in `run'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/jobs/base_job.rb:10:in `perform'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/resque-1.25.2/lib/resque/job.rb:227:in `perform'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/resque-1.25.2/lib/resque/worker.rb:250:in `perform'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/resque-1.25.2/lib/resque/worker.rb:189:in `block in work'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/resque-1.25.2/lib/resque/worker.rb:166:in `loop'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/resque-1.25.2/lib/resque/worker.rb:166:in `work'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/bin/bosh-director-worker:83:in `<top (required)>'\r\n/var/vcap/packages/director/bin/bosh-director-worker:16:in `load'\r\n/var/vcap/packages/director/bin/bosh-director-worker:16:in `<main>'\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: (0.000884s) SELECT \"stemcells\".* FROM \"stemcells\" INNER JOIN \"deployments_stemcells\" ON ((\"deployments_stemcells\".\"stemcell_id\" = \"stemcells\".\"id\") AND (\"deployments_stemcells\".\"deployment_id\" = 6))\r\nD, [2015-02-07 18:25:43 #5516] [] DEBUG -- DirectorJobRunner: Lock renewal thread exiting\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Deleting lock: lock:deployment:bosh2\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: Deleted lock: lock:deployment:bosh2\r\nI, [2015-02-07 18:25:43 #5516] [task:25]  INFO -- DirectorJobRunner: sending update deployment error event\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: SENT: hm.director.alert {\"id\":\"7d4e345b-c4e2-45d3-9b92-5ad58f5c98ff\",\"severity\":3,\"title\":\"director - error during update deployment\",\"summary\":\"Error during update deployment for bosh2 against Director 35b5ea35-213b-4494-8fb7-c1c191178824: #<RuntimeError: Error filling in template `director.yml.erb.erb' for `bosh_api/0' (line 332: undefined method `each' for nil:NilClass)>\",\"created_at\":1423333543}\r\nE, [2015-02-07 18:25:43 #5516] [task:25] ERROR -- DirectorJobRunner: Error filling in template `director.yml.erb.erb' for `bosh_api/0' (line 332: undefined method `each' for nil:NilClass)\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/source_erb.rb:32:in `rescue in render'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/source_erb.rb:17:in `render'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/job_template_renderer.rb:25:in `block in render'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/job_template_renderer.rb:24:in `map'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/job_template_renderer.rb:24:in `render'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/job_instance_renderer.rb:14:in `block in render'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/job_instance_renderer.rb:12:in `map'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/job_instance_renderer.rb:12:in `render'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/job_renderer.rb:20:in `render_job_instance'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/job_renderer.rb:16:in `block in render_job_instances'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/job_renderer.rb:16:in `each'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/job_renderer.rb:16:in `render_job_instances'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/deployment_plan/assembler.rb:324:in `block in bind_configuration'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/deployment_plan/assembler.rb:323:in `each'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/deployment_plan/assembler.rb:323:in `bind_configuration'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/deployment_plan/updater.rb:35:in `block in update'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/jobs/base_job.rb:48:in `block in track_and_log'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/event_log.rb:97:in `call'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/event_log.rb:97:in `advance_and_track'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/event_log.rb:50:in `track'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/jobs/base_job.rb:46:in `track_and_log'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/deployment_plan/updater.rb:34:in `update'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/jobs/update_deployment.rb:60:in `update'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/jobs/update_deployment.rb:87:in `block in perform'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/lock_helper.rb:21:in `block in with_deployment_lock'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/lock.rb:58:in `lock'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/lock_helper.rb:21:in `with_deployment_lock'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/jobs/update_deployment.rb:79:in `perform'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/job_runner.rb:108:in `perform_job'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/job_runner.rb:31:in `block in run'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh_common-1.2830.0/lib/common/thread_formatter.rb:49:in `with_thread_name'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/job_runner.rb:31:in `run'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/lib/bosh/director/jobs/base_job.rb:10:in `perform'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/resque-1.25.2/lib/resque/job.rb:227:in `perform'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/resque-1.25.2/lib/resque/worker.rb:250:in `perform'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/resque-1.25.2/lib/resque/worker.rb:189:in `block in work'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/resque-1.25.2/lib/resque/worker.rb:166:in `loop'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/resque-1.25.2/lib/resque/worker.rb:166:in `work'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.2830.0/bin/bosh-director-worker:83:in `<top (required)>'\r\n/var/vcap/packages/director/bin/bosh-director-worker:16:in `load'\r\n/var/vcap/packages/director/bin/bosh-director-worker:16:in `<main>'\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: (0.000089s) BEGIN\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: (0.000371s) UPDATE \"tasks\" SET \"state\" = 'error', \"timestamp\" = '2015-02-07 18:25:43.890471+0000', \"description\" = 'create deployment', \"result\" = 'Error filling in template `director.yml.erb.erb'' for `bosh_api/0'' (line 332: undefined method `each'' for nil:NilClass)', \"output\" = '/var/vcap/store/director/tasks/25', \"checkpoint_time\" = '2015-02-07 18:25:26.456490+0000', \"type\" = 'update_deployment', \"username\" = 'admin' WHERE (\"id\" = 25)\r\nD, [2015-02-07 18:25:43 #5516] [task:25] DEBUG -- DirectorJobRunner: (0.000351s) COMMIT\r\nI, [2015-02-07 18:25:43 #5516] []  INFO -- DirectorJobRunner: Task took 49.178562133 seconds to process.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/bosh/issues/comments/73500947","html_url":"https://github.com/cloudfoundry/bosh/issues/750#issuecomment-73500947","issue_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/750","id":73500947,"user":{"login":"fckbo","id":10832015,"avatar_url":"https://avatars.githubusercontent.com/u/10832015?v=3","gravatar_id":"","url":"https://api.github.com/users/fckbo","html_url":"https://github.com/fckbo","followers_url":"https://api.github.com/users/fckbo/followers","following_url":"https://api.github.com/users/fckbo/following{/other_user}","gists_url":"https://api.github.com/users/fckbo/gists{/gist_id}","starred_url":"https://api.github.com/users/fckbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fckbo/subscriptions","organizations_url":"https://api.github.com/users/fckbo/orgs","repos_url":"https://api.github.com/users/fckbo/repos","events_url":"https://api.github.com/users/fckbo/events{/privacy}","received_events_url":"https://api.github.com/users/fckbo/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T12:30:31Z","updated_at":"2015-02-09T12:30:31Z","body":"Karl,\r\n\r\nthx a lot that was it!!  Apparently I need to specify a resource pool under the cluster name.\r\n\r\nWhat bugs me a bit is that:\r\n1) As I said this manifest is working properly with release 912 (but ok things change ...)\r\n2) but reading the documentation here http://docs.cloudfoundry.org/bosh/vsphere-cpi.html#resource-pools,  it says resource pool is optional: \r\n\r\n\" clusters [Array, required]: Array of clusters to use for VM placement.\r\n    <cluster name> [String, required]: Cluster name.\r\n        resource_pool [String, optional]: Specific vSphere resource pool to use within the cluster.\"\r\n\r\nI actually put the following\r\n        clusters:\r\n        - cfcluster:\r\n            resource_pool: mycf\r\n\r\nwithout creating the resource_pool \"mycf\" on  vcenter and it worked: Install succeeded, still need to check now that I can deploy new stuff (in fact a CF) on it.\r\n\r\nI've got the following questions:\r\n1) any insights on how bosh uses resource_pool parameter ?\r\n\r\n2) before posting this issue I had done a couple of tries to patch the bosh ruby code with additional logs/traces on the vm running the MicroBosh that is used to deploy my BOSH instance but it did take into account my changes. For example I made some changes in the following file\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-core-1.2830.0/lib/bosh/director/core/templates/source_erb.rb but none of my new traces were taken in account. I guess it's because some  compilation is taking place to generate the director on the microbosh server when its installation took place so is there anyway to re-generate on the microbosh server itself a module ?\r\n\r\nThank again for your help. \r\n"}}