vsphere_virtual_disk created on v2.6.1 errors when running terraform plan with v2.7.0 #2162
Closed
4 tasks done
Labels
Milestone
Community Guidelines
Terraform
v1.6.6
Terraform Provider
v2.7.0
VMware vSphere
v7.0.3.01700
Description
Upgrading to terraform-provider-vsphere v2.7.0 introduced a breaking bug for vsphere_virtual_disks created with older versions.
This happens as the vmdk_path variable is now correctly set after this fix: #1762
I tried changing the vmdk_path to match the actual old value from vsphere but it doesn't work, and it shouldn't work if I understand the code change correctly. What would be the proper steps to be able to upgrade to latest provider version?
Affected Resources or Data Sources
resource/vsphere_virtual_disk
Terraform Configuration
Debug Output
Planning failed. Terraform encountered an error while generating this plan.
│ Error: Failed to query disk type
│
│ with module.example-data.vsphere_virtual_disk.main,
│ on ../../modules/disk/main.tf line 5, in resource "vsphere_virtual_disk" "main":
│ 5: resource "vsphere_virtual_disk" "main" {
│
Panic Output
No response
Expected Behavior
Plan after update to provider v2.7.0 passes with either no changes or possible change to the vsphere_virtual_disk configuration
Actual Behavior
Plan after update to provider v2.7.0 errors out
Steps to Reproduce
Environment Details
No response
Screenshots
No response
References
No response
The text was updated successfully, but these errors were encountered: