Skip to content

client: two fix for checking mds auth access in client side#53887

Merged
rishabh-d-dave merged 2 commits intoceph:mainfrom
lxbsz:wip-fix-check-access
Nov 7, 2023
Merged

client: two fix for checking mds auth access in client side#53887
rishabh-d-dave merged 2 commits intoceph:mainfrom
lxbsz:wip-fix-check-access

Conversation

@lxbsz
Copy link
Member

@lxbsz lxbsz commented Oct 9, 2023

Fixes: #48027 (comment)
Fixes: #48027 (comment)

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@github-actions github-actions bot added the cephfs Ceph File System label Oct 9, 2023
@rishabh-d-dave rishabh-d-dave added wip-rishabh-testing Rishabh's testing label and removed wip-rishabh-testing Rishabh's testing label labels Oct 12, 2023
Copy link
Member

@gregsfortytwo gregsfortytwo left a comment

Choose a reason for hiding this comment

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

Let's adjust which code includes the mount point in the path string.

I would really like to be able to export the make_path_string() symbol via libcephfs for consumption, but we don't need to make it that robust right now.

lxbsz added 2 commits October 19, 2023 10:24
The mountpoint's root ino# possibly not be the full CephFS
filesystem root, it's just the mountpoint of this particular client.
Just prepend the mountpoint path to the full path.

Introduced-by: c1bf8d8 client: check the cephx mds auth access for setattr
Introduced-by: ce21659 client: check the cephx mds auth access for open
Fixes: ceph#48027 (comment)
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Just in case we cannot link all the way to our mount point we will
force to do sync requests instead and let the MDS do the auth access
check.

Introduced-by: fd7aaab client: add make_path_string() helpers support
Fixes: ceph#48027 (comment)
Signed-off-by: Xiubo Li <xiubli@redhat.com>
@lxbsz lxbsz force-pushed the wip-fix-check-access branch from 53b2e08 to c7bc452 Compare October 19, 2023 02:29
Copy link
Member

@gregsfortytwo gregsfortytwo left a comment

Choose a reason for hiding this comment

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

LGTM

@rishabh-d-dave rishabh-d-dave added the wip-rishabh-testing Rishabh's testing label label Nov 1, 2023
Copy link
Contributor

@rishabh-d-dave rishabh-d-dave left a comment

Choose a reason for hiding this comment

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

CephFS integration tests were successful - https://tracker.ceph.com/projects/cephfs/wiki/Main#7-Nov-2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System needs-qa wip-rishabh-testing Rishabh's testing label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants