-
Notifications
You must be signed in to change notification settings - Fork 452
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
ept_rvi_mode
and hv_mode
always attemp to update on apply
#1902
Comments
Hello, ebruurs! 🖐 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. |
Seeing the same behaviour; ESXi & vCenter 8.0.1, Terraform v1.4.6, vSphere provider v2.4.0. |
Both default to automatic. One option may be to set these to computed like was done for annotation recently but they would still use the validation. cc @appilon
terraform-provider-vsphere/vsphere/virtual_machine_config_structure.go Lines 127 to 140 in 29a4c6c
|
Same issue encountered today with latest provider and latest Vmware vCenter 8.0.1. |
same issue for us with latest provider and vcenter 8 |
Same here. We have reproduced this on vCenter 8 and esxi 8. If vCenter 8 with esxi 7 works fine. |
Any update on this? I am running into same issue with latest provider. |
Can confirm also hit the issues on vCenter 8U1a and ESXi 8U1a (VCF5) |
Can confirm this on hosts using ESXi and vCenter 8.0.2, ESXi 6.7 do not have the unintended side effects. |
Still an issue, even after manually defining the fields. Latest version of the provider. |
same issue for us with latest provider and vcenter 8 |
We face the same problem: |
im hitting this too |
We hit same issue with: |
same issue |
Same issue lifecycle { to the resource |
@stoyan-hristov - can you look into this one as well? |
@tenthirtyam We can't make them computed and keep the default value at the same time. Terraform does not permit this combination. Just removing the defaults solves the problem. |
Reverted in 2.8.1. Reopening. |
Going to reintroduce the fix as a breaking change in the next major release |
Vsphere provider 2.8.1 I'm still having the issue, VM are rebooting. Just to make sure, is 2.8.1 supposed to fix the issue, or am I missing something? |
Hey @DamienDaco We consider this fix to be a breaking change since it can interrupt running workloads because the update to the configuration triggers a power cycle on the VMs. We try to allow breaking changes only on major releases, that is why the fix for this issue will likely land with v3.0.0 |
Research Note: Was reported in #2202 (comment) that this issue is not observed in vSphere 7. Verification reequired. |
ept_rvi_mode
and hv_mode
always attemp to update on apply
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
v1.4.6
Terraform Provider
v2.3.1 and v2.4.0
VMware vSphere
v8.0.1
Description
After a virtual machine is created using the provider, after running an apply again Terraform wants to update the virtual-machine in-place as the fields
ept_rvi_mode
andhv_mode
are constantly being changed even without touching those fields.It looks like that the provider is using one of
automatic
,on
oroff
, where VSphere unsets the field to an empty string""
.As a work-around I can use the following block
Affected Resources or Data Sources
resource/vsphere_virtual_machine
Terraform Configuration
Debug Output
Panic Output
No response
Expected Behavior
No changes
Actual Behavior
Steps to Reproduce
Run a
terraform apply
immediatly followed by a new run ofterraform apply
Environment Details
No response
Screenshots
No response
References
No response
The text was updated successfully, but these errors were encountered: