Hi!
We need to migrate data from cluster A to cluster B on AWS. I found this mistake when I do restore:
{“error”:{“root_cause”:[{“type”:“security_exception”,“reason”:“Unexpected exception cluster:admin/snapshot/restore”}],“type”:“security_exception”,“reason”:“Unexpected exception cluster:admin/snapshot/restore”},“status”:500}
I’ve granted this role to the user but error persist. The steps to replicate is:
1: create repository with python Creating index snapshots in Amazon OpenSearch Service - Amazon OpenSearch Service
https://vpc-cloud-es-logs-test-cv3dsepi3r3hnvrkwdprwcfydu.eu-west-1.es.amazonaws.com/ -r ‘prueba_final_noenc’
2:Verificate repo: curl -XGET https://vpc-cloud-es-logs-test-cv3dsepi3r3hnvrkwdprwcfydu.eu-west-1.es.amazonaws.com/_snapshot/_all?pretty
- create snapshot: curl -XPUT ‘https://vpc-cloud-es-logs-test-cv3dsepi3r3hnvrkwdprwcfydu.eu-west-1.es.amazonaws.com/_snapshot/prueba_final_noenc/snapshot_final_noenc’
- Verificate snapshot :curl -XGET https://vpc-cloud-es-logs-test-cv3dsepi3r3hnvrkwdprwcfydu.eu-west-1.es.amazonaws.com/_snapshot/prueba_final_noenc/_all?pretty
5: I try restore the snapshot to another cluster:curl -XPOST https://vpc-cloud-es-logs-encrypted-bc46tbw2ikgbyemsf4pxwpjqjq.eu-west-1.es.amazonaws.com/_snapshot/prueba_final_noenc/snapshot_final_noenc/_restore -d ‘{“indices”: “movies”,“ignore_unavailable”: true, “include_global_state”: false}’ -H ‘Content-Type: application/json’ -u xxxx:xxxxx
I found ERROR: {“error”:{“root_cause”:[{“type”:“security_exception”,“reason”:“Unexpected exception cluster:admin/snapshot/restore”}],“type”:“security_exception”,“reason”:“Unexpected exception cluster:admin/snapshot/restore”},“status”:500}