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] no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null] on .opensearch-cluster-control #16872

Open
boomcubist opened this issue Dec 17, 2024 · 0 comments
Labels
bug Something isn't working Indexing:Replication Issues and PRs related to core replication framework eg segrep untriaged

Comments

@boomcubist
Copy link

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):

  • OS: Container runnning on Docker on Rocky Linux 9.4
  • Version 2.18.0
@boomcubist boomcubist added bug Something isn't working untriaged labels Dec 17, 2024
@github-actions github-actions bot added the Indexing:Replication Issues and PRs related to core replication framework eg segrep label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Indexing:Replication Issues and PRs related to core replication framework eg segrep untriaged
Projects
None yet
Development

No branches or pull requests

1 participant