Skip to content
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

Terraform apply failed with Error: Provider produced inconsistent final plan This is a bug in the provider, which should be reported in the provider's own issue tracker. #926

Closed
devopsvj opened this issue Nov 16, 2022 · 4 comments
Labels

Comments

@devopsvj
Copy link

devopsvj commented Nov 16, 2022

Terraform CLI and Terraform MongoDB Atlas Provider Version

Terraform v1.3.3
on windows_amd64

Terraform Configuration File

terraform {
  required_providers {
    mongodbatlas = {
      source = "mongodb/mongodbatlas"
      version = "1.5.0"
    }
  }
}

also tried with previous version of provider 1.4.6 same results 

Steps to Reproduce

Expected Behavior

Actual Behavior

Error: Provider produced inconsistent final plan

When expanding the plan for
module.mongo_base.module.mongodbatlas.mongodbatlas_x509_authentication_database_user.my_user
to include new values learned so far during apply, provider
"registry.terraform.io/mongodb/mongodbatlas" produced an invalid new value
for .certificates[0].id: was cty.NumberIntVal(6.656703865428611756e+18), but
now cty.NumberIntVal(6.656703865428612e+18).

This is a bug in the provider, which should be reported in the provider's own issue tracker.

Debug Output

Crash Output

Additional Context

The above issue is not happening with terraform cli 1.0.5 with mongo provider version 1.5.0

References

@devopsvj devopsvj changed the title Terraform apply failed with Error: Provider produced inconsistent final plan Terraform apply failed with Error: Provider produced inconsistent final plan This is a bug in the provider, which should be reported in the provider's own issue tracker. Nov 16, 2022
@Zuhairahmed
Copy link
Collaborator

hi @devopsvj, can you share config and log files with us so we can try to reproduce the error from our end?

also can you explain more what you mean by "The above issue is not happening with terraform cli 1.0.5 with mongo provider version 1.5.0"? The Terraform MongoDB Atlas Provider v1.5.0 is just the reference to the provider being used in the .tf files to create MongoDB Atlas resources.

@devopsvj
Copy link
Author

devopsvj commented Nov 17, 2022

@Zuhairahmed I mean to say, reported issue is not occurring when using terraform cli version 1.0.5 with mongo provider version 1.5.0.

  1. Initial deployment using the terraform cli 1.3.3 successfully deployed resources.
  2. However the issue is occurred when we tried to apply second time with with change in audit attributes.
  3. On the same scenario, if we use terraform cli 1.0.5, reported issue is not occurring.

@Zuhairahmed
Copy link
Collaborator

ok thanks for more context, can you share your terraform config files so we can re-create issue from our end?

@github-actions
Copy link
Contributor

This issue has gone 30 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 30 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!

@github-actions github-actions bot added the stale label Dec 18, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants