Elasticsearch deprecation issues

I can't upgrade to 8.6.1 due to a deprecation issue. I can't update the elasticsearch.yml, because I have a cloud solution.
Problem: setting [cluster.routing.allocation.disk.watermark.enable_for_single_data_node] is deprecated and will not be available in a future version

How do I get rid of this issue?

Thanks,
Herman

Hi @hermlam,

Looking at the docs, this value will default to true. There is some guidance on what to do if you need the previous false behaviour:

If the old behavior is desired for a single data node cluster, disk based allocation can be disabled by setting cluster.routing.allocation.disk.threshold_enabled: false

Hope that helps!

Hi Carly,
Thanks for your answer.
I am having a problem setting this:
Preformatted textPUT _cluster/settings
{
"transient": {
"cluster.routing.allocation.disk.threshold_enabled": false
}
} Preformatted text
Error:
{
"error": {
"root_cause": [
{
"type": "security_exception",
"reason": "Operator privileges are required for setting [cluster.routing.allocation.disk.threshold_enabled]"
}
],
"type": "security_exception",
"reason": "action [cluster:admin/settings/update] is unauthorized for user [692420039] with assigned roles [superuser] because it requires operator privileges, this action is granted by the cluster privileges [manage,all]",
"caused_by": {
"type": "security_exception",
"reason": "Operator privileges are required for setting [cluster.routing.allocation.disk.threshold_enabled]"
}
},
"status": 403
}

I am running in a Elastic Cloud environment

Ok, that looks like you don't have permissions to set that value. I have found another thread in Slack with users having the same issue, where guidance is given to ignore the error for a minor upgrade:

Original question: Slack
Response: Slack

Have a look at the thread and see if that option works for you and if this value changing does have an impact on your usage. Otherwise, you'll need to look at your privileges if you definitely need to change this setting.

Hi Carly,
I can't find these topics at Slack. And this would be a temporarely solution? What when the time comes for a major upgrade?
Elevating my privilige rights? No idea how to do this in the Elastic Cloud.
So I am a little bit stuck here.
Thanks for helping,
Herman

Hi @hermlam,

So by elevating your privileges, I'm referring to the Roles screen in Stack Management where additional roles can be added to your user.

I see the messages on Slack are no longer available. But the guidance in the thread, as mentioned above, was ignoring for minor upgrade. Major upgrade wasn't mentioned, but I would go with the migration guide guidance mentioned previously.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.