-
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
Unpredictable disk type creation when cloning VM from the template with thin disk type #2178
Comments
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 @micropbl4 don't worry I'll try to fix this |
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
terraform deploy
without any changesEnvironment Details
No response
Screenshots
No response
References
No response
The text was updated successfully, but these errors were encountered: