-
Notifications
You must be signed in to change notification settings - Fork 539
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
rbd: VolumeGroupSnapshot support #4502
Draft
nixpanic
wants to merge
20
commits into
ceph:devel
Choose a base branch
from
nixpanic:rbd/group-snapshot
base: devel
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
+1,830
−69
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nixpanic
force-pushed
the
rbd/group-snapshot
branch
from
March 18, 2024 17:15
25e7f97
to
65c17e7
Compare
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions. |
nixpanic
force-pushed
the
rbd/group-snapshot
branch
3 times, most recently
from
June 25, 2024 10:57
57e136d
to
6d85b34
Compare
This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏 |
nixpanic
force-pushed
the
rbd/group-snapshot
branch
from
August 22, 2024 13:00
6d85b34
to
d60f341
Compare
nixpanic
force-pushed
the
rbd/group-snapshot
branch
from
August 30, 2024 15:04
d60f341
to
3722692
Compare
nixpanic
force-pushed
the
rbd/group-snapshot
branch
from
September 26, 2024 13:32
3722692
to
0ca9915
Compare
/test ci/centos/mini-e2e-helm/k8s-1.30 |
nixpanic
force-pushed
the
rbd/group-snapshot
branch
2 times, most recently
from
October 2, 2024 16:39
3e5713f
to
5c9ae9f
Compare
This was referenced Oct 3, 2024
@Mergifyio refresh |
✅ Pull request refreshed |
nixpanic
force-pushed
the
rbd/group-snapshot
branch
from
October 4, 2024 16:01
5c9ae9f
to
b55ddb2
Compare
This was referenced Oct 10, 2024
nixpanic
force-pushed
the
rbd/group-snapshot
branch
from
October 10, 2024 16:12
b55ddb2
to
9c2fdec
Compare
This was referenced Oct 11, 2024
nixpanic
force-pushed
the
rbd/group-snapshot
branch
from
October 11, 2024 15:47
9c2fdec
to
b77fb50
Compare
Signed-off-by: Niels de Vos <[email protected]>
The rbdSnapshot/rbdImage object implements all functions for a useful Snapshot interface. The rbd.Manager will be able to use this for providing VolumeGroupSnapshot support. Signed-off-by: Niels de Vos <[email protected]>
…ot found Signed-off-by: Niels de Vos <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
Each object is responsible for maintaining a connection to the journal. By sharing a single journal, cleanup of objects becomes more complex as the journal is used in deferred functions and only the last should destroy the journal connection resources. Signed-off-by: Niels de Vos <[email protected]>
The NewSnapshotByID() function makes it possible to clone a new Snapshot from an existing RBD-image and the ID of an RBD-snapshot on that image. This will be used by the VolumeGroupSnapshot feature, where the ID of an RBD-snapshot is obtained for the RBD-snapshot on the RBD-images. Signed-off-by: Niels de Vos <[email protected]>
When the rbd.Manager creates a VolumeGroupSnapshot, each RBD-snapshot that is created as part of the RBD-group needs to be cloned into its own RBD-image that will be used as a CSI Snapshot. The VolumeGroup.CreateSnapshots() creates the RBD-group snapshot and returns a list of the Snapshot structs. Signed-off-by: Niels de Vos <[email protected]>
The VolumeGroupSnapshot type will be used by the rbd.Manager to create, inspect and delete VolumeGroupSnapshos. Signed-off-by: Niels de Vos <[email protected]>
A (CSI) VolumeGroupSnapshot object contains references to Snapshot IDs (or CSI Snapshot handles). In order to work with a VolumeGroupSnapshot struct, the Snapshot IDs need to be resolved into rbdSnapshot structs. Signed-off-by: Niels de Vos <[email protected]>
Implement the CreateVolumeGroupSnapshot for the rbd.Manager. A Group Controller Server can use the rbd.Manager to create VolumeGroupSnapshots in an easy an idempotent way. Signed-off-by: Niels de Vos <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
When the GroupSnapGetInfo go-ceph function is supported by librbd, the Group Controller Servive and VolumeGroupSnapshot capabilities can be exposed to the Container Orchestrator. Signed-off-by: Niels de Vos <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
nixpanic
force-pushed
the
rbd/group-snapshot
branch
from
October 14, 2024 16:37
b77fb50
to
0c356f7
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Posting early for initial reviewing. Some parts can be split from this large PR into smaller pieces.
Notable changes:
internal/rbd_types
package with interfaces so that objects can be passed around cleanerinternal/rbd/volume.go
implementing the newVolume
interface forrbdImage
internal/rbd_group
package for all RBD-group functionalitiesinternal/rbd/group_controller.go
for all CSI VolumeGroup service proceduresCommits in the current form will mostly change majorly. Reviewing per commit is not recommended, only check the files that you are interested in 😉
Depends-on: #4794
Depends-on: #4870
Depends-on: #4871
Depends-on: #4884
Depends-on: #4885
Depends-on: #4898
Depends-on: #4902
Depends-on: #4904
Show available bot commands
These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:
/retest ci/centos/<job-name>
: retest the<job-name>
after unrelatedfailure (please report the failure too!)