Skip to content

Restore fails with "Malformed version: ''" when Restore CR is created with cluster #2243

@shimonewman

Description

@shimonewman

Report

Getting this error when trying to restore a cluster from backup
get pbm config: get storage config: compare pbm-agent version: parse status.backupVersion: Malformed version: ''

Backup CR is missing the subresource backupVersion option in CR

More about the problem


              app.kubernetes.io/name=percona-server-mongodb                                                                                                                                                                                                │
│               app.kubernetes.io/part-of=percona-server-mongodb                                                                                                                                                                                             │
│               percona.com/backup-ancestor=daily-mongodb-backup                                                                                                                                                                                             │
│               percona.com/backup-type=cron                                                                                                                                                                                                                 │
│               percona.com/cluster=fra1                                                                                                                                                                                                                     │
│ Annotations:  <none>                                                                                                                                                                                                                                       │
│ API Version:  psmdb.percona.com/v1                                                                                                                                                                                                                         │
│ Kind:         PerconaServerMongoDBBackup                                                                                                                                                                                                                   │
│ Metadata:                                                                                                                                                                                                                                                  │
│   Creation Timestamp:  2026-02-16T10:30:00Z                                                                                                                                                                                                                │
│   Finalizers:                                                                                                                                                                                                                                              │
│     percona.com/delete-backup                                                                                                                                                                                                                              │
│     internal.percona.com/release-lock                                                                                                                                                                                                                      │
│   Generate Name:     cron-fra1-20260216103000-                                                                                                                                                                                                             │
│   Generation:        1                                                                                                                                                                                                                                     │
│   Resource Version:  215059065                                                                                                                                                                                                                             │
│   UID:               d665b835-533b-4c04-b65a-d0fc913c0825                                                                                                                                                                                                  │
│ Spec:                                                                                                                                                                                                                                                      │
                                                                                                                                                                                                                         │
│   Compression Type:  gzip                                                                                                                                                                                                                                  │
│   Storage Name:      backblaze                                                                                                                                                                                                                             │
│   Type:              logical                                                                                                                                                                                                                               │
│ Status:                                                                                                                                                                                                                                                    │
│   Completed:        2026-02-16T10:30:12Z                                                                                                                                                                                                                   │
│   Destination:      s3://cloud-backups/mongo/2026-02-16T10:30:00Z                                                                                                                                                                  │
│   Last Transition:  2026-02-16T10:30:12Z                                                                                                                                                                                                                   │
│   Last Write At:    2026-02-16T10:30:10Z                                                                                                                                                                                                                   │
│   Pbm Name:         2026-02-16T10:30:00Z                                                                                                                                                                                                                   │
│   Pbm Pod:          mongo-0-0.mongo-0.mongodb.svc.cluster.local:27017                                                                                                                                                                   │
│   Pbm Pods:                                                                                                                                                                                                                                                │
│     mongo-0:  mongo-0-0.mongo-0.mongodb.svc.cluster.local:27017                                                                                                                                                                         │
│   Replset Names:                                                                                                                                                                                                                                           │
│     mongo-0

Steps to reproduce

  1. Use a scheduled/cron backup so that a PerconaServerMongoDBBackup CR exists.
    and confirm that this Backup CR has no or empty status.backupVersion after the backup completes
  2. Create a new cluster that will be restored from that backup.

Versions

Operator: Percona Server for MongoDB Operator (PSMDB)
MongoDB: Percona Server for MongoDB 8.0.17-6
PBM: percona/percona-backup-mongodb:2.12.0
Kubernetes: v1.33.6

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions