Repository navigation
squid: Fix multifs auth caps check - #65359
Conversation
Fixes: https://tracker.ceph.com/issues/67212 Signed-off-by: Kotresh HR <[email protected]> (cherry picked from commit 983f893)
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)
8e36a37 to
99e7fcd
Compare
|
This PR is under test in https://tracker.ceph.com/issues/73330. |
|
This PR is under test in https://tracker.ceph.com/issues/74996. |
chrisphoffman
left a comment
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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)
qa/tasks/cephfs/test_admin.py
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:
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.
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
There was a problem hiding this comment.
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)
qa/tasks/cephfs/test_admin.py
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.
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
backport tracker: https://tracker.ceph.com/issues/72812
backport tracker: https://tracker.ceph.com/issues/67293
backport of #58878
parent tracker: https://tracker.ceph.com/issues/67212
backport of #64550
parent tracker: https://tracker.ceph.com/issues/72167
NOTE: Both the backports were dependant. Hence doing it via single PR
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh