-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Drift google_compute_forwarding_rule ip_address for IPv6 #16400
Comments
This should be an easy fix in the TF provider. We did the same when we enabled IPv6 for VMs. I'll take care of it. |
It seems I spoke too soon.... :) I see that all IPv6 resources are already using the On the other hand, the Imho, it would seem appropriate to move the Does any of this makes sense? Any idea on the possible design @rileykarson @edwardmedia @hao-nan-li ? Thanks |
Does your configuration include A workaround in the meantime is to ensure that your config contains the canonical form ( What's a little unusual here is that https://cloud.google.com/compute/docs/reference/rest/v1/forwardingRules specifies that you should have specified an IPv6 address range, but I thought |
That seems reasonable at first glance, although we should validate that there's no reason we'd want to avoid this approach during review. |
So, indeed that's not exactly what I have. Let me explain. I guess the post returned the first time the full address ( |
That's unusual- a config not including the value shouldn't diff at all, in theory. |
In theory :) I think I understood what happens. I'll add a few more data points:
|
…ashicorp#9423) * [hashicorp#16400] Fix and simplify InternalIpDiffSuppress function * Fixes as per PR comments * Adding new tests for different netmasks * fix test * Fixes to unit tests * Fixes per comments * Comments fixes --------- Co-authored-by: Luca Prete <lucaprete@google.com> [upstream:06aa6a62bc9aed26c0c890c7bd41625ebca87173] Signed-off-by: Modular Magician <magic-modules@google.com>
…6550) * [#16400] Fix and simplify InternalIpDiffSuppress function * Fixes as per PR comments * Adding new tests for different netmasks * fix test * Fixes to unit tests * Fixes per comments * Comments fixes --------- [upstream:06aa6a62bc9aed26c0c890c7bd41625ebca87173] Signed-off-by: Modular Magician <magic-modules@google.com>
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. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
1.6.2
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
No drifts are expected.
Actual Behavior
First apply goes well. Second apply/plan causes a drift, given the API returns the short version of the IPv6 address.
For example:
~ ip_address = "fd20:6c7:bb6a:f400:0:0:0:0/96" -> "fd20:6c7:bb6a:f400::" # forces replacement
Steps to Reproduce
Customize the TF I've given and run two times apply / apply+plan
b/308569731
The text was updated successfully, but these errors were encountered: