SUSE Support

Here When You Need Us

Restore fails with metadata.deletionGracePeriodSeconds: Invalid value: 0: field is immutable

This document (000020786) is provided subject to the disclaimer at the end of this document.

Environment

Rancher backup <  2.1.3

Situation

Restore of backup fails with error:

Error restoring namespaced resources [error restoring rancher-k3s-upgrader of type project.cattle.io/v3, Resource=apps: restoreResource: err updating resource App.project.cattle.io "rancher-k3s-upgrader" is invalid: metadata.deletionGracePeriodSeconds: Invalid value: 0: field is immutable]

Resolution

There are two ways to resolve this:

1. Upgrade to Rancher-backup 2.1.3 or higher.

2. Extract the backup archive, search for resources that have a deletingGracePeriod field. Remove these resources manually and package the archive again. You can either remove just the metadata field or remove the entire resource. It’s a resource that’s supposed to be deleted so will have no negative effects. 

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020786
  • Creation Date: 26-Sep-2022
  • Modified Date:30-Mar-2023
    • SUSE Rancher

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.