-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoMethodError: undefined method `[]' for nil:NilClass during privisioning #77
Comments
Might have run into something similar today. Can you copy the stacktrace, the filename is in the logs: "[2016-06-15T21:02:14+03:00] FATAL: Stacktrace dumped to /root/chef-repo/.chef/local-mode-cache/cache/chef-stacktrace.out" Or, run chef-client with '-l debug'. That will tell us where the error is coming from. |
@colourmeamused do you have your stacktrace handy? |
I too am having this problem - please find a link to a gist with the stack-trace. I am able to 'allocate' the VM's but they don't start in fact get no further in the process. Any help would be gratefully received ############################################ cmd> chef-client -z -o "provisionvm::vmware_dev,windows_basicwebserver::cluster" -c .chef/knife.rb chef_gem 'chef-provisioning-vsphere' do require 'chef/provisioning/vsphere_driver' with_vsphere_driver host: 'vcentre', with_machine_options bootstrap_options: { machine 'Test-SRV1' do machine 'Test-SRV1' do |
Based on your stacktrace @dan-rose, you are missing |
Thanks, that’s got it! The readme (that I’ve seen here - https://github.com/CenturyLinkCloud/chef-provisioning-vsphere/blob/master/README.md) doesn’t seem to specify what options are “required” for the process continue. I can appreciate that a user account is needed to further provision the machine after it boots, but sometimes we need it spelt out! As a quick aside.. how could you tell I was missing that specific option for the stacktrace??? If it’s too long-winded to explain don’t worry :) Dan |
I hear ya. The readme (and API) could really use some work. The line in the stacktrace is:
so a Also thats a horrible error and if it was easier for me to get releases out for this repo I'd add proper validation. |
Thank you again - .. I am still new to Chef and Ruby.. I have gone back to look at the trace, and then looked in this location - vsphere_driver/driver.rb:434: - and can now see the line you mentioned. I doubt i would have known the answer even now i know where how to start looking :) Thanks for taking the time to assist me. |
Hello
recently i've tried to use chef-provisioning-vsphere module to clone VM's but it failed with following issue:
i've started to provision VM with following parameters:
Had someone seen that before ?
The text was updated successfully, but these errors were encountered: