[BUG] no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null] on .opensearch-cluster-control #16872
Labels
bug
Something isn't working
Indexing:Replication
Issues and PRs related to core replication framework eg segrep
untriaged
Describe the bug
Following upgrade to 2.18.0 on a single node cluster the .opensearch-cluster-control has number_of_replicas: "1".
Attempting to change this to number_of_replicas: "0" returns the following error even for the initial admin user.
{
"error": {
"root_cause": [
{
"type": "security_exception",
"reason": "no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null]"
}
],
"type": "security_exception",
"reason": "no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null]"
},
"status": 403
}
Related component
Indexing:Replication
To Reproduce
curl --location --request PUT 'https:///.opensearch-control-center/_settings'
--header 'Content-Type: application/json'
--header 'Authorization: Basic xxx'
--data '{"index.number_of_replicas":0}'
Expected behavior
The number of replicas should change from 1 to 0.
Additional Details
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: