Hi all,
Using the following restore.yaml to create PerconaXtraDBClusterRestore
apiVersion: pxc.percona.com/v1
kind: PerconaXtraDBClusterRestore
metadata:
name: restore
namespace: dkube-infra
spec:
pxcCluster: mysql-db-pxc-db
backupSource:
destination: s3://dkube/backup/mysql-pxc-cluster/manual/
s3:
region: us-east-1
credentialsSecret: mysql-pxc-backup-secret
endpointUrl: http://dkube-minio-server:9000
It fails with the following error.
status:
comments: 'run restore: s3: create job: Job.batch "restore-job-restore-mysql-db-pxc-db-mysql-db-pxc-db"
is invalid: [spec.template.metadata.labels[controller-uid]: Invalid value: map[string]string{"controller-uid":"2bc05a56-6491-4598-8295-040d55d6f62c",
"job-name":"restore-job-restore-mysql-db-pxc-db-mysql-db-pxc-db"}: must be ''3c7aca1d-f905-406b-9bd7-702bf5592dcd'',
spec.template.metadata.labels: Invalid value: map[string]string{"controller-uid":"2bc05a56-6491-4598-8295-040d55d6f62c",
"job-name":"restore-job-restore-mysql-db-pxc-db-mysql-db-pxc-db"}: selector
does not match template labels]'
state: Failed
Any idea why is the coming?
The 1st time when I restore, it works fine.
But the 2nd time when I try to restore it gives this error.