Restore fails with dup key on admin.pbmBackups

Description

For quarterly backup testing, we stand up a 1-replica PSMDB, then create a PerconaServerMongoDBRestore resource to restore the latest backup to it.

When I create the restore object, it runs for a while, but eventually fails. When I kubectl describe perconaservermongodbrestore db-restore-20230915, the status shows:

This admin.pbmBackups collection is managed by the percona operator.

Environment

None

Activity

Show:

Jonathan Lynch September 28, 2023 at 3:26 PM

This ended up being a configuration issue with multiple mongodb clusters backing up to the same S3 bucket. When prefix is omitted the backups overlap, essentially corrupting them. Please close this ticket.

Not a Bug

Details

Assignee

Reporter

Needs QA

Yes

Affects versions

Priority

Smart Checklist

Created September 18, 2023 at 3:54 PM
Updated December 8, 2023 at 9:53 AM
Resolved December 8, 2023 at 9:53 AM