-
Notifications
You must be signed in to change notification settings - Fork 454
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
unexpected EOF when running example template #411
Comments
I also tried with the end-to-end example below, and it failed with the same error. |
I tried with the code from head and it failed with the same error as well. |
Hey @rsdcastro, can you look at #409 and tell me if a similar scenario may apply to you? Specifically, do you happen to be running an expired vCenter, an unlicensed host that has an expired evaluation, or a free edition of ESXi? Let me know! |
@vancluever Chris - our license is valid, but it's for VMware Essentials. Is that the reason it's crashing? Would you be able to advise on which license we might need? |
govc works, using same URL, name and password.
|
Hey @rsdcastro, thanks for working with me on the VMware slack today. Just wanted to follow up and put this in an issue that the code seems to be failing around a similar point as #409 (example: here) which indicates a lack of an What I wanted you to try is to run the following against the appropriate
This will dump the property from the MO directly. This will confirm that not only is it there but govc can read it, meaning that there is something going on in the code that we may need to account for. Thanks! |
So just as an update - after working with @rsdcastro on this one it appears that the I think what we will need to do is guard against this by doing a nil check on this property before attempting to load the environment browser from the cluster/host in question. The error message will be indicative of possible nature of the errors (licensing, and lack of permissions or hosts). In the meantime, anyone else hitting this issue should check that this scenario or the scenario mentioned in #409 doesn't apply to them. Thanks! |
I can confirm that moving host to cluster gets me past this issue. |
The virtual machine resource relies on the cluster or standalone host it's deployed on for information regarding a default hardware set or guest OS family information. This is obtained via the EnvironmentBrowser MO referenced by the respective cluster or host's ComputeResource MO. There are certain situations where this attribute will be missing, two of which have been identified so far via bug reports: * A cluster without hosts will not contain an environment browser. * vSphere licensing issues may cause a missing environment browser (#409 reported an expired vCenter). This update wraps our fetching of the environment browser by the two current compute resource helpers that utilize it in a helper that validates that we actually have an environment browser before proceeding to load it up, issuing an error alluding to the above if it is missing. Fixes #411. May also correct #409.
Thank you for the fix and all the help, Chris. Much appreciated. |
Terraform Version
Terraform v0.11.3
vSphere Provider Version
$ terraform providers
.
└── provider.vsphere
Affected Resource(s)
vsphere_virtual_machine
Terraform Configuration Files
Based on template from https://www.terraform.io/docs/providers/vsphere/index.html
Crash Output
Expected Behavior
Crashed
Actual Behavior
I would have expected the VM creation or some better error message.
Steps to Reproduce
terraform apply .
The text was updated successfully, but these errors were encountered: