-
Notifications
You must be signed in to change notification settings - Fork 617
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
[cinder-csi-plugin] Programatically create cinder backups from Kubernetes via CSI #2473
Comments
https://github.com/kubernetes/cloud-provider-openstack/blob/master/docs/cinder-csi-plugin/features.md#volume-snapshots is this what you are looking for? |
conversation in slack: currently cpo supports volume snapshots. Instead we could have also volume backups. So the full workflows could be: take snapshot:
restore snapshot:
just in case: what is difference between volume backup and volume snapshot? The difference is that volume snapshot is stored in block storage and volume backup can be stored to object storage (swift/s3 etc). |
I knew nova backup is different to nova snapshot, but not sure volume snapshot/backup |
backup has its own API: https://docs.openstack.org/api-ref/block-storage/v3/index.html#backups-backups |
@Sebastian-RG will you submit a PR for this (with the above info we got from @zetaab and @kayrus )? |
Hi! Yes, I will submit it tomorrow |
Hi. I've been having some issues with creating a volume from a backup. The flow goes like this:
If anyone has any idea why the last part happens I would be very grateful for the help. I've been stuck on this bit for almost a week 😓 Some things I think may cause this:
This is my current code master...Sebastian-RG:cloud-provider-openstack:master |
As it turns out, when you create a volume from a backup via Gophercloud, the returned volume object does not include the backupID. This caused the Sending the PR now :) |
Signed-off-by: Sebastian-RG <fullmetalliferous@gmail.com>
Signed-off-by: Sebastian-RG <fullmetalliferous@gmail.com>
Signed-off-by: Sebastian-RG <fullmetalliferous@gmail.com>
Signed-off-by: Sebastian-RG <fullmetalliferous@gmail.com>
Is this a BUG REPORT or FEATURE REQUEST?:
/kind feature
What happened:
Currently, there is no method to programmatically create volume backups from K8S.
This disallows for Kubernetes administrators to easily make sure their data is redundantly stored.
What you expected to happen:
I believe the best option would be to do something similar to what Longhorn does.
By setting the value on the volumesnapshotclass' parameters.type to
snapshot
orbackup
, you can choose between linkingthe volumesnapshot object to a volume snapshot or a backup.
How to reproduce it:
Not applicable
Anything else we need to know?:
I would love to contribute the necessary changes to the project
Environment:
The text was updated successfully, but these errors were encountered: