-
Notifications
You must be signed in to change notification settings - Fork 256
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
[WIP]Adding support mirror group APIs #1010
base: master
Are you sure you want to change the base?
Conversation
rbd/group.go
Outdated
@@ -110,7 +110,9 @@ func GroupImageAdd(groupIoctx *rados.IOContext, groupName string, | |||
cephIoctx(groupIoctx), | |||
cGroupName, | |||
cephIoctx(imageIoctx), | |||
cImageName) | |||
cImageName, | |||
C.uint32_t(0), |
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.
This change is part of the in-progress ceph PR that has mirror group APIs
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.
Hmmm. I don't think that's going to be an acceptable kind of change to an existing public API. It would retroactively break working code. That PR is enormous but I guess I'll have to look through it and raise that concern over there. Normally, I'd expect a new api function to be added (say "foo_bar2" or whatever).
The fact that this is still touching an existing stable API is a warning sign.
rbd/group.go
Outdated
@@ -135,7 +137,8 @@ func GroupImageRemove(groupIoctx *rados.IOContext, groupName string, | |||
cephIoctx(groupIoctx), | |||
cGroupName, | |||
cephIoctx(imageIoctx), | |||
cImageName) | |||
cImageName, | |||
C.uint32_t(0)) |
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.
This change is part of the in-progress ceph PR that has mirror group APIs
rbd/group.go
Outdated
@@ -160,7 +163,8 @@ func GroupImageRemoveByID(groupIoctx *rados.IOContext, groupName string, | |||
cephIoctx(groupIoctx), | |||
cGroupName, | |||
cephIoctx(imageIoctx), | |||
cid) | |||
cid, | |||
C.uint32_t(0)) |
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.
This change is part of the in-progress ceph PR that has mirror group APIs
Why is this a new PR? What is going to happen with #1009? |
I closed that one. It was for |
bc8303b
to
0e5f798
Compare
0a69751
to
590037e
Compare
@sp98 as a heads up I'm not going to be monitoring the content of the PR until the upstream changes settle down and are merged. Please feel free to use this PR as a playground for testing and ask specific questions as needed. I recommend moving it to draft. |
|
||
// MirrorGroupStatusState is used to indicate the state of a mirrored group | ||
// within the site status info. | ||
type MirrorGroupStatusState int64 |
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.
add String() Interface for this one as we have MirrorImageStatusState as well.
// GlobalMirrorGroupStatus contains information pertaining to the global | ||
// status of a mirrored group. It contains general information as well | ||
// as per-site information stored in the SiteStatuses slice. | ||
type GlobalMirrorGroupStatus struct { |
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.
add LocalStatus
method like we have one for a mirror for this one.
// MirrorGroupStatusStateError is equivalent to MIRROR_GROUP_STATUS_STATE_ERROR | ||
MirrorGroupStatusStateError = MirrorGroupStatusState(C.MIRROR_GROUP_STATUS_STATE_ERROR) | ||
// MirrorGroupStatusStateStartingReplay is equivalent to MIRROR_GROUP_STATUS_STATE_STARTING_REPLAY | ||
MirrorGroupStatusStateStartingReplay = MirrorGroupStatusState(C.MIRROR_GROUP_STATUS_STATE_STARTING_REPLAY) |
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.
we are missing a const for syncing here like MirrorImageStatusStateSyncing
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.
added the comment in ceph PR here - https://github.com/ceph/ceph/pull/53793/files#r1705148133
0d4d52f
to
8990cc8
Compare
7edd0f8
to
fda57e9
Compare
Signed-off-by: sp98 <sapillai@redhat.com>
|
This Pull Request has been automatically marked as stale because it has not had recent activity. It will be closed in 21 days if no further activity occurs. Remember, a closed PR can always be reopened. Thank you for your contribution. |
Add support for the Mirror Group APIs that are part of an open Ceph PR
Following APIs will be supported:
Checklist
//go:build ceph_preview
make api-update
to record new APIsNew or infrequent contributors may want to review the go-ceph Developer's Guide including the section on how we track API Status and the API Stability Plan.
The go-ceph project uses mergify. View the mergify command guide for information on how to interact with mergify. Add a comment with
@Mergifyio
rebase
to rebase your PR when github indicates that the PR is out of date with the base branch.Depends-on: ceph/ceph#53793