cloudfoundry-attic / bosh-init

bosh-init is a tool used to create and update the Director VM
Apache License 2.0
31 stars 33 forks source link

Error filling in template 'director.yml.erb.erb' (line 518: Could not find cloud plugin) #126

Closed gln-gln closed 6 years ago

gln-gln commented 6 years ago

Hi ,

I am trying to deploy CF on Openstack. I have the following in microbosh.yml

---
name: microbosh
logging:
  level: DEBUG
network:
  type: dynamic
  vip: myfloatingip
  cloud_properties:
    net_id: 3a374103-4b4a-49aa-b2e7-d113c39c3
resources:
  persistent_disk: 16384
  cloud_properties:
    instance_type: m1.large
cloud:
  plugin: openstack
  properties:
   openstack:
      auth_url: https://keystoneIp:5000/v2.0
      tenant: myproject
      username: myusername
      api_key: mypassword
      default_key_name: my-keypair-name
      private_key: /path/to/my-keypair.pem
      default_security_groups: [bosh,CF]
      proxy_uri: http://proxyip:port
apply_spec:
  properties:
     director: {max_threads: 3}
     hm: {resurrector_enabled: true}
     ntp: [x.x.x.x]

When I execute

bosh micro deploy bosh-stemcell-3263.14-openstack-kvm-ubuntu-trusty-go_agent.tgz

I get the following error

 /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/bosh-director-core-1.3262.24.0/lib/bosh/director/core/templates/job_instance_renderer.rb:31:in `render': Unable to render jobs for instance group 'micro_openstack'. Errors are: (RuntimeError)
   - Unable to render templates for job 'director'. Errors are:
     - Error filling in template 'director.yml.erb.erb' (line 518: Could not find cloud plugin)
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/bosh_cli_plugin_micro-1.3262.24.0/lib/bosh/deployer/microbosh_job_instance.rb:37:in `render_templates'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/bosh_cli_plugin_micro-`  

detailed log : https://gist.github.com/gowriln/78c62e86082360ea93acd532770389c9

Can anyone help me with this ?

dpb587-pivotal commented 6 years ago

Hi - I'm not sure what steps you're following, but using microbosh to deploy is no longer supported. You're also using a fairly old director and stemcell version. If there are OSS-managed docs that you're following, please feel free to mention them so we can ensure they're updated.

I'd recommend you take a look at the updated instructions on bosh.io and give that a try. There are some helpful snippets on that page which will be very helpful to you for deploying a recent version of the director.

If you run into trouble, please feel free to follow up with a new issue in cloudfoundry/bosh.

gln-gln commented 6 years ago

Hi ,

Thanks for the information . I will try the updated instructions as you suggested