Closed hmalinov closed 5 years ago
This also happens on v1.1.1
First of all thank you for the awesome work guys.
Regarding the bug, it is pretty nasty one, which makes Terraform unusable in a mixed environment with 5.5 and 6.0 version of vsphere. Every time I want to do something results in >20 virtual machines restarted.
Is there a possible workaround ? Do you have an estimate when can it be solve?
Thank you once again.
My workaround :
lifecycle {
ignore_changes = ["disk.0.disk_sharing", "disk.1.disk_sharing", "disk.2.disk_sharing"]
}
I hardcoded the list due to unsupported index wildcard :
* vsphere_virtual_machine.vm: ignore_changes does not support using a partial string together with a wildcard: disk.*.disk_sharing
ignore_changes = ["disk"]
is too much generic, I don't want to ignore others properties..
Seems like same use case as https://github.com/hashicorp/terraform/issues/5666
@jnahelou Thank you, it is working perfectly .
This should be resolved now that disk sharing is supported. Please reopen the issue if you're still experiencing this.
Terraform Version
Terraform v0.11.1
vSphere Provider Version
provider.vsphere ~> 1.1.0
Affected Resource(s)
Please list the resources as a list, for example:
vsphere_virtual_machine
Terraform Configuration Files
Expected Behavior
Should have changed the disk.0.disk_sharing
Actual Behavior
Again wants to change the disk.0.disk_sharing on next ./terraform plan
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform apply
Important Factoids
Seems that it does not work on ESXi hosts with verison 5.5. It works fin on ESXi hosts 6.0 .
Apparently disk sharing is available since 6.0 - http://pubs.vmware.com/vsphere-6-5/index.jsp#com.vmware.wssdk.smssdk.doc/vim.vm.device.VirtualDisk.Sharing.html
References
GH-265