Open NilsBusche opened 1 day ago
Hi @NilsBusche,
I could reproduce the issue, but I'm unsure whether it is an issue with the Provider itself or Terraform core, as indeed removing the output doesn't cause the issue (if the Provider was buggy I guess it should always report the diff, like something failed during Reads of the remote system).
I'll dig more to see whether I can find something more specific.
In the meantime, I saw that doing a terraform refresh
before step 6 (last terraform plan
) makes the note/warning to disappear. Not sure if that would work for you?
@adambarreiro
I could reproduce the issue, but I'm unsure whether it is an issue with the Provider itself or Terraform core, as indeed removing the output doesn't cause the issue (if the Provider was buggy I guess it should always report the diff, like something failed during Reads of the remote system).
Yes, it seems that the issue only occurs, if you reference the network
blocks in another resource/output/etc. I would assume that this is also the reason why Terraform only then reports it as "change outside of Terraform". If you do not use it anywhere else, there is no need to report it. But this is only my personal assumption without digging deeper into the exact Terraform functionality.
In the meantime, I saw that doing a terraform refresh before step 6 (last terraform plan) makes the note/warning to disappear. Not sure if that would work for you?
This works and maybe we will use this as a workaround in the meantime. Since we have hundreds of VMs in different projects, this is a slightly bigger task, which has to be coordinated, so a solution on the provider's site would be preferred for us.
Terraform Version
Terraform v1.9.6
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Upgrade of the provider version should not display changes outside of terraform if there has nothing changed.
Actual Behavior
After upgrading to provider version 3.14.0 terraform informs about changes made outside of terraform regarding the new network block attribute
secondary_ip_allocation_mode
in some cases, even if there has nothing changed:Steps to Reproduce
terraform apply
3.14.0
network
block to the config:terraform init -upgrade
terraform plan
Important Factoids
terraform plan
then.vcd_vapp_vm
in a module, similar output in the module, using the module's output in the root config also as a "real" output) where even a change of other attributes of the VM (e. g. CPU count) caused this warning.