-
Notifications
You must be signed in to change notification settings - Fork 27
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
support for creating backups to S3 via snapshot mechanism #142
Conversation
d92df25
to
6b3b76b
Compare
4067bfe
to
80a0fad
Compare
fbadc42
to
7dc8761
Compare
I won't be able to review this immediately, but I will get to it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have much insight into how this fits into the CSI driver as a whole, but the code looks good. Just a bunch of minor points.
bd9a102
to
638b1de
Compare
In addition to the normal "in-cluster" snapshots, the user can also select backups to S3 by providing parameters when creating the snapshot. The parameters can be used to set up a LINSTOR "remote" object, which represents a S3 endpoint. Any snapshot using those parameters will be created using LINSTORs backup feature. Restoring from a snapshot that only exists on a remote location does works, as long as the "remote" is configured beforehand. The CSI spec does not pass any parameters when registring an existing snapshot. This feature requires LINSTOR 1.18.0 to work. Previous versions did not allow for customizing the snapshot name. This made it impossible to create an implementation that adheres to the CSI spec, as there was no way to map the requested snapshot name to any form of stable snapshot ID. Signed-off-by: Moritz "WanzenBug" Wanzenböck <moritz.wanzenboeck@linbit.com>
@WanzenBug am I right that this code uses old "snapshot shipping" mechanism which is considered deprecated?
|
It seems it uses new backups API |
Yeah, it only uses the new backups API. |
In addition to the normal "in-cluster" snapshots, the user can also select
backups to S3 by providing parameters when creating the snapshot.
The parameters can be used to set up a LINSTOR "remote" object, which
represents a S3 endpoint. Any snapshot using those parameters will be
created using LINSTORs backup feature.
Restoring from a snapshot that only exists on a remote location does works,
as long as the "remote" is configured beforehand. The CSI spec does not
pass any parameters when registring an existing snapshot.
This feature requires LINSTOR 1.18.0 to work. Previous versions did not
allow for customizing the snapshot name. This made it impossible to create
an implementation that adheres to the CSI spec, as there was no way to
map the requested snapshot name to any form of stable snapshot ID.