Skip to content

squid: mds: check relevant caps for fs include root_squash - #57342

Merged
batrick merged 13 commits into
ceph:squidfrom
batrick:wip-65853-squid
May 23, 2024
Merged

batrick merged 13 commits into
ceph:squidfrom
batrick:wip-65853-squid

Conversation

@batrick

@batrick batrick commented May 7, 2024

Copy link
Copy Markdown
Member

@batrick
batrick requested review from a team as code owners May 7, 2024 19:59
@batrick batrick added this to the squid milestone May 7, 2024
@batrick batrick added the cephfs Ceph File System label May 7, 2024
@batrick batrick modified the milestones: squid, v19.1.0 May 7, 2024
@batrick

batrick commented May 8, 2024

Copy link
Copy Markdown
Member Author

jenkins test make check

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@batrick

batrick commented May 17, 2024

Copy link
Copy Markdown
Member Author

@batrick batrick modified the milestones: v19.1.0, v19.1.1 May 17, 2024
batrick added 11 commits May 21, 2024 12:18
For testing purposes.

Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit d9239f9)
So we can just pass the caller's kwargs to update_attrs.

Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit 597ff3c)
So we can pass mntargs.

Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit afcbfc0)
Where the client has root_squash for one cap but not for another. The fs
without root_squash should not necessarily reject the client.

Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit bccc8ce)

Conflicts:
	qa/tasks/cephfs/test_admin.py: missing test
Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit 247b4fe)
When denying client reconnects because the MDS caps include root_squash and the
client features do not include CEPHFS_FEATURE_MDS_AUTH_CAPS_CHECK, ensure those
caps are only for the file system the MDS is joined to.

Fixes: https://tracker.ceph.com/issues/65733
Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit f79ae86)
There is a "client_count" metadata on the health warning that apparently was
intended to be used for aggregating warnings but never was. Add a TODO item for
that.

Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit 6517b70)
Rather than evict all clients lacking this feature bit, raise a health error
that pushes the administrator to address it. This avoids the surprise of having
all affected clients suddenly evicted in the cluster.

Fixes: https://tracker.ceph.com/issues/65733
Fixes: 954ed30
Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit 66ff5c9)
Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit 9d0ab23)
Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit b810bc9)
Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit 79ba897)
batrick added 2 commits May 21, 2024 12:18
Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit 536b47c)
…rning and feature bit

Signed-off-by: Patrick Donnelly <[email protected]>
(cherry picked from commit e70f005)
@batrick
batrick force-pushed the wip-65853-squid branch from e5b87e0 to d587f5c Compare May 21, 2024 16:19
@batrick

batrick commented May 21, 2024

Copy link
Copy Markdown
Member Author

minor rebase to fix pending release note conflict

@batrick

batrick commented May 22, 2024

Copy link
Copy Markdown
Member Author

jenkins test make check

@batrick

batrick commented May 22, 2024

Copy link
Copy Markdown
Member Author

jenkins test api

@batrick batrick left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@batrick

batrick commented May 22, 2024

Copy link
Copy Markdown
Member Author

Tests in this PR ran successfully in /teuthology/pdonnell-2024-05-20_15:44:59-fs-wip-pdonnell-testing-20240517.203521-squid-debug-distro-default-smithi/7715650/teuthology.log

ultimate failure was for other reasons.

@batrick

batrick commented May 22, 2024

Copy link
Copy Markdown
Member Author

Ready to merge when jenkins tests pass.

@batrick
batrick merged commit 081c73b into ceph:squid May 23, 2024
@batrick
batrick deleted the wip-65853-squid branch May 23, 2024 00:58
afreen23 pushed a commit to rhcs-dashboard/ceph that referenced this pull request Jul 29, 2026
* refs/pull/57342/head:
	PendingReleaseNotes: add note on the client incompatibility health warning and feature bit
	doc/cephfs: add client_mds_auth_caps client feature bit
	doc/cephfs: add missing client feature bits
	doc/cephfs: document MDS_CLIENTS_BROKEN_ROOTSQUASH health error
	qa: add tests for MDS_CLIENTS_BROKEN_ROOTSQUASH
	mds: raise health warning if client lacks feature for root_squash
	mon/MDSMonitor: add note about missing metadata inclusion
	mds: check relevant caps for fs include root_squash
	mds: refactor out fs_name match in MDSAuthCaps
	qa: test for root_squash with multiple caps
	qa: pass kwargs to mount from remount
	qa: simplify update_attrs and only update relevant keys
	client: allow overriding client features

Reviewed-by: Anthony D Atri <[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