-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Back up VolumeSnapshotContents into backup tarball #1566
Comments
Is this only necessary if you're restoring into a fresh cluster (either all your objs got deleted or it's a different cluster entirely)? Or is this needed for the "i deleted my namespace, now i want to restore it" use case too? If it's only for the fresh cluster use case, we could opt to just not support that for the prototype. We should think about how important it is. |
The VolumeSnapshotContents appear to get deleted with a VolumeSnapshot, so deleting the namespace does indeed destroy them. I’ll dig for the code on this, but that was observed behavior that led to this issue. |
Ah, lame. Seems like they weren't really designing with a DR scenario in mind? In any case, if we can come up with a couple additional plugins that handle this, that's 💯for prototype. |
See the following session - VolumeSnapshotContents do indeed get deleted with a namespace going away. It seems to be because of the I'll do some experimentation, as we'll need to capture the VSC after the VolumeSnapshot is done. I may just do a wait for it in the snapshotter plugin for the prototype for now.
|
Doing some more research, you can set a In addition, it appears the the underlying, provider snapshots are retained when This is not the default, so I'll make sure our instructions include it. |
Dear all Are there any news on this issue? Cheers |
The current CSI snapshotter plugin will create a VolumeSnapshot for a given PVC, however the VolumeSnapshot and associated VolumeSnapshotContents (and possibly the VolumeSnapshotClass) will need to be backed up into the tarball in order to actually restore the volume.
VolumeSnapshotContents are a cluster-scoped resource, so the logic here should be similar to walking from PVCs to PVs, and may be a separate plugin.
The text was updated successfully, but these errors were encountered: