-
Notifications
You must be signed in to change notification settings - Fork 135
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
Error 500 (Internal Server Error) when trying to create more than one user #154
Comments
Hi @clifford-sanders thanks for opening an issue. This seems similar to the report here: #129. I was able to reproduce this in a test here: https://github.com/phillbaker/terraform-provider-elasticsearch/runs/2108205592?check_suite_focus=true#step:12:2457 With the error response being:
This seems to be a race condition, adding a function to slow down requests on the provider side works around the error response. I think this is an issue upstream on opendistro. (My guess is that they need to synchronize access to updates using a lock to make the updates sequential.) |
Contrary to #129 adding |
For what's it's worth I added a depends_on to my second role and it waits for the first to be created. It seems to be a pretty decent work around.
|
Hey, I am currently trying these things too and having multiple errors. Especially when you are trying to use for_each or count for mass-creating users, importing kibana dashboard and roles this starts to be unpredictable because within the for_each we could not make the modules depend on each other and putting them, so sometimes this error occurs - sadly. Currently we stuck on v7.9 but in my lab we are using 7.10. Currently both of the versions have the same behaviour and i can confirm that it is not directly provider related and a super annoying bug from Elasticsearch. Maybe it would be an idea to add a default retry mechanism on the provider side which can be configured as this would currently circumvent most of the issues. Since usually the second call will be successfull 90% of the time. @phillbaker do you have thoughts about that? |
should be fixed in c81621a |
@phillbaker Looks like |
Hi @sidda-dandu , can you please include the following:
|
@phillbaker here is the info which you have asked for
|
Hi @sidda-dandu please also include:
|
@phillbaker please see below
|
When I try create multiple users like this
terraform plan
correctly determines the changeBut when I execute
terraform apply
only on user gets created and I get this errorI get the same error when I try to create the users like this
I'm using version 1.5.3 with Terraform v0.12.29 on OFDE 1.12
The text was updated successfully, but these errors were encountered: