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
librbd: group and snapshot cleanup #19990
Conversation
src/test/cli/rbd/help.t
Outdated
diff Print extents that differ since a | ||
previous snap, or image creation. | ||
disk-usage (du) Show disk usage stats for pool, image | ||
or snapshot |
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.
need a period(.
) at the end of the help message
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.
(unrelated to this PR)
7aa2a55
to
b3c8a4b
Compare
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
The methods are used by the luminous release of librbd but are essentially no-ops since group support was removed from the API. However, we need to prevent odd interactions once a new client creates a group and uses an older client to manipulate the image. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
When an image is added to a group, set the group op feature bit and when removed, clear the bit. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Added a new cls 'snapshot_get' method that retrieves all snapshot specific details to avoid the need to add a new cls method to retrieve each individual snapshot data field. The cls 'get_snapshot_namespace' method has been dropped since Luminous clients will treat that as a user-generated snapshot (and that's all that is supported by Luminous clients). The cls 'get_snapshot_timestamp' method has been deprecated and can be removed once <=Luminous clients are no longer supported. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
b3c8a4b
to
a5b0a8d
Compare
src/pybind/rbd/rbd.pyx
Outdated
rbd_group_info_cleanup(&info, sizeof(info)) | ||
return result | ||
|
||
def id(self): |
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.
@dillaman I suppose this redefinition of id()
method was added unintentionally here?
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.
Odd -- unintended indeed.
src/pybind/rbd/rbd.pyx
Outdated
|
||
* ``pool`` (int) - id of the group pool | ||
|
||
* ``name`` (ste) - name of the group |
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.
typo: s/ste/str/
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
a5b0a8d
to
9a93808
Compare
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
Enable the operations feature w/ group operation when an image is added to a group. Cleanup and normalize the API and CLI for groups. Add a simple method for retrieving snapshots from the OSDs.