Skip to content

Velero restore with restic does not properly restore file #4992

Open
@benjaminxie

Description

What steps did you take and what happened:
I am restoring my cluster and, after exec-ing into a pod, finding that a mounted file is not being properly restored. Instead of finding my file at the expected path, I find a directory with the same name. Moreover, in the output of velero restore describe, the error message includes open <file path>: is a directory.

What did you expect to happen:
After restoring the cluster, my pod's container should still have the file mounted at the expected path.

The following information will help us better understand what's going on:

If you are using velero v1.7.0+:
bundle-2022-06-13-18-54-57.tar.gz

Anything else you would like to add:
This behavior only happens when I restore using Velero v1.7.0 and v1.8.1 and not Velero v1.6.3. Thus, I thought this was related to this restic issue, however Velero v1.6.3 is already past the problematic version of restic specified in the linked issue.

Environment:

$ velero version
Client:                                                                                                                                                                                                        
       Version: v1.7.0
       Git commit: 9e52260568430ecb77ac38a677ce74267a8c2176
Server:                                                                                                                                                                                                        
       Version: v1.7.0    


$ velero client config get features
features: <NOT SET>


$ kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.0", GitCommit:"4ce5a8954017644c5420bae81d72b09b735c21f0", GitTreeState:"clean", BuildDate:"2022-05-03T13:46:05Z", GoVersion:"go1.18.1", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.0", GitCommit:"4ce5a8954017644c5420bae81d72b09b735c21f0", GitTreeState:"clean", BuildDate:"2022-05-04T00:12:02Z", GoVersion:"go1.18.1", Compiler:"gc", Platform:"linux/amd64"} 

$ istioctl version
client version: 1.14.0
control plane version: 1.14.0
data plane version: 1.14.0 (4 proxies)

Using AKS.

Vote on this issue!

This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.

  • 👍 for "I would like to see this bug fixed as soon as possible"
  • 👎 for "There are more important bugs to focus on right now"

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions