-
Notifications
You must be signed in to change notification settings - Fork 455
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
VM deployment from OVF is failing, Terraform crash, SCSI controller: panic: interface conversion: interface is nil, not types.BaseVirtualDevice #1138
Comments
Thanks for reporting this @sumitAgrawal007. I have a pretty good idea on the cause of the issue, but can you give me an example OVA to deploy from that will reproduce the issue? |
I can confirm that I am seeing the exact same problem as the OP. Terraform version0.13.0 Go runtime versiongo1.14.2 vSphere Provider Versionv1.22.0 Terraform Configuration File
Debug Output
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
vSphere Provider Version
v1.21.0
Affected Resource(s)
virtual_machine
If this issue appears to affect multiple resources, it may be an issue with
Terraform's core, so please mention this.
--->
Terraform Configuration Files
Debug Output
2020-07-19T19:06:01.766+0530 [DEBUG] plugin.terraform-provider-vsphere: 2020/07/19 19:06:01 [DEBUG] ReadSCSIBusType: SCSI controller layout for first 1 controllers:
2020-07-19T19:06:01.768+0530 [DEBUG] plugin.terraform-provider-vsphere: panic: interface conversion: interface is nil, not types.BaseVirtualDevice
2020-07-19T19:05:57.788+0530 [DEBUG] plugin.terraform-provider-vsphere: 2020/07/19 19:05:57 [DEBUG] VM "/Sample_DC_2/vm/vm3" found for UUID "4219ac4e-77e4-612f-2209-decc338576ae"
2020-07-19T19:05:57.788+0530 [DEBUG] plugin.terraform-provider-vsphere: 2020/07/19 19:05:57 [DEBUG] Fetching properties for VM "/Sample_DC_2/vm/vm3"
2020-07-19T19:05:58.593+0530 [DEBUG] plugin.terraform-provider-vsphere: 2020/07/19 19:05:58 [DEBUG] MOID for VM "/Sample_DC_2/vm/vm3" is "vm-81"
2020-07-19T19:05:58.593+0530 [DEBUG] plugin.terraform-provider-vsphere: 2020/07/19 19:05:58 [DEBUG] Locating vApp container with ID resgroup-43
2020-07-19T19:05:58.909+0530 [DEBUG] plugin.terraform-provider-vsphere: 2020/07/19 19:05:58 [DEBUG] Locating datastore with ID "datastore-61"
2020-07-19T19:05:59.318+0530 [DEBUG] plugin.terraform-provider-vsphere: 2020/07/19 19:05:59 [DEBUG] Datastore with ID "datastore-61" found
2020-07-19T19:06:01.356+0530 [DEBUG] plugin.terraform-provider-vsphere: 2020/07/19 19:06:01 [DEBUG] queryAssociatedProfile: Retrieving storage policy of server object of type [virtualMachine] and key [vm-81].
2020-07-19T19:06:01.766+0530 [DEBUG] plugin.terraform-provider-vsphere: 2020/07/19 19:06:01 [DEBUG] ReadSCSIBusType: SCSI controller layout for first 1 controllers:
2020-07-19T19:06:01.768+0530 [DEBUG] plugin.terraform-provider-vsphere: panic: interface conversion: interface is nil, not types.BaseVirtualDevice
Panic Output
https://gist.github.com/sumitAgrawal007/265aab2f227148da5758a8de36904b3b
Expected Behavior
VM should have been deployed successfully from OVA.
Actual Behavior
Terraform crashed
Steps to Reproduce
Important Factoids
This was working in release 1.19, could have been broken after this change
#1118
failing here https://github.com/hashicorp/terraform-provider-vsphere/blob/master/vsphere/internal/virtualdevice/virtual_machine_device_subresource.go#L707
References
#1118
Community Note
The text was updated successfully, but these errors were encountered: