-
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
rbd: add support for CloneImageByID() #1000
Conversation
Early feedback: can you please name the file after the feature and not a ceph version. This has caused confusion in the past (literally yesterday in #999) and isn't strictly needed. Something like |
cdb01f3
to
4596b70
Compare
The new rbd_clone4() API is only available in Squid and newer. Squid is not yet released, therefor it is required to use the container image from the Ceph CI registry. rbd_clone() is added in PR ceph/go-ceph#1000, that branch needs to be vendored as well.
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.
Minor typo, code generally looks ok.
6c99adc
to
1d1bac3
Compare
The new rbd_clone4() API is only available in Squid and newer. Squid is not yet released, therefor it is required to use the container image from the Ceph CI registry. rbd_clone() is added in PR ceph/go-ceph#1000, that branch needs to be vendored as well.
The new rbd_clone4() API is only available in Squid and newer. Squid is not yet released, therefor it is required to use the container image from the Ceph CI registry. rbd_clone() is added in PR ceph/go-ceph#1000, that branch needs to be vendored as well.
RBD image groups can be used to create consistent snapshots of all images that are part of the group. The new rbd_clone4() API makes it possible to create a new RBD image from a single snapshot that was created as part of the group snapshot. Signed-off-by: Niels de Vos <ndevos@ibm.com>
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.
lgtm, thanks.
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.
lgtm, thanks
RBD image groups can be used to create consistent snapshots of all images that are part of the group. The new rbd_clone4() API makes it possible to create a new RBD image from a single snapshot that was created as part of the group snapshot.
Note about testing status
The
rbd_clone4()
API has only just been backported to Squid for version 19.1.1. There are no released container images available yet that contain this new API, only theceph-ci/ceph:main
image seems to have it.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.