Backup fails with spec psmdbCluster field is empty

$ kubectl describe psmdb-backup backup1

    Manager:         percona-server-mongodb-operator
    Operation:       Update
    Time:            2022-03-16T16:28:18Z
  Resource Version:  48920490
  UID:               bb5f1a77-ad83-4d9a-8ee9-567fa4f9df7a

Status:
  Error:  spec psmdbCluster field is empty
  State:  error
Events:   <none>

Any ideas what’s happening here?

This is my backup.yaml:


apiVersion: psmdb.percona.com/v1
kind: PerconaServerMongoDBBackup
metadata:
  finalizers:
    - delete-backup
  name: backup1
spec:
  clusterName: psmdb-db
  storageName: my-s3
1 Like

Ok I just added psmdbCluster: psmdb-db and I could delete backup1 and re-apply. This psmdbCluster key is not in the official documentation. I now am seeing new error:

Error: failed to run backup: allowUnsafeConfigurations must be true to run backup on cluster with status initializing

Cluster is runnning for an hour now without any issues it seems.

1 Like

@anon17965173 ,
What version of PBM you used? This issue seems similar to this one:
https://jira.percona.com/browse/K8SPSMDB-666

which is fixed.

1 Like