-
Notifications
You must be signed in to change notification settings - Fork 190
Terrform successfully applied changes, however mongo API returned 400 #689
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
Comments
Since you have Continuous/Legacy Backup enabled for the cluster when running on 4.0. Therefore, below two changes are required for the cluster to be made in order to upgrade it to 4.2. MongoDB Atlas does not supports Legacy Backup from 4.2 onwards and the only way to use backup is to use Cloud Backup.
Once done, you can then run Thanks |
I know that I need to disable legacy backup and enable cloud backup I was able to figure that out by viewing the debug logs, however there is still a bug with the fact that Mongo API returned a 400 but the terraform provider just said apply was complete... The terraform provider should also throw an error |
@markandersontrocme thank you for the feedback. You are correct, the provider should appropriately catch the error and not complete successfully. We actually just corrected this: #687 (cc @martinstibbe) and expect the fix in our next release. We will close this issue when that is corrected. |
@markandersontrocme This fix will be in version 1.3.1 pre release for testing soon |
Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform Configuration File
# Copy-paste your configuration info here
Steps to Reproduce
Cluster is on version 4.0 and try to upgrade it to 4.2
terrafrom plan
outputs that it will upgrade to 4.2terraform apply
outputsterrafrom plan
outputs that it will upgrade to 4.2Expected Behavior
The cluster to get upgraded or in this case to throw an error message.
Actual Behavior
It said the apply was complete and modifications worked.
Debug Output
Crash Output
Additional Context
References
The text was updated successfully, but these errors were encountered: