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

[BUG] opensearch_cluster_settings unable to apply cluster_max_shards_per_node #59

Closed
arichtman-srt opened this issue Jul 26, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@arichtman-srt
Copy link

What is the bug?

opensearch_cluster_settings unable to apply cluster_max_shards_per_node

How can one reproduce the bug?

image

What is the expected behavior?

Terraform is able to apply the changes, cluster query show the updated value.

What is your host/environment?

$ uname -a && terraform -version
Darwin bne-nb-ariel 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun  8 22:21:34 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T8112 arm64 arm Darwin
Terraform v1.5.3
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v4.62.0
+ provider registry.terraform.io/hashicorp/external v2.3.1
+ provider registry.terraform.io/hashicorp/local v2.4.0
+ provider registry.terraform.io/hashicorp/null v3.2.1
+ provider registry.terraform.io/hashicorp/random v3.5.1
+ provider registry.terraform.io/opensearch-project/opensearch v1.0.0
+ provider registry.terraform.io/phillbaker/elasticsearch v2.0.4

Do you have any screenshots?

All using the same user as the Terraform provider configuration

  1. Query the cluster for max shards
  2. Inspect the json payload file
  3. Send the request
  4. Query the cluster for max shards to confirm

image

Do you have any additional context?

@arichtman-srt arichtman-srt added bug Something isn't working untriaged labels Jul 26, 2023
@prudhvigodithi
Copy link
Collaborator

[Untriage]
Hey @arichtman-srt, from your screenshot it was changed from 1000 to 1001, so you are trying to change to 999?
AFAIK OpenSearch rejects any request that creates more shards than this limit allows, can you confirm if this is coming from OpenSearch or actual issue with the provider? Adding @phillbaker @bbarani

@arichtman-srt
Copy link
Author

arichtman-srt commented Aug 4, 2023

I'm unable to replicate the error, thanks for your time and sorry!

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