You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
For elasticstack_elasticsearch_index_lifecycle resource, provider fails when the set_priority action is used and the priority value is set to 0. Values such as 1, 50, 100 do work as expected.
To Reproduce
Steps to reproduce the behavior:
Create a new elasticstack_elasticsearch_index_lifecycle resource
In any lifecycle stage, add {set_priority { priority = 0 }}
Apply
Expected behavior
According to documentation, index priority must be zero or greater. Transmit null in the API call to remove the setting from the ILM policy.
│ Error: Unable to create or update the ILM policy
│
│ with elasticstack_elasticsearch_index_lifecycle.priority_test,
│ on ilm_import.tf line 7, in resource "elasticstack_elasticsearch_index_lifecycle" "priority_test":
│ 7: resource "elasticstack_elasticsearch_index_lifecycle" "priority_test" {
│
│ Failed with: {"error":{"root_cause":[{"type":"x_content_parse_exception","reason":"[1:133] [actions] failed to parse field [set_priority]"}],"type":"x_content_parse_exception","reason":"[1:133]
│ [put_lifecycle_request] failed to parse field [policy]","caused_by":{"type":"x_content_parse_exception","reason":"[1:133] [lifecycle_policy] failed to parse field
│ [phases]","caused_by":{"type":"x_content_parse_exception","reason":"[1:133] [phases] failed to parse field [hot]","caused_by":{"type":"x_content_parse_exception","reason":"[1:133] [phase] failed to parse
│ field [actions]","caused_by":{"type":"x_content_parse_exception","reason":"[1:133] [actions] failed to parse field [set_priority]","caused_by":{"type":"illegal_argument_exception","reason":"Required
│ [priority]"}}}}}},"status":400}
╵
Screenshots
If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
OS: Windows AMD64
Terraform Version v1.1.5
Provider version v0.3.2
Elasticsearch Version v7.16.3
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
For
elasticstack_elasticsearch_index_lifecycle
resource, provider fails when the set_priority action is used and the priority value is set to0
. Values such as 1, 50, 100 do work as expected.To Reproduce
Steps to reproduce the behavior:
elasticstack_elasticsearch_index_lifecycle
resource{set_priority { priority = 0 }}
Expected behavior
According to documentation, index priority must be zero or greater. Transmit
null
in the API call to remove the setting from the ILM policy.Debug output
input
error message
Screenshots
If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
Windows AMD64
v1.1.5
v0.3.2
v7.16.3
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: