-
Notifications
You must be signed in to change notification settings - Fork 178
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
mongodbatlas_project_ip_access_list Unexpected replacement of CIDR with IP address #1571
Comments
Thanks for opening this issue! Please make sure you've followed our guidelines when opening the issue. In short, to help us reproduce the issue we need:
The ticket INTMDB-1231 was created for internal tracking. |
I am having the same issue, any help would be appreciated |
I am having the same issue with Terraform, any help would be appreciated. I've noticed that this problem does not occur in version 1.11.1, but it does in 12.0.x. Here's the code snippet where the issue appears: # mongodbatlas_project_ip_access_list.mongodb-peering-gcp-whitelist-subnet_ip_primary_platform must be replaced
-/+ resource "mongodbatlas_project_ip_access_list" "mongodb-peering-gcp-whitelist-subnet_ip_primary_platform" {
+ aws_security_group = (known after apply) # forces replacement
~ id = "xxx" -> (known after apply)
+ ip_address = (known after apply) # forces replacement
# (3 unchanged attributes hidden)
- timeouts {}
} Does anyone have insights on why this replacement is forced in the newer version? |
Thanks @tatianaschaefer0815 I was not able to reproduce this issue. I tried creating the resource with 1.11.1 and then upgrading to 1.12.0. I'd request you to please share the resource config from the state file before and after upgrading as that will help us understand what differs. We will investigate this further. For now, I can recommend a workaround to remove resource from the state using |
@villers @emas80 @tatianaschaefer0815 can anybody share more details about your own plan and full list of actions to reproduce the issue? This is what I tried and I wasn't able to replicate:
Marking this |
Hello @marcosuma, @maastha
and what I get after
In your example you use single host cidr "192.168.0.1/32". Can you please retry with something like this 192.168.196.16/28. |
This issue has gone 7 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 7 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy! |
Ping, see my comment above |
This issue has gone 7 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 7 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy! |
@tatianaschaefer0815 I am afraid I still can't reproduce it.
I've tried with the IP address you mentioned.
Last question: have you tried to upgrade to the latest provider version 1.13.x? Are you still getting a |
@marcosuma I don't have exact reproduction steps, our TF has been around for years so I'm not sure in which versions certain fields were added to being tracked by state etc. Here's a copy of the current state for one of our project whitelists:
I suspect the bug was introduced as part of #1411 Both Here's a before and after of one that I removed from the state and then reimported on 1.12:
|
Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform Configuration File
Steps to Reproduce
Expected Behavior
Plan result should be: No changes. Your infrastructure matches the configuration. (Tested with provider[registry.terraform.io/mongodb/mongodbatlas] 1.11.1)
Actual Behavior
Terraform will perform the following actions:
The text was updated successfully, but these errors were encountered: