Versions :
Snapshot taken from production server running OpenSearch 2.2.1 on Debian 11
Datastream is being restores in lab server running OpenSearch 2.4.0 on Debian 11
Describe the issue:
I have several times been able to (and still do) restore indexes from production to lab server. I can’t however restore data streams. The datastream in question is "audiocodesva-logs"
. No such datastream is present in the lab environment and the datastream is visible from the lab server when I list the repository’s contents.
Configuration:
POST _snapshot/pcrepo/full_snap_20230214/_restore?wait_for_completion=false
{
"indices": "audiocodesva-logs",
"ignore_unavailable": true,
"include_global_state": false
}
Relevant Logs or Screenshots:
When I run the restore request I get the following response:
{
"error" : {
"root_cause" : [
{
"type" : "security_exception",
"reason" : "no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=]"
}
],
"type" : "security_exception",
"reason" : "no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=]"
},
"status" : 403
}
The same is if I run with my user that also has all_access
and manage_snapshot
privileges.
Is there something I am missing regarding datastreams vs indexes?