Waiting for backup metadata

Hello there,

I am creating backup of my mongodb cluster, but backup never happened:

$ kubectl get PerconaServerMongoDBBackup
NAME                               CLUSTER              STORAGE              DESTINATION            STATUS      COMPLETED   AGE
mongo-ods-bkup-20220604   mongo-ods   oci-bucket-ashburn   2022-06-05T15:22:38Z   requested               31s

As checked the operator log:

{"level":"info","ts":1654441370.768225,"logger":"controller_perconaservermongodbbackup","msg":"Waiting for backup metadata","PBM name":"2022-06-05T04:03:41Z","backup":"mongo-ods-bkup-20220604"}

Helm chart snippet:

  enabled: false
  restartOnFailure: true
  image:
    repository: percona/percona-server-mongodb-operator
    tag: 1.11.0-backup
  serviceAccountName: percona-server-mongodb-operator
  # annotations:
  #   iam.amazonaws.com/role: role-arn
  resources:
    limits:
      cpu: "300m"
      memory: "0.5G"
    requests:
      cpu: "300m"
      memory: "0.5G"
  storages:
    oci-bucket-ashburn:
      type: s3
      s3:
        bucket: lab-db-mongo-ods-bkup
        credentialsSecret: db-backup-bucket-secret
        region: us-ashburn-1
        prefix: ""
        endpointUrl: idpaexxxxxxx.compat.objectstorage.us-ashburn-1.oraclecloud.com
        repo1-retention-full: 3
        uriStyle: path
        verifyTLS: false    

My backup definition:

apiVersion: psmdb.percona.com/v1
kind: PerconaServerMongoDBBackup
metadata:
  finalizers:
  - delete-backup
  name: mongo-ods-bkup-20220604
spec:
  psmdbCluster: mongo-ods
  storageName: oci-bucket-ashburn

In the mongo replicaset, there is no backup sidecar injected.

Could anyone please shed your light on this problem?

Thanks,
Arthur

1 Like

Just found the backup wasnot enabled.

1 Like