Skip to content

[BUG] S3 snapshots get uploaded outside of the configured base_pathΒ #20523

@atrendler-tc

Description

@atrendler-tc

Describe the bug

After migrating our Opensearch container from 2.6.0 to 3.2.0 we discovered that Opensearch creates data backups outside of the configured base_path. It seems that only metadata actually gets uploaded properly in the base_path.

Related component

Storage:Snapshots

To Reproduce

  1. Create an S3 bucket
  2. Configure S3 repository:
curl -sku ${OPENSEARCH_USERNAME}:${OPENSEARCH_PASSWORD} -X PUT "https://localhost:9200/_snapshot/opensearch_snapshots?pretty" -H 'Content-Type: application/json' -d'
{
  "type": "s3",
  "settings": {
    "bucket": "<bucket>",
    "region": "<region>",
    "base_path": "opensearch_snapshots"
  }
}
'
  1. Verify that the base_path only contains metadata.
  2. Verify that the root of the S3 bucket gets filled with separate directories that contain the actual data of the indices.

Expected behavior

Both data and metadata should be uploaded to the base_path.

Additional Details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    πŸ†• New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions