Skip to content

librbd: add preliminary support for new operation feature bit - #19903

Merged
trociny merged 4 commits into
ceph:masterfrom
dillaman:wip-librbd-op-features
Jan 13, 2018
Merged

trociny merged 4 commits into
ceph:masterfrom
dillaman:wip-librbd-op-features

Conversation

@dillaman

Copy link
Copy Markdown

This feature bit will be used to disable operations (e.g. clone, snap create

The layering and data-pool features are enabled automatically
when striping or a data pool is specified, respectively. For
the 'rbd feature XYZ' command, hide all non-mutable features.

Signed-off-by: Jason Dillaman <[email protected]>
@dillaman
dillaman force-pushed the wip-librbd-op-features branch from 186f690 to efbe323 Compare January 12, 2018 03:38
Comment thread src/librbd/image/RefreshRequest.cc Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dillaman I am not sure I quite understand how it is going to be used. This looks like it should have been explained in the commit 3fe7a2a3 log message, which looks like truncated.

So operations_disabled is true, when m_op_features contains an unknown bit, i.e. we are an older client. Then we can't do any operations? Probably, I will need just to wait for the next PR to see a use case )

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I fixed the truncated commit message. The goal is to avoid introducing individual feature bits that break older clients when the older clients can still safely read and write to the image but they won't know how to properly handle some new feature. The two immediate examples will be (1) cloning v2 where snapshots will be unprotected so we cannot let an older client delete a clone that uses the new format and (2) image groups where we cannot let images be removed when they are part of a group w/o cleaning up.

Jason Dillaman added 3 commits January 12, 2018 08:12
This will initially be utilized to restrict older clients from
performing operations against an image if (1) it doesn't
support the new feature bit, or (2) doesn't support the specific
enabled op feature.

Signed-off-by: Jason Dillaman <[email protected]>

@trociny trociny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@trociny
trociny merged commit 79fbe60 into ceph:master Jan 13, 2018
@dillaman
dillaman deleted the wip-librbd-op-features branch January 13, 2018 13:00
epuertat added a commit to rhcs-dashboard/ceph that referenced this pull request Aug 3, 2018
Disable support for RBD_FEATURE_OPERATIONS in rbd controller (introduced
in PR: ceph#19903,
209f6fc)

Signed-off-by: Ernesto Puerta <[email protected]>
epuertat added a commit to rhcs-dashboard/ceph that referenced this pull request Aug 23, 2018
Disable support for RBD_FEATURE_OPERATIONS in rbd controller (introduced
in PR: ceph#19903,
209f6fc)

Signed-off-by: Ernesto Puerta <[email protected]>
epuertat added a commit to rhcs-dashboard/ceph that referenced this pull request Oct 1, 2018
Disable support for RBD_FEATURE_OPERATIONS in rbd controller (introduced
in PR: ceph#19903,
209f6fc)

Signed-off-by: Ernesto Puerta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants