-
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
Velero doesn't support OpenStack CSI topology #6440
Comments
Although the |
@reasonerjt it's easy to implement, but the proper way to do this is to to extend the interface, which would cause all plugins to be adjusted. I'm not against to submit the PR, but I think that this is something that maintainer should discuss and approve first. |
Velero-plugin-for-openstack provides direct support for swift (object store plugin) and cinder (snapshots). Although in this case, it looks like all of the storage drivers in use for volumes are CSI-based. Would the CSI plugin be an option? The only downside is that until Velero 1.12, you won't get off-cluster backups of volumes, but it might be worth checking to see whether basic CSI snapshot functionality works with these volumes, because if it does, then the data movement currently scheduled for Velero 1.12 should work for you. |
@kayrus extending a plugin interface is a larger undertaking, requiring a new API version to be proposed, a new implementation of this API, and an adapter layer to allow existing plugins to continue to function without modification. See the work done in Velero 1.11 to support BackupItemActionV2 and RestoreItemActionV2. |
@sseago ok, let's keep a new interface for a long-term solution. As for the short-term, I think I can add a couple of common OpenStack CSI zone keys. |
@sseago it appeared that topology keys in OpenStack CIS are actually hardcoded, however the Manila driver name could be changed, fortunately it doesn't affect topology key. See a PR submitted, I hope it's clean and simple as much as possible. |
What steps did you take and what happened:
Create a backup with a snapshot using https://github.com/Lirt/velero-plugin-for-openstack plugin
See
level=info msg="zone info not available in nodeAffinity requirements"
in logs.What did you expect to happen:
Velero should have an ability to support OpenStack CSI topologies:
topology.cinder.csi.openstack.org/zone
topology.nfs.manila.csi.openstack.org/zone
topology.ceph.manila.csi.openstack.org/zone
topology.disk.csi.everest.io
from Huawei cloudIdeally it should be nice to extend the snapshotter plugin interface with the
GetVolumeTopologyKey
method. So each velero plugin can share the topology key it uses.See also:
velero/pkg/backup/item_backupper.go
Line 509 in bbef180
velero/pkg/backup/item_backupper.go
Lines 440 to 446 in bbef180
#103
Environment:
velero version
): 1.10.1velero client config get features
):features: <NOT SET>
kubectl version
): 1.25/etc/os-release
):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.
The text was updated successfully, but these errors were encountered: