percona / percona-server-mongodb-operator

Percona Operator for MongoDB
https://www.percona.com/doc/kubernetes-operator-for-psmongodb/
Apache License 2.0
352 stars 143 forks source link

Backup config not updated #1526

Open ByJacob opened 7 months ago

ByJacob commented 7 months ago

Report

More about the problem

Backup configuration cannot be updated via YAML

Steps to reproduce

  1. Create cluster using PerconaServerMongoDB with s3 backup and SecretV1 and endpointUrlV1
    1. Check configutaion in backup-agent using pbm config
  2. Update PerconaServerMongoDB and use for s3 backup SecretV2 and endpointUrlV2
  3. Check configutaion in backup-agent using pbm config

Versions

  1. Kubernetes - v1.27.7
  2. Operator - percona/percona-server-mongodb-operator:1.15.0
  3. Database - percona/percona-backup-mongodb:2.3.0

Anything else?

No response

spron-in commented 7 months ago

Hey @ByJacob ,

so here is what I did.

  1. Deployed a cluster, configured backup with wrong endpointUrl.

Result - backup failed.

  1. Changed the endpointUrl to correct one and applied the manifest

Result - backup succeeded.

  1. Changed the secret to wrong credentials and applied.

Result - backup failed.

Apart from checking the config in the pod - do you see issues with backups?

xcono commented 6 months ago

Hi, @ByJacob I am experiencing the same issue. Were you able to find a way to update the configuration?

ByJacob commented 6 months ago

Hi, @ByJacob I am experiencing the same issue. Were you able to find a way to update the configuration?

I deleted and re-created the mongodb cluster :D You can also go into the shell cluster and change the settings with the cli tool