Closed micropbl4 closed 6 months ago
Hello, micropbl4! 🖐
Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle.
If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests.
Looks like a duplicate of #2116
There are other duplicates out there too https://github.com/hashicorp/terraform-provider-vsphere/issues/2140
@micropbl4 don't worry I'll try to fix this Let's move the conversation to #2116
Duplicate of #2116
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Guidelines
Terraform
1.6.0
Terraform Provider
2.5.1
VMware vSphere
8.0.2
Description
When attempting to create a disk with the "Thick Provision Lazy Zeroed" type, Terraform randomly creates another type. Upon rerunning the same code, I receive the following output:
Error: disk.0: cannot change the value of "thin_provisioned" - (old: true newValue: false)
This occurs within the module.provision_base_vms["hostname"].module.server.vsphere_virtual_machine.server resource in the .terraform/modules/provision_base_vms/server/server.tf file, at line 20, within the resource "vsphere_virtual_machine" "server" block.
In my case 1 of 3 VM was affected.
Affected Resources or Data Sources
"resource/vsphere_virtual_machine"
Terraform Configuration
server.tf
variables.tf
Debug Output
terraform plan
1st attempt:2nd attempt:
Panic Output
No response
Expected Behavior
When attempting to create a disk with the "Thick Provision Lazy Zeroed" type, Terraform inconsistently selects a different type. Upon rerunning the same code, there should be no changes in the output. However, the error message indicates that there is an attempt to change the "thin_provisioned" value from true to false, which should not occur.
Actual Behavior
Provider change infrastructure without actual changes on the code side
Steps to Reproduce
1) Create a few VMs with the following options:
2) Execute
terraform deploy
without any changesEnvironment Details
No response
Screenshots
No response
References
No response