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

Snapshot repository error report #815

Open
EdCzl opened this issue May 6, 2024 · 2 comments
Open

Snapshot repository error report #815

EdCzl opened this issue May 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@EdCzl
Copy link

EdCzl commented May 6, 2024

Hello,
Reporting the following customer error as recommended in the obtained message.
The error occurred when trying to define the deployment specifying a snapshot repository; it seems like there’s an issue with the management of snapshot repository configuration.

│ Error: Provider produced inconsistent result after apply                                                                                                                                                                                                                                                                                                                           
│                                                                                                                                                                                                                                                                                                                                                                                    
│ When applying changes to module.elasticsearch["xxx-qa-nonprod"].ec_deployment.xxx-qa-nonprod, provider "provider[\"registry.terraform.io/elastic/ec\"]" produced an unexpected new value: .elasticsearch.snapshot.repository: was cty.ObjectVal(map[string]cty.Value{"reference":cty.UnknownVal(cty.Object(map[string]cty.Type{"repository_name":cty.String}))}), but now null.    
│                                                                                                                                                                                                                                                                                                                                                                                    
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.      
  • Terraform v1.8.2.
  • Terraform-provider-ec v.0.10.0.
  • Elastic Cloud v8.13.3.
@EdCzl EdCzl added the bug Something isn't working label May 6, 2024
@EdCzl EdCzl changed the title Snapshot repository config - Snapshot repository error report May 6, 2024
@BottlecapDave
Copy link

I have also encountered this error message while trying to create a custom snapshot repository and associate it with a cluster created via ec_deployment (although this feels a bit chicken and egg at the moment unless there's some checks that aren't performed)

@BottlecapDave
Copy link

To add, I upgraded to 0.12.1 and added an ignore_lifecycle on the ec_deployment to see if it was just a configuration issue. Unfortunately, replanning the module makes it believe it needs to be updated again. I also ran a manual snapshot and it was not added to the custom repository which makes me believe the change isn't persisting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants