You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
Do not leave "+1" or other comments that do not add relevant information or questions.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Terraform
Terraform v1.4.2
Terraform Provider
v2.0.2
VMware vSphere
8.0.2.00200
Description
The dynamic disk0 is wrongly created as thin despite stating eagerly_scrub: true, thin_provisioned: false. This fails consecutive runs.
Persistent / attached dynamic disk1 shows a wrong eagerly_scrub: false, thin_provisioned: true but is created correctly as eagerZeroedThick
The template was created with packer with a thin disk.
Creating the VM manually "Deploy from Template -> VM Templates" and setting "Select virtual disk format" to i.e. "Thick Provision Eager Zeroed" properly creates the disk.
If the whole template is needed, please let me know.
disk0: eagerly_scrub = false and thin_provisioned = false -> thick
disk1: eagerly_scrub = false and thin_provisioned = true -> thick (would be thin)
eagerZeroedThick provision:
disk0: eagerly_scrub = true and thin_provisioned = false -> thick
disk1: eagerly_scrub = false and thin_provisioned = true -> eagerZeroedThick (would be thin)
Consecutive run wants to change eagerly_scrub = false -> true
│ Error: disk.0: cannot change the value of "eagerly_scrub" - (old: false newValue: true)
│
│ with vsphere_virtual_machine.vms[0],
│ on resources.tf line 58, in resource "vsphere_virtual_machine" "vms":
│ 58: resource "vsphere_virtual_machine" "vms" {
At least I can still destroy the resource without an error but consecutive will fail because the state does not match the disks.
Community Guidelines
Terraform
Terraform v1.4.2
Terraform Provider
v2.0.2
VMware vSphere
8.0.2.00200
Description
The dynamic disk0 is wrongly created as
thin
despite statingeagerly_scrub: true, thin_provisioned: false
. This fails consecutive runs.Persistent / attached dynamic disk1 shows a wrong
eagerly_scrub: false, thin_provisioned: true
but is created correctly aseagerZeroedThick
The template was created with packer with a thin disk.
Creating the VM manually "Deploy from Template -> VM Templates" and setting "Select virtual disk format" to i.e. "Thick Provision Eager Zeroed" properly creates the disk.
If the whole template is needed, please let me know.
Affected Resources or Data Sources
resource/vsphere_virtual_disk
resource/vsphere_virtual_machine
Terraform Configuration
Debug Output
https://gist.github.com/thesefer/609fcb7334031c7d9d60699b5c1cf2c8
Panic Output
No response
Expected Behavior
disk0 correctly created as
lazy
,thin
oreagerZeroedThick
Actual Behavior
disk0 created as thin (displayed as eager in plan/apply)
disk1 created as eager (displayed as thin in plan/apply)
Steps to Reproduce
Environment Details
No response
Screenshots
No response
References
No response
The text was updated successfully, but these errors were encountered: