Regarding PBM backup and restore.
In case of two different clusters with same cluster/replica sets/config servers name
Should the users on the backup source be identical to restore destination?
Nothing mentioned here regarding this Restore a backup - Percona Backup for MongoDB
But I tried to restore from Cluster A to Cluster B with same names and config (same number of shards and everything except different internal users creds including backup user and cluster admin and cluster monitor admin etc …
and restore failed after few minutes, state for PerconaServerMongodbRestore was running
for around 10 minutes but then it failed with this error and config servers pods went into crashloop
check for concurrent jobs: getting pbm object: create PBM connection to psmdb-db-rs0-1.psmdb-db-rs0.psmdb-db-integration.svc.cluster.local:27017,psmdb-db-rs0-0.psmdb-db-rs0.psmdb-dd-integration.svc.cluster.local:27017,psmdb-db-rs0-2.psmdb-db-rs0.psmdb-db-integration.svc.cluster.local:27017: create mongo connection to configsvr with connection string '
mongodb://<CLUSTER-B_USER>
: <CLUSTER_B_PASSWORD>@psmdb-db-cfg-0.psmdb-db-cfg.psmdb-db-integration.svc.cluster.local:27017,psmdb-db-cfg-1.psmdb-db-cfg.psmdb-db-integration.svc.cluster.local:27017,psmdb-db-cfg-2.psmdb-db-cfg.psmdb-db-integration.svc.cluster.local:27017/': mongo ping: connection() error occured during connection handshake: dial tcp: lookup psmdb-db-cfg-0.psmdb-db-cfg.psmdb-db-integration.svc.cluster.local on <LOCAL_IP>:53: no such host
After this I updated cluster B to use same creds as cluster A, Retried to restore and it worked.