Skip to content
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

undefined method `[]' for nil:NilClass in close_vsphere action #5564

Closed
jreslock opened this issue Apr 7, 2015 · 4 comments
Closed

undefined method `[]' for nil:NilClass in close_vsphere action #5564

jreslock opened this issue Apr 7, 2015 · 4 comments

Comments

@jreslock
Copy link

jreslock commented Apr 7, 2015

I have encountered an issue that appears to be intermittent in nature with vagrant up --provider=vsphere and multi-machine configuration.

Here are some details plus a link to a gist for files.

vagrant version 1.7.2
vagrant-vsphere version 1.0.1
vsphere version 5.5.0
guest OS is CentOS 6.4.

Just after 'Setting hostname...' is posted to stdout I receive an error which stops the rest of the vagrant machines from being started.

ERROR:

INFO interface: Machine: error-exit ["VagrantPlugins::VSphere::Errors::VSphereError", "undefined method `[]' for nil:NilClass"]

Gist: https://gist.github.com/jreslock/a3b1ba8e3f9cc6c1af3b

I cross posted this because I don't know if it is a plugin issue or a core vagrant issue. What else can I do to debug this further?

@jreslock
Copy link
Author

I was able to resolve/work around this error by reverting from vagrant 1.7.2 to vagrant 1.6.4.

@dmulter
Copy link

dmulter commented May 6, 2015

I'm running vagrant 1.6.5 and I have the same issue. Please fix.

@sethvargo
Copy link
Contributor

Hi @jreslock

Thank you for opening an issue. According to the debug log, this is an issue with the vagrant-vsphere plugin:

ERROR vagrant: #<VagrantPlugins::VSphere::Errors::VSphereError: undefined method `[]' for nil:NilClass>

I believe this is an issue with the vagrant-vsphere plugin 😄. Please open an issue on that repository.

@icnocop
Copy link

icnocop commented Oct 23, 2015

For reference, the new issue has been reported in the vagrant-vsphere repository here.

@hashicorp hashicorp locked and limited conversation to collaborators Apr 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants