FAQ
I followed the steps about writing yml file in the oss-docs on git-hub.
When at this step:
% bosh micro deploy ~/stemcells/micro-bosh-stemcell-0.1.0.tgz
I got this error:
uploading stemcell:
BOSH CLI error: undefined method 'gsub' for nil: NilClass.
Could any one help?
I've created all the folders for vm and templates and also the dir for
disk_path.
Here is my micro_bosh.yml
--- name: bosh-micro01
network: ip: 192.168.202.135 netmask: 255.255.255.0 gateway: 192.168.202.2
dns: - 192.168.202.2
- 192.168.202.3 cloud_properties: name: VM Network cloud: plugin: vsphere
properties: agent: ntp: - ntp01.las01.emcatmos.com - time.windows.com
vcenters: - host: 192.168.202.130 user: Administrator password:
PASSword123456 datacenters: - name: VMdatacenter vm_folder: vm_folder
template_folder: vm_templates disk_path: bosh_deployer datastore_pattern:
datastore1 persistent_datastore_pattern: datastore1 allow_mixed_datastores:
true clusters: - VMcluster

Here is the error log:
undefined method `gsub' for nil:NilClass
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/client.rb:204:in
`block in find_by_inventory_path'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/client.rb:204:in
`collect'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/client.rb:204:in
`find_by_inventory_path'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/resources.rb:82:in
`setup_folder'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/resources.rb:118:in
`block in fetch_datacenters'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/resources.rb:108:in
`each_value'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/resources.rb:108:in
`fetch_datacenters'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/resources.rb:322:in
`block in datacenters'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
`mon_synchronize'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/resources.rb:320:in
`datacenters'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/resources.rb:331:in
`filter_used_resources'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/resources.rb:422:in
`block in find_resources'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
`mon_synchronize'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/resources.rb:421:in
`find_resources'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/resources.rb:489:in
`get_resources'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/cloud.rb:79:in
`block (2 levels) in create_stemcell'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/tmpdir.rb:83:in
`mktmpdir'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/cloud.rb:66:in
`block in create_stemcell'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_common-0.4.0/lib/common/thread_formatter.rb:46:in
`with_thread_name'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_vsphere_cpi-0.4.8/lib/cloud/vsphere/cloud.rb:64:in
`create_stemcell'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-0.2.4/lib/deployer/instance_manager.rb:206:in
`block (2 levels) in create_stemcell'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-0.2.4/lib/deployer/instance_manager.rb:84:in
`step'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-0.2.4/lib/deployer/instance_manager.rb:205:in
`block in create_stemcell'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/tmpdir.rb:83:in
`mktmpdir'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-0.2.4/lib/deployer/instance_manager.rb:193:in
`create_stemcell'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-0.2.4/lib/deployer/instance_manager.rb:130:in
`create'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-0.2.4/lib/deployer/instance_manager.rb:104:in
`block in create_deployment'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-0.2.4/lib/deployer/instance_manager.rb:97:in
`with_lifecycle'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-0.2.4/lib/deployer/instance_manager.rb:103:in
`create_deployment'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_deployer-0.2.4/lib/bosh/cli/commands/micro.rb:133:in
`perform'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_cli-0.19.4/lib/cli/runner.rb:69:in
`run'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_cli-0.19.4/lib/cli/runner.rb:24:in
`run'
/home/chenwei/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bosh_cli-0.19.4/bin/bosh:16:in
`<top (required)>' /home/chenwei/.rbenv/versions/1.9.2-p290/bin/bosh:23:in
`load' /home/chenwei/.rbenv/versions/1.9.2-p290/bin/bosh:23:in `<main>'

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupbosh-users @
postedJul 20, '12 at 3:40a
activeJul 20, '12 at 3:40a
posts1
users1

1 user in discussion

Lit7tle7: 1 post

People

Translate

site design / logo © 2022 Grokbase