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

Issue when using phillbaker/elasticsearch provider for creating index and cluster settings #317

Open
Ak-sky opened this issue Oct 23, 2024 · 3 comments

Comments

@Ak-sky
Copy link
Member

Ak-sky commented Oct 23, 2024

Basic example is failing everytime in eu-de all regions when elasticsearch_index and elasticsearch_cluster_settings are getting created using below elasticsearch provider.

source = "phillbaker/elasticsearch"

Failing with below error context deadline exceeded

TestRunBasicExample 2024-10-23T06:35:14Z retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; ╷
│ Error: Head "https://4a92398f-969b-44b3-a9b2-44a791571995.6131b73286f34215871dfad7254b4f7d.databases.appdomain.cloud:31855/": context deadline exceeded
│ 
│   with elasticsearch_index.test,
│   on main.tf line 34, in resource "elasticsearch_index" "test":
│   34: resource "elasticsearch_index" "test" {
│ 
╵
╷
│ Error: Head "https://4a92398f-969b-44b3-a9b2-44a791571995.6131b73286f34215871dfad7254b4f7d.databases.appdomain.cloud:31855/": context deadline exceeded
│ 
│   with elasticsearch_cluster_settings.global,
│   on main.tf line 42, in resource "elasticsearch_cluster_settings" "global":
│   42: resource "elasticsearch_cluster_settings" "global" {
│ 
╵}

Have tried to wait (sleep) for 60s, 120s, and so forth but it doesn't work. But sometimes TF re-apply does work.

@ocofaigh
Copy link
Member

@Ak-sky re: But sometimes TF re-apply does work

^ Do you have an environment where the re-apply never works? I believe its just that the backend is not actually ready yet. And we need to wait longer. We could maybe add a readiness script to the module if thats the case. But if you are seeing examples where re-apply never works, then thats a different problem. Can you please confirm?

@Ak-sky
Copy link
Member Author

Ak-sky commented Oct 23, 2024

@Ak-sky re: But sometimes TF re-apply does work

^ Do you have an environment where the re-apply never works? I believe its just that the backend is not actually ready yet. And we need to wait longer. We could maybe add a readiness script to the module if thats the case. But if you are seeing examples where re-apply never works, then thats a different problem. Can you please confirm?

It does work on re-apply but what I have seen is ES instance status is active even then it was always failing.

@ocofaigh
Copy link
Member

ocofaigh commented Oct 23, 2024

@Ak-sky Active may not mean its ready to handle index creation. Perhaps there is readiness api we could hit? We could even reach out to ICD to see what they recommend, since it seems to definitely be that the instance just isn't ready yet

@Ak-sky Ak-sky mentioned this issue Nov 5, 2024
6 tasks
@ocofaigh ocofaigh changed the title Issue in eu-de region when using phillbaker/elasticsearch provider for creating index and cluster settings Issue when using phillbaker/elasticsearch provider for creating index and cluster settings Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants