-
Notifications
You must be signed in to change notification settings - Fork 89
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
Specifying autoscaling limits on tiers which do not support them results in an API error - JSON request does not comply with schema ([]: [Enum string expected]) #401
Comments
(I don't understand why you get the error you do - is there any way of making terraform more verbose? - but on ESS you can only add masters once you have 6+ data nodes, and I strongly suspect that terraform current won't support letting you cross the 6 node barrier, you'd have to do that via the UI, then terraform can be used to manage it declaratively ... as long as you don't cross the 6 node boundary in the other direction, which gives a similar - more helpful! - error) Looking at the docs, it used to be possible via |
Sorry, it's been long time and I don't have enough time to provide more detail. As a workaround, we have created the cluster with dedicated masters to be able to scale in the future. Looks like it's not possible to start small and scale up in time, at least not possible with terraform provider. I am not sure if it is possible through UI or API. |
I'm running into the same error message under a different scenario: When enabling autoscaling in an existing deployment, I get the same API error, see below. Am I missing something?
The terraform definition is:
The changes from working config, to erroring config in the above file are, (I also tried readding the
|
@scathatheworm did you manage to find a workaround? We are facing the same issue. |
@scathatheworm it looks like you're defining a At a Cloud level, we only support autoscaling up on data tiers and defining a @andrewnazarov if you've got a different module definition triggering this error, add it here and I can take a look at what's going on. |
Defining autoscaling attributes on an Elasticsearch topology element which does not support that attribute (e.g
min_size
on a data tier, any autoscaling attribute on a master tier) fails with:The provider enriches the deployment template with information from the Terraform module definition. The provider relies on the deployment template specifying the resource type in the
autoscaling_min_size
andautoscaling_max_size
attributes. Data tiers do not include theautoscaling_min_size
attribute, similarly master tiers do not include either theautoscaling_min_size
orautoscaling_max_size
. This means that the final request includes a size properly without the corresponding resource, e.g:vs
Possible fixes:
memory
(we assume as much already)Original description
Expected Behavior
When a dedicated master topology added to an existing cluster, it's expected that new dedicated master nodes added to cluster.
Current Behavior
When a dedicated master topology added to an existing cluster, it returns below api error.
* api error: root.invalid_json_request: JSON request does not comply with schema ([]: [Enum string expected])
Full terraform apply log
## Terraform definition
Terraform module ec_deployment block
Topology passed to the module:
Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: