terraform-provider-vsphere
terraform-provider-vsphere copied to clipboard
Disk addition denied by terraform
Community Guidelines
- [X] I have read and agree to the HashiCorp Community Guidelines .
- [X] Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
- [X] Do not leave "+1" or other comments that do not add relevant information or questions.
- [X] If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Terraform
~> 1.1.2
Terraform Provider
~> 1.1.2
VMware vSphere
~> 2.1.1
Description
Error: disk.0: virtual disk "disk0": cannot change the value of "thin_provisioned" - (old: true newValue: false)
Affected Resources or Data Sources
resource "vsphere_virtual_machine"
Terraform Configuration
module "madley-SOTA" { source = "git::https://" site = "prod-x-app" hosts = { ** } component_name = "" additional_disk_size = [**] netmask = [] gateway = "" vlan = ["*"] use_cluster_datastore = true }
Debug Output
User Error: disk.0: virtual disk "disk0": cannot change the value of "thin_provisioned" - (old: true newValue: false)
with module.-.module.-server.vsphere_virtual_machine.vm[""], on .terraform/modules/-.*-server/main.tf line 64, in resource "vsphere_virtual_machine" "vm": 64: resource "vsphere_virtual_machine" "vm" {
Panic Output
No response
Expected Behavior
Disk should be added
Actual Behavior
Denied
Steps to Reproduce
Added Disk to the tf
Environment Details
No response
Screenshots
No response
References
https://github.com/hashicorp/terraform-provider-vsphere/issues/754#issue-437935303
Hello, daya8143! 🖐
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.
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.