Skip to content

squid: Fix multifs auth caps check - #65359

Merged
batrick merged 9 commits into
ceph:squidfrom
kotreshhr:wip-72812-squid
Jun 2, 2026
Merged

batrick merged 9 commits into
ceph:squidfrom
kotreshhr:wip-72812-squid

Conversation

@kotreshhr

@kotreshhr kotreshhr commented Sep 3, 2025 •

Copy link
Copy Markdown
Contributor

@kotreshhr kotreshhr added this to the squid milestone Sep 3, 2025
@kotreshhr kotreshhr added the core label Sep 3, 2025
@github-actions github-actions Bot added cephfs Ceph File System tests labels Sep 3, 2025
The "Client::mds_check_access" expects the target_path without
leading '/' as it eventually calls the "MDSCapMatch::match_path"
which expects the target_path passed to be with out leading '/'
as well.

The single leading '/' was being removed. But absolute path
constructed did have leading '//', so removing all the leading
'/' was necessary.

This causes the clients not to be able to access a particular
path even though it has a rw permission on the specific path.

The patche fixes the leading '//' issue.

Fixes: https://tracker.ceph.com/issues/67212
Signed-off-by: Kotresh HR <[email protected]>
(cherry picked from commit 2e2adb2)
This is required to test the features involving
fixes both in client and mds. This is to make
sure the older clients are not broken with the
fix. The version 19.2.2 is used for client.

The test suite sets up the cluster with squid
19.2.2 and upgrades only the ceph cluster node
leaving the client node.

Signed-off-by: Kotresh HR <[email protected]>
(cherry picked from commit a4f97c0)
Fixes: https://tracker.ceph.com/issues/72167
Signed-off-by: Kotresh HR <[email protected]>
(cherry picked from commit 3516db3)

Conflicts:
  qa/tasks/cephfs/test_admin.py - The commit 1fda8ed isn't
backported
The multifs auth caps bug has a fix both in client and mds.
If it's old client and not patched, we expect that the fs
with 'rw' would end up having 'r' caps with the multifs
auth caps used as in the test
'test_multifs_single_client_cross_access_r_caps_end'.
This patch adds the conditional to validate the same.

This commit makes use of the PR ceph#64005

Fixes: https://tracker.ceph.com/issues/72167
Signed-off-by: Kotresh HR <[email protected]>
(cherry picked from commit f10e34d)
The fsname is not take into consideration while validating
the access check for the operations. This patch fixes
the same.

Fixes: https://tracker.ceph.com/issues/72167
Signed-off-by: Kotresh HR <[email protected]>
(cherry picked from commit 1a5e083)
The fsname needs to be passed to validate the mds
auth caps check. This patch fixes the same.

Fixes: https://tracker.ceph.com/issues/72167
Signed-off-by: Kotresh HR <[email protected]>
(cherry picked from commit b1d6bb9)
Fix the TestMDSAuthCaps after fixing
multifs authcaps comparison.

Fixes: https://tracker.ceph.com/issues/72167
Signed-off-by: Kotresh HR <[email protected]>
(cherry picked from commit 92ab603)
The kclient fix isn't yet landed in the kernel and hence
the test 'test_multifs_single_client_cross_access_r_caps_end'
would fail for kernel mount. So disable the failing validation
in the test for kclient.

Fixes: https://tracker.ceph.com/issues/72167
Signed-off-by: Kotresh HR <[email protected]>
(cherry picked from commit 485f37a)
@joscollin

Copy link
Copy Markdown
Member

@joscollin

Copy link
Copy Markdown
Member

@batrick batrick modified the milestones: squid, v19.2.4 Mar 18, 2026

@chrisphoffman chrisphoffman 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.

The description of the PR lists two PRs this backport is based on. It says "both" PRs are need which indicates two, but there's a commit from a third PR added.

Extra one:
#64005

Is this meant to be there @kotreshhr ? If so, can you update the description?

@kotreshhr

Copy link
Copy Markdown
Contributor Author

The description of the PR lists two PRs this backport is based on. It says "both" PRs are need which indicates two, but there's a commit from a third PR added.

Extra one: #64005

Is this meant to be there @kotreshhr ? If so, can you update the description?

@chrisphoffman #64005 is a qa changes required for https://tracker.ceph.com/issues/72812 That went in main without a tracker. But it's included in release branches for proper testing.
It's the same with tentacle branch as well - #65358
I agree it's little confusing. Sorry for that.

@batrick batrick modified the milestones: v19.2.4, v19.2.5 Apr 22, 2026
@batrick batrick added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Automated Backport Parity Review - Multiple PRs Detected

This backport appears to pull commits from multiple main PRs including: PR #58878, PR #64005, PR #64550.

This must be made explicit in the backport PR description. Furthermore, each backport tracker ticket associated with these main PRs must be linked to this PR.


Automated Backport Parity Review - Backport Deviation Alert

A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff below to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.

Affected File(s)

Range Diff

Click to expand
--- Original (3516db30)
+++ Backport (d9b2d17b)
@@ -2,3 +2,8 @@
 
 Fixes: https://tracker.ceph.com/issues/72167
 Signed-off-by: Kotresh HR <[email protected]>
+(cherry picked from commit 3516db300d3688cd048542dbed2e0318f9ac5ad3)
+
+Conflicts:
+  qa/tasks/cephfs/test_admin.py - The commit 1fda8ed2d4a9 isn't
+backported

================================================================================
RANGE DIFF
================================================================================

1:  3516db300d3 ! 1:  d9b2d17bdf2 qa: Test cross fs access by single client in multifs
    @@ Commit message
     
         Fixes: https://tracker.ceph.com/issues/72167
         Signed-off-by: Kotresh HR <[email protected]>
    +    (cherry picked from commit 3516db300d3688cd048542dbed2e0318f9ac5ad3)
    +
    +    Conflicts:
    +      qa/tasks/cephfs/test_admin.py - The commit 1fda8ed2d4a9 isn't
    +    backported
     
      ## qa/tasks/cephfs/caps_helper.py ##
     @@ qa/tasks/cephfs/caps_helper.py: class MdsCapTester:
    @@ qa/tasks/cephfs/caps_helper.py: class MdsCapTester:
     
      ## qa/tasks/cephfs/test_admin.py ##
     @@ qa/tasks/cephfs/test_admin.py: class TestFsAuthorize(CephFSTestCase):
    -         self.captester2.conduct_neg_test_for_chown_caps()
    -         self.captester2.conduct_neg_test_for_truncate_caps()
    +         self.captester.conduct_neg_test_for_chown_caps()
    +         self.captester.conduct_neg_test_for_truncate_caps()
      
     +    def test_multifs_single_client_cross_access_rw_caps_end(self):
     +        """

Automated Redmine Linkage Audit

The following tracking irregularities were found:

  • Mismatched PR Link: Backport tracker #72553 points to PR #65299, not this backport PR #65359.

Commit Parity Visualizer

BACKPORT PR #65359 SOURCE PR SOURCE STATUS
547ecc2 qa: Add mds caps test for testing fs read and a path rw PR #58878 983f893 qa: Add mds caps test for testing fs read and a path rw
8773800 client: Fix leading / issue with mds_check_access 2e2adb2 client: Fix leading / issue with mds_check_access
dee5442 qa: Run test_admin with the squid client PR #64005 a4f97c0 qa: Run test_admin with the squid client
d9b2d17 qa: Test cross fs access by single client in multifs PR #64550 3516db3 qa: Test cross fs access by single client in multifs
980d8d5 qa: Fix validation of client_version f10e34d qa: Fix validation of client_version
1aa981f mds: Fix multifs auth caps check 1a5e083 mds: Fix multifs auth caps check
cac4ee5 client: Fix the multifs auth caps check b1d6bb9 client: Fix the multifs auth caps check
a3e3f27 src/test/mds: Fix TestMDSAuthCaps 92ab603 src/test/mds: Fix TestMDSAuthCaps
99e7fcd qa: Disable a test for kernel mount 485f37a qa: Disable a test for kernel mount

🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

CI Run Log: View Workflow Details

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@batrick batrick removed the releng-audit-fail Release engineering: failed backport verification audit. label Jun 2, 2026
@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jun 2, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Automated Backport Parity Review - Multiple PRs Detected

This backport appears to pull commits from multiple main PRs including: PR #58878, PR #64005, PR #64550.

This must be made explicit in the backport PR description. Furthermore, each backport tracker ticket associated with these main PRs must be linked to this PR.


Automated Backport Parity Review - Backport Deviation Alert

A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

Deviation in Backport d9b2d17 (cherry-pick of 3516db3)

Affected File(s)

Range Diff

Click to expand
--- Original (3516db30)
+++ Backport (d9b2d17b)
@@ -2,3 +2,8 @@
 
 Fixes: https://tracker.ceph.com/issues/72167
 Signed-off-by: Kotresh HR <[email protected]>
+(cherry picked from commit 3516db300d3688cd048542dbed2e0318f9ac5ad3)
+
+Conflicts:
+  qa/tasks/cephfs/test_admin.py - The commit 1fda8ed2d4a9 isn't
+backported

================================================================================
RANGE DIFF
================================================================================

1:  3516db300d3 ! 1:  d9b2d17bdf2 qa: Test cross fs access by single client in multifs
    @@ Commit message
     
         Fixes: https://tracker.ceph.com/issues/72167
         Signed-off-by: Kotresh HR <[email protected]>
    +    (cherry picked from commit 3516db300d3688cd048542dbed2e0318f9ac5ad3)
    +
    +    Conflicts:
    +      qa/tasks/cephfs/test_admin.py - The commit 1fda8ed2d4a9 isn't
    +    backported
     
      ## qa/tasks/cephfs/caps_helper.py ##
     @@ qa/tasks/cephfs/caps_helper.py: class MdsCapTester:
    @@ qa/tasks/cephfs/caps_helper.py: class MdsCapTester:
     
      ## qa/tasks/cephfs/test_admin.py ##
     @@ qa/tasks/cephfs/test_admin.py: class TestFsAuthorize(CephFSTestCase):
    -         self.captester2.conduct_neg_test_for_chown_caps()
    -         self.captester2.conduct_neg_test_for_truncate_caps()
    +         self.captester.conduct_neg_test_for_chown_caps()
    +         self.captester.conduct_neg_test_for_truncate_caps()
      
     +    def test_multifs_single_client_cross_access_rw_caps_end(self):
     +        """

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


Commit Parity Visualizer

BACKPORT PR #65359 SOURCE PR SOURCE STATUS
547ecc2 qa: Add mds caps test for testing fs read and a path rw PR #58878 983f893 qa: Add mds caps test for testing fs read and a path rw
8773800 client: Fix leading / issue with mds_check_access 2e2adb2 client: Fix leading / issue with mds_check_access
dee5442 qa: Run test_admin with the squid client PR #64005 a4f97c0 qa: Run test_admin with the squid client
d9b2d17 qa: Test cross fs access by single client in multifs PR #64550 3516db3 qa: Test cross fs access by single client in multifs
980d8d5 qa: Fix validation of client_version f10e34d qa: Fix validation of client_version
1aa981f mds: Fix multifs auth caps check 1a5e083 mds: Fix multifs auth caps check
cac4ee5 client: Fix the multifs auth caps check b1d6bb9 client: Fix the multifs auth caps check
a3e3f27 src/test/mds: Fix TestMDSAuthCaps 92ab603 src/test/mds: Fix TestMDSAuthCaps
99e7fcd qa: Disable a test for kernel mount 485f37a qa: Disable a test for kernel mount

🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

CI Run Log: View Workflow Details

@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Jun 2, 2026
@batrick
batrick merged commit 603dd66 into ceph:squid Jun 2, 2026
3 of 5 checks passed
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.

4 participants