Hey @Ivan_Groenewold ,
Thanks. Below are the logs i see. and then backup-agent container gets destroyed.
================ mongo-operator logs =============
ERROR 2023-10-13T06:21:10.312191705Z [resource.labels.containerName: psmdb-operator] 2023-10-13T06:21:10.312Z INFO Waiting for statefulsets to be ready before restore {"controller": "psmdbrestore-controller", "object": {"name":"restore-pitr","namespace":"obp-cms-portal"}, "namespace": "obp-cms-portal", "name": "restore-pitr", "reconcileID": "df451ea4-0a99-41b6-bb73-75fb533231a8", "ready": false}
ERROR 2023-10-13T06:21:15.313095024Z [resource.labels.containerName: psmdb-operator] 2023-10-13T06:21:15.312Z INFO Setting safe defaults, updating replset size to meet the minimum number of replicas {"controller": "psmdbrestore-controller", "object": {"name":"restore-pitr","namespace":"obp-cms-portal"}, "namespace": "obp-cms-portal", "name": "restore-pitr", "reconcileID": "b4d7a745-56d5-4d7d-a32a-cc83417402a3", "oldSize": 1, "newSize": 3}
ERROR 2023-10-13T06:21:15.314034464Z [resource.labels.containerName: psmdb-operator] 2023-10-13T06:21:15.313Z INFO Waiting for statefulsets to be ready before restore {"controller": "psmdbrestore-controller", "object": {"name":"restore-pitr","namespace":"obp-cms-portal"}, "namespace": "obp-cms-portal", "name": "restore-pitr", "reconcileID": "b4d7a745-56d5-4d7d-a32a-cc83417402a3", "ready": false}
ERROR 2023-10-13T06:21:18.621679745Z [resource.labels.containerName: psmdb-operator] 2023-10-13T06:21:18.621Z ERROR Reconciler error {"controller": "psmdb-controller", "object": {"name":"mongodb-psmdb-db","namespace":"obp-cms-portal"}, "namespace": "obp-cms-portal", "name": "mongodb-psmdb-db", "reconcileID": "a44dfc20-4111-4fc3-a0fa-3995d9f55e28", "error": "reconcile StatefulSet for rs0: failed to run smartUpdate: failed to apply changes: wait pod restart: reach pod wait limit", "errorVerbose": "reconcile StatefulSet for rs0: failed to run smartUpdate: failed to apply changes: wait pod restart: reach pod wait limit\ngithub.com/percona/percona-server-mongodb-operator/pkg/controller/perconaservermongodb.(*ReconcilePerconaServerMongoDB).Reconcile\n\t/go/src/github.com/percona/percona-server-mongodb-operator/pkg/controller/perconaservermongodb/psmdb_controller.go:423\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.1/pkg/internal/controller/controller.go:119\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.1/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.1/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.1/pkg/internal/controller/controller.go:227\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1598"}
ERROR 2023-10-13T06:21:18.621750325Z [resource.labels.containerName: psmdb-operator] sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
ERROR 2023-10-13T06:21:18.621757035Z [resource.labels.containerName: psmdb-operator] /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.1/pkg/internal/controller/controller.go:329
ERROR 2023-10-13T06:21:18.621761635Z [resource.labels.containerName: psmdb-operator] sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
ERROR 2023-10-13T06:21:18.621765495Z [resource.labels.containerName: psmdb-operator] /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.1/pkg/internal/controller/controller.go:266
ERROR 2023-10-13T06:21:18.621769455Z [resource.labels.containerName: psmdb-operator] sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
ERROR 2023-10-13T06:21:18.621773475Z [resource.labels.containerName: psmdb-operator] /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.1/pkg/internal/controller/controller.go:227
ERROR 2023-10-13T06:21:18.622825145Z [resource.labels.containerName: psmdb-operator] 2023-10-13T06:21:18.622Z INFO Setting safe defaults, updating replset size to meet the minimum number of replicas {"controller": "psmdb-controller", "object": {"name":"mongodb-psmdb-db","namespace":"obp-cms-portal"}, "namespace": "obp-cms-portal", "name": "mongodb-psmdb-db", "reconcileID": "a5202387-b842-44f1-b323-62a30299e4f4", "oldSize": 1, "newSize": 3}
ERROR 2023-10-13T06:21:18.624365005Z [resource.labels.containerName: psmdb-operator] 2023-10-13T06:21:18.624Z INFO StatefulSet is changed, starting smart update {"controller": "psmdb-controller", "object": {"name":"mongodb-psmdb-db","namespace":"obp-cms-portal"}, "namespace": "obp-cms-portal", "name": "mongodb-psmdb-db", "reconcileID": "a5202387-b842-44f1-b323-62a30299e4f4", "name": "mongodb-psmdb-db-rs0"}
==================== backup-agent logs ========================
ERROR 2023-10-13T06:19:53.356172875Z [resource.labels.containerName: backup-agent] 2023-10-13T06:19:53.000+0000 I [pitr] got done signal, stopping
ERROR 2023-10-13T06:19:56.144466034Z [resource.labels.containerName: backup-agent] 2023-10-13T06:19:56.000+0000 I [pitr] created chunk 2023-10-13T06:15:22 - 2023-10-13T06:19:53
ERROR 2023-10-13T06:19:56.152562769Z [resource.labels.containerName: backup-agent] 2023-10-13T06:19:56.000+0000 I [pitr] pausing/stopping with last_ts 2023-10-13 06:19:53 +0000 UTC
ERROR 2023-10-13T06:21:56.185776225Z [resource.labels.containerName: backup-agent] 2023/10/13 06:21:56 [entrypoint] got terminated, shutting down
ERROR 2023-10-13T06:21:56.186187662Z [resource.labels.containerName: backup-agent] 2023/10/13 06:21:56 [entrypoint] kill `pbm-agent` (37): <nil>
====================== psmdb logs =====================================
ERROR 2023-10-13T06:22:27.464349550Z [resource.labels.containerName: mongod] + log=/tmp/pbm-agent.log
ERROR 2023-10-13T06:22:27.470213081Z [resource.labels.containerName: mongod] + /opt/percona/ps-entry.sh --bind_ip_all --auth --dbpath=/data/db --port=27017 --replSet=rs0 --storageEngine=wiredTiger --relaxPermChecks --sslAllowInvalidCertificates --clusterAuthMode=x509 --enableEncryption --encryptionKeyFile=/etc/mongodb-encryption/encryption-key --wiredTigerCacheSizeGB=0.43 --wiredTigerIndexPrefixCompression=true
ERROR 2023-10-13T06:22:27.470259514Z [resource.labels.containerName: mongod] + /opt/percona/pbm-agent
ERROR 2023-10-13T06:22:27.548080541Z [resource.labels.containerName: mongod] + exec mongod --bind_ip_all --auth --dbpath=/data/db --port=27017 --replSet=rs0 --storageEngine=wiredTiger --relaxPermChecks --clusterAuthMode=x509 --enableEncryption --encryptionKeyFile=/etc/mongodb-encryption/encryption-key --wiredTigerCacheSizeGB=0.43 --wiredTigerIndexPrefixCompression=true --tlsMode preferTLS --tlsCertificateKeyFile /tmp/tls.pem --tlsAllowInvalidCertificates --tlsClusterFile /tmp/tls-internal.pem --tlsCAFile /etc/mongodb-ssl/ca.crt --tlsClusterCAFile /etc/mongodb-ssl-internal/ca.crt
INFO 2023-10-13T06:22:27.613215873Z [resource.labels.containerName: mongod] {"attr":{…}, "c":"NETWORK", "ctx":"-", "id":4913010, "msg":"Certificate information", "s":"I", "t":{…}}
Below is the status of PITR restore
Name: restore-pitr
Namespace: obp-cms-portal
Labels: <none>
Annotations: <none>
API Version: psmdb.percona.com/v1
Kind: PerconaServerMongoDBRestore
Metadata:
Creation Timestamp: 2023-10-13T06:19:44Z
Generation: 1
Managed Fields:
API Version: psmdb.percona.com/v1
Fields Type: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.:
f:kubectl.kubernetes.io/last-applied-configuration:
f:spec:
.:
f:backupName:
f:clusterName:
f:pitr:
.:
f:date:
f:type:
Manager: kubectl-client-side-apply
Operation: Update
Time: 2023-10-13T06:19:44Z
API Version: psmdb.percona.com/v1
Fields Type: FieldsV1
fieldsV1:
f:status:
.:
f:pbmName:
f:pitrTarget:
f:state:
Manager: percona-server-mongodb-operator
Operation: Update
Subresource: status
Time: 2023-10-13T06:23:26Z
Resource Version: 95643369
UID: ad0bbcfd-e954-491d-a563-a8af40a42337
Spec:
Backup Name: cron-mongodb-psmdb-db-20231013061500-xnwlq
Cluster Name: mongodb-psmdb-db
Pitr:
Date: 2023-10-13 06:00:22
Type: date
Status:
Pbm Name: 2023-10-13T06:23:26.694134951Z
Pitr Target: 2023-10-13T06:00:22
State: requested
Events: <none>
Appreciate your inputs.
Regards,
Swwapnil Yadav