-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Clear only operates on computed keys - secondary_ip_range is not one #3477
Clear only operates on computed keys - secondary_ip_range is not one #3477
Comments
The order of the secondary ranges returned by the Google API is reversed for
For
|
Removing the resource from the state then reimporting it does not help:
|
Reordering the |
The issue can be reproduced by running the acceptance tests with the following change:
Output:
|
Simply swapping the |
This is the culprit: 8279ae6#diff-c00013899b923b404c727949952f35ffL120 |
Adding |
Hi @rileykarson, I believe the aforementioned change was unintentional, would you mind having a look at this somewhat blocking regression? |
Oh, the real culprit seems to be GoogleCloudPlatform/magic-modules@19b8ac5 |
Thanks for filing and for the reproduction @pdecat! For context, we removed the The PR you've highlighted is the one that changed that functionality, unfortunately it doesn't look like the PR's owner added it to the changelog. I'll amend that and note that it's a known issue in This also impacted some GKE users, for whom GKE was adding secondary ranges to their subnetworks automatically. This was reported in the GCP Community Slack. For |
Thanks for the feedback @rileykarson. FWIW, I'm a GKE user with alias IP/container native load balancing enabled and that's why I'm affected too. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Terraform Version
Same issue with google and google-beta 2.5.0.
Downgrading to 2.4.0 works.
Affected Resource(s)
google_compute_subnetwork
Terraform Configuration Files
Debug Output
https://gist.github.com/pdecat/673f5e7ffb290322b6fe4182469a62f5
Panic Output
N/A
Expected Behavior
terraform plan -target module.net0.google_compute_subnetwork.subnet1
should detect no change.Actual Behavior
The following error occurs:
Steps to Reproduce
terraform plan -target module.net0.google_compute_subnetwork.subnet1
Important Factoids
That's maybe new behavior introduced by using the terraform 0.12 SDK with terraform 0.11.13.
In the same module, there's a similarly configured
subnet0
resource that's not affected:References
The text was updated successfully, but these errors were encountered: