TMC - Velero Restore - Error - Unsupported value: "RestoreVolumeInfo": supported values
search cancel

TMC - Velero Restore - Error - Unsupported value: "RestoreVolumeInfo": supported values

book

Article ID: 388505

calendar_today

Updated On:

Products

VMware Tanzu Mission Control

Issue/Introduction

After attempting a restore of a cluster backed up using Velero (deployed via TMC)
An error is observed when attempting Velero restore on a cluster, see error below:

Restore PVs:  auto

              <error getting restore volume info: DownloadRequest.velero.io "xxxxxx-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" is invalid: spec.target.kind: Unsupported value: "RestoreVolumeInfo": supported values

: "BackupLog", "BackupContents", "BackupVolumeSnapshots", "BackupItemOperations", "BackupResourceList", "BackupResults", "RestoreLog", "RestoreResults", "RestoreResourceList", "RestoreItemOperations", "CSIBackupVolum

eSnapshots", "CSIBackupVolumeSnapshotContents", "BackupVolumeInfos">

Environment

Velero CLI - client v1.15.2 , server v1.13.2
TMC Saas
TKGs

Cause

A mismatch of the Velero CLI client and server versioning.

As per this git the issue can occur when there is a difference in client and server Velero CLI versioning.

Resolution

To update the Velero client version to same as the Server so that Velero Client and Server versioning are the same.

In this case versionings were as per below:

Client:
        Version: v1.15.2
        Git commit: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Server:
        Version: v1.13.2
# WARNING: the client version does not match the server version. Please update server

Note there is a warning about the client version not matching the server version.

As the Velero CLI server is managed by TMC the version cannot be changed.

The fix is for to uninstall the client Velero CLI of v1.15.2 and install v1.13.2 (same as Velero server CLI).

Following this retry the Velero restore.