terraform-provider-vsphere icon indicating copy to clipboard operation
terraform-provider-vsphere copied to clipboard

`extra_config_reboot_required` causes state drift due to missing state migration

Open pascal-hofmann opened this issue 1 year ago • 0 comments

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

v1.5.3

Terraform Provider

v2.4.1

VMware vSphere

7.0.3

Description

The new extra_config_reboot_required field for the vsphere_virtual_machine causes state drift event though there are no changes.

Affected Resources or Data Sources

resource/vsphere_virtual_machine

Terraform Configuration

extra_config_reboot_required not set at all.

Debug Output

  # vsphere_virtual_machine.this will be updated in-place
  ~ resource "vsphere_virtual_machine" "this" {
      + extra_config_reboot_required            = true
…

Panic Output

No response

Expected Behavior

Plan contains no changes.

Actual Behavior

Plan contains changes.

Steps to Reproduce

Create resource with older provider version and switch to newer version which supports extra_config_reboot_required.

Environment Details

No response

Screenshots

No response

References

#1603

pascal-hofmann avatar Aug 09 '23 07:08 pascal-hofmann