Repository navigation
tentacle: pybind/cephfs, mgr/volumes: introduce non-recursive rmtree(), refactor purge() to use it and add MDS optimizations - #65812
Conversation
087d33a to
67aae50
Compare
|
jenkins test windows |
67aae50 to
d6bd36d
Compare
|
jenkins test windows |
4 similar comments
|
jenkins test windows |
|
jenkins test windows |
|
jenkins test windows |
|
jenkins test windows |
|
This PR is under test in https://tracker.ceph.com/issues/73448. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
There was a problem hiding this comment.
The QA run[1][2] looks good, there are no related failures. The unit tests added by this PR were executed and did pass and fs:volumes suite also passed (except for known failures).
I can't approve since I am the PR author, will ask someone else to approve on my behalf, since merging this PR is urgent for downstream reasons.
[1] https://tracker.ceph.com/issues/73448
[2] https://pulpito.ceph.com/jcollin-2026-02-13_09:34:52-fs-wip-jcollin-testing-20260212.151113-tentacle-distro-default-trial/
Method purge() in trash.py calls rmtree() which is recursive method. To avoid Python's recurision limit, switch to non-recursive approach. Path to directory along directory handle are clubbed in to a tuple and that tuple is stored on the stack. Storing directory handle reduces call to opendir() dramatically. Fixes: https://tracker.ceph.com/issues/71648 Signed-off-by: Rishabh Dave <[email protected]> (cherry picked from commit f9046ca)
Signed-off-by: Rishabh Dave <[email protected]> (cherry picked from commit 05082a9)
Run test_python.sh with non-root user. This makes it necessary to change the owner user and group of file system root to be same as this non-root user. This brings testing closer to the real-world scenario and also allows exercising negative tests where an FS op would fail for a non-root user but it would pass for root user. There are few tests that exercise FS operations where root user is needed. Group these tests under a separate class and add extra code for this class that allows these tests to run with root UID and GID. Signed-off-by: Rishabh Dave <[email protected]> (cherry picked from commit 6021dda) Conflicts: src/test/pybind/test_cephfs.py - minor conflict due slightly different file in tentacle vs main
Generating full absolute path for inodes for printing in MDS logs slows down the FS to a great extent especially when the path is very long (imagine a path with 2000 components). Also printing such long paths in MDS logs is not only pointless but also greatly reduces the readability of the MDS logs. Therefore, generate only 10 final components of inode paths for logging. Fixes: https://tracker.ceph.com/issues/72779 Signed-off-by: Rishabh Dave <[email protected]> (cherry picked from commit 1518690) Conflicts: src/mds/CDir.cc - the "else if" clause where changes were made in main's version is absent in tentacle.
Generating full absolute path for dentries for printing in MDS logs slows the down the FS to a great extent especially when the path is very long (imagine a path with 2000 components). Printing such long paths in MDS logs is not only pointless but also greatly reduces the readability of MDS logs. Therefore, generate only 10 final components of the dentry paths for logging. Fixes: https://tracker.ceph.com/issues/72779 Signed-off-by: Rishabh Dave <[email protected]> (cherry picked from commit 1430cd6) Conflicts: src/include/filepath.cc - this file is absent in tentacle so changes need to be moved to filepath.h.
Signed-off-by: Rishabh Dave <[email protected]> (cherry picked from commit 11de1e5) Conflicts: src/mds/MDSAuthCaps.cc src/mds/Server.cc src/test/mds/TestMDSAuthCaps.cc - All three files were different from their main branch version which led to this conflict.
Path can be virtually infinitely long and logging a long long path (imagine around 2000 path components) is un-useful as well as lowers readability of the log. Therefore, trim before logging. Fixes: https://tracker.ceph.com/issues/72993 Signed-off-by: Rishabh Dave <[email protected]> (cherry picked from commit bdc8aae) Conflicts: src/include/filepath.cc - filepath.cc is absent in reef branches, patches for it are manually to filepath.h instead. src/include/filepath.h - This file was modified in one of the previous commits to have the defintion of set_trimmed() instead of declaration since filepath.cc is absent in this branch.
Signed-off-by: Rishabh Dave <[email protected]> (cherry picked from commit e4c301b) Conflicts: src/mds/MDSAuthCaps.cc - Same issue, region where patch is to be applied is slightly different compared to main leading to this conflict.
Signed-off-by: Rishabh Dave <[email protected]> (cherry picked from commit 10e4ccb)
Signed-off-by: Rishabh Dave <[email protected]> (cherry picked from commit c38a913)
d6bd36d to
81ddc6e
Compare
|
Rebased and removed the merge conflicts. |
|
jenkins test make check |
|
@rishabh-d-dave It doesn't pass the |
make check fails due to a bug but it is not related to this PR or CephFS - |
|
jenkins test make check |
2 similar comments
|
jenkins test make check |
|
jenkins test make check |
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #65812 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 1dfa415 pybind/cephfs, mgr/volumes: refactor purge() to be non-recursive | PR #63917 | f9046ca pybind/cephfs, mgr/volumes: refactor purge() to be non-recursive |
| f896087 test/pybind: add unit tests for rmtree() in cephfs python bindings | 05082a9 test/pybind: add unit tests for rmtree() in cephfs python bindings | |
| 2185f3a qa, test: run unit tests for cephfs.pyx with non-root user | 6021dda qa, test: run unit tests for cephfs.pyx with non-root user | |
| def0e1b mds: for logging generate only 10 final components of inode path | 1518690 mds: for logging generate only 10 final components of inode path | |
| 2882244 mds: for logging generate only 10 final components of dentry path | 1430cd6 mds: for logging generate only 10 final components of dentry path | |
| 59b9347 mds: log trimmed path wherever generating full path is necessary | 11de1e5 mds: log trimmed path wherever generating full path is necessary | |
| 7e1a83d client: trim path before logging it | bdc8aae client: trim path before logging it | |
| 3ce9eb8 mds: fix few log entries | e4c301b mds: fix few log entries | |
| 7d6ab36 mds/ScrubStack: avoid generating inode path since it is unused | 10e4ccb mds/ScrubStack: avoid generating inode path since it is unused | |
| 81ddc6e src/common: add helper to prepend "..." to trimmed paths | c38a913 src/common: add helper to prepend "..." to trimmed paths |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or 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.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport 2185f3a (cherry-pick of 6021dda)
Affected File(s)
src/test/pybind/test_cephfs.py
Range Diff
Click to expand
--- Original (6021dda7)
+++ Backport (2185f3a9)
@@ -11,3 +11,8 @@
this class that allows these tests to run with root UID and GID.
Signed-off-by: Rishabh Dave <[email protected]>
+(cherry picked from commit 6021dda7ed137445885979cd4d4b28c770abce13)
+
+Conflicts:
+src/test/pybind/test_cephfs.py
+- minor conflict due slightly different file in tentacle vs main
================================================================================
RANGE DIFF
================================================================================
1: 6021dda7ed1 ! 1: 2185f3a9a5a qa, test: run unit tests for cephfs.pyx with non-root user
@@ Commit message
this class that allows these tests to run with root UID and GID.
Signed-off-by: Rishabh Dave <[email protected]>
+ (cherry picked from commit 6021dda7ed137445885979cd4d4b28c770abce13)
+
+ Conflicts:
+ src/test/pybind/test_cephfs.py
+ - minor conflict due slightly different file in tentacle vs main
## qa/workunits/fs/test_python.sh ##
@@
@@ src/test/pybind/test_cephfs.py: def test_fchmod(testdir):
cephfs.close(fd)
cephfs.unlink(b'/file-fchmod')
--def test_chown(testdir):
-- fd = cephfs.open('file1', 'w', 0o755)
-- cephfs.write(fd, b'abcd', 0)
-- cephfs.close(fd)
--
-- uid = 1012
-- gid = 1012
-- cephfs.chown('file1', uid, gid)
-- st = cephfs.stat(b'/file1')
-- assert_equal(st.st_uid, uid)
-- assert_equal(st.st_gid, gid)
--
--def test_chown_change_uid_but_not_gid(testdir):
-- fd = cephfs.open('file1', 'w', 0o755)
-- cephfs.write(fd, b'abcd', 0)
-- cephfs.close(fd)
--
-- st1 = cephfs.stat(b'/file1')
--
-- uid = 1012
-- cephfs.chown('file1', uid, -1)
-- st2 = cephfs.stat(b'/file1')
-- assert_equal(st2.st_uid, uid)
--
-- # ensure that gid is unchaged.
-- assert_equal(st1.st_gid, st2.st_gid)
--
--def test_chown_change_gid_but_not_uid(testdir):
-- fd = cephfs.open('file1', 'w', 0o755)
-- cephfs.write(fd, b'abcd', 0)
-- cephfs.close(fd)
--
-- st1 = cephfs.stat(b'/file1')
--
-- gid = 1012
-- cephfs.chown('file1', -1, gid)
-- st2 = cephfs.stat(b'/file1')
-- assert_equal(st2.st_gid, gid)
--
-- # ensure that uid is unchaged.
-- assert_equal(st1.st_uid, st2.st_uid)
--
--def test_lchown(testdir):
-- fd = cephfs.open('file1', 'w', 0o755)
-- cephfs.write(fd, b'abcd', 0)
-- cephfs.close(fd)
-- cephfs.symlink('file1', 'slink1')
--
-- uid = 1012
-- gid = 1012
-- cephfs.lchown('slink1', uid, gid)
-- st = cephfs.lstat(b'/slink1')
-- assert_equal(st.st_uid, uid)
-- assert_equal(st.st_gid, gid)
--
--def test_lchown_change_uid_but_not_gid(testdir):
-- fd = cephfs.open('file1', 'w', 0o755)
-- cephfs.write(fd, b'abcd', 0)
-- cephfs.close(fd)
-- cephfs.symlink('file1', 'slink1')
--
-- st1 = cephfs.lstat(b'slink1')
--
-- uid = 1012
-- cephfs.lchown('slink1', uid, -1)
-- st2 = cephfs.lstat(b'/slink1')
-- assert_equal(st2.st_uid, uid)
--
-- # ensure that gid is unchaged.
-- assert_equal(st1.st_gid, st2.st_gid)
--
--def test_lchown_change_gid_but_not_uid(testdir):
-- fd = cephfs.open('file1', 'w', 0o755)
-- cephfs.write(fd, b'abcd', 0)
-- cephfs.close(fd)
-- cephfs.symlink('file1', 'slink1')
--
-- st1 = cephfs.lstat(b'slink1')
--
-- gid = 1012
-- cephfs.lchown('slink1', -1, gid)
-- st2 = cephfs.lstat(b'/slink1')
-- assert_equal(st2.st_gid, gid)
--
-- # ensure that uid is unchaged.
-- assert_equal(st1.st_uid, st2.st_uid)
--
-def test_fchown(testdir):
- fd = cephfs.open(b'/file-fchown', 'w', 0o655)
- uid = os.getuid()
@@ src/test/pybind/test_cephfs.py: def test_fchmod(testdir):
- assert_equal(st["gid"], 9999)
- cephfs.close(fd)
- cephfs.unlink(b'/file-fchown')
--
--def test_fchown_change_uid_but_not_gid(testdir):
-- fd = cephfs.open('file1', 'w', 0o755)
-- cephfs.write(fd, b'abcd', 0)
--
-- st1 = cephfs.stat(b'/file1')
--
-- uid = 1012
-- cephfs.fchown(fd, uid, -1)
-- st2 = cephfs.stat(b'/file1')
-- assert_equal(st2.st_uid, uid)
--
-- # ensure that uid is unchanged.
-- assert_equal(st1.st_gid, st2.st_gid)
--
-- cephfs.close(fd)
--
--def test_fchown_change_gid_but_not_uid(testdir):
-- fd = cephfs.open('file1', 'w', 0o755)
-- cephfs.write(fd, b'abcd', 0)
--
-- st1 = cephfs.stat(b'/file1')
--
-- gid = 1012
-- cephfs.chown('file1', -1, gid)
-- st2 = cephfs.stat(b'/file1')
-- assert_equal(st2.st_gid, gid)
--
-- # ensure that gid is unchanged.
-- assert_equal(st1.st_uid, st2.st_uid)
--
-- cephfs.close(fd)
-
def test_truncate(testdir):
fd = cephfs.open(b'/file-truncate', 'w', 0o755)Deviation in Backport def0e1b (cherry-pick of 1518690)
Affected File(s)
src/mds/CDir.cc
Range Diff
Click to expand
--- Original (15186902)
+++ Backport (def0e1b4)
@@ -10,3 +10,9 @@
Fixes: https://tracker.ceph.com/issues/72779
Signed-off-by: Rishabh Dave <[email protected]>
+(cherry picked from commit 1518690210f3a4473978c7a9274e902fccaad862)
+
+Conflicts:
+src/mds/CDir.cc
+- the "else if" clause where changes were made in main's version is absent
+ in tentacle.
================================================================================
RANGE DIFF
================================================================================
1: 1518690210f ! 1: def0e1b439b mds: for logging generate only 10 final components of inode path
@@ Commit message
Fixes: https://tracker.ceph.com/issues/72779
Signed-off-by: Rishabh Dave <[email protected]>
+ (cherry picked from commit 1518690210f3a4473978c7a9274e902fccaad862)
+
+ Conflicts:
+ src/mds/CDir.cc
+ - the "else if" clause where changes were made in main's version is absent
+ in tentacle.
## src/mds/CDentry.cc ##
@@ src/mds/CDentry.cc: void CDentry::clear_auth()
@@ src/mds/CDir.cc: public:
<< " [" << dir.first << ",head]";
if (dir.is_auth()) {
out << " auth";
-@@ src/mds/CDir.cc: CDentry *CDir::_load_dentry(
- << " mode " << ref_in->get_inode()->mode
- << " mtime " << ref_in->get_inode()->mtime << dendl;
- string dirpath, inopath;
-- this->inode->make_path_string(dirpath);
-- ref_in->make_path_string(inopath);
-+ this->inode->make_trimmed_path_string(dirpath);
-+ ref_in->make_trimmed_path_string(inopath);
- mdcache->mds->clog->error() << "loaded dup referent inode " << inode_data.inode->ino
- << " [" << first << "," << last << "] v" << inode_data.inode->version
- << " at " << dirpath << "/" << dname
@@ src/mds/CDir.cc: void CDir::_omap_fetched(bufferlist& hdrbl, map<string, bufferlist>& omap,
dout(0) << "_fetched missing object for " << *this << dendl;
Deviation in Backport 2882244 (cherry-pick of 1430cd6)
Affected File(s)
src/include/filepath.cc
Range Diff
Click to expand
--- Original (1430cd67)
+++ Backport (28822448)
@@ -10,3 +10,9 @@
Fixes: https://tracker.ceph.com/issues/72779
Signed-off-by: Rishabh Dave <[email protected]>
+(cherry picked from commit 1430cd67d8f7bd7d98b241a7511fa3ceb7e5ba2e)
+
+Conflicts:
+src/include/filepath.cc
+- this file is absent in tentacle so changes need to be moved to
+ filepath.h.
================================================================================
RANGE DIFF
================================================================================
1: 1430cd67d8f ! 1: 28822448b75 mds: for logging generate only 10 final components of dentry path
@@ Commit message
Fixes: https://tracker.ceph.com/issues/72779
Signed-off-by: Rishabh Dave <[email protected]>
+ (cherry picked from commit 1430cd67d8f7bd7d98b241a7511fa3ceb7e5ba2e)
- ## src/include/filepath.cc ##
-@@ src/include/filepath.cc: void filepath::parse_bits() const {
- }
- }
-
-+void filepath::set_trimmed() {
-+ if (trimmed)
-+ return;
-+ // indicates that the path has been shortened.
-+ path += "...";
-+ trimmed = true;
-+}
-+
- void filepath::set_path(std::string_view s) {
- if (!s.empty() && s[0] == '/') {
- path = s.substr(1);
+ Conflicts:
+ src/include/filepath.cc
+ - this file is absent in tentacle so changes need to be moved to
+ filepath.h.
## src/include/filepath.h ##
-@@ src/include/filepath.h: namespace ceph { class Formatter; }
+@@
class filepath {
inodeno_t ino = 0; // base inode. ino=0 implies pure relative path.
std::string path; // relative path.
@@ src/include/filepath.h: namespace ceph { class Formatter; }
/** bits - path segments
* this is ['a', 'b', 'c'] for both the aboslute and relative case.
@@ src/include/filepath.h: class filepath {
- // accessors
- inodeno_t get_ino() const { return ino; }
- const std::string& get_path() const { return path; }
-+ void set_trimmed();
- const char *c_str() const { return path.c_str(); }
+ filepath(std::string_view s) { set_path(s); }
+ filepath(const char* s) { set_path(s); }
- int length() const { return path.length(); }
++ void set_trimmed() {
++ if (trimmed)
++ return;
++ // indicates that the path has been shortened.
++ path += "...";
++ trimmed = true;
++ }
++
+ void set_path(std::string_view s, inodeno_t b) {
+ path = s;
+ ino = b;
## src/mds/CDentry.cc ##
@@ src/mds/CDentry.cc: const LockType CDentry::versionlock_type(CEPH_LOCK_DVERSION);Deviation in Backport 59b9347 (cherry-pick of 11de1e5)
Affected File(s)
src/mds/Server.cc
Range Diff
Click to expand
--- Original (11de1e57)
+++ Backport (59b9347d)
@@ -1,3 +1,11 @@
mds: log trimmed path wherever generating full path is necessary
Signed-off-by: Rishabh Dave <[email protected]>
+(cherry picked from commit 11de1e5772fa88125de10dc7972e0e31e33140d0)
+
+Conflicts:
+src/mds/MDSAuthCaps.cc
+src/mds/Server.cc
+src/test/mds/TestMDSAuthCaps.cc
+- All three files were different from their main branch version which
+ led to this conflict.
================================================================================
RANGE DIFF
================================================================================
1: 11de1e5772f ! 1: 59b9347d175 mds: log trimmed path wherever generating full path is necessary
@@ Commit message
mds: log trimmed path wherever generating full path is necessary
Signed-off-by: Rishabh Dave <[email protected]>
+ (cherry picked from commit 11de1e5772fa88125de10dc7972e0e31e33140d0)
+
+ Conflicts:
+ src/mds/MDSAuthCaps.cc
+ src/mds/Server.cc
+ src/test/mds/TestMDSAuthCaps.cc
+ - All three files were different from their main branch version which
+ led to this conflict.
## src/mds/CDentry.cc ##
@@ src/mds/CDentry.cc: void CDentry::make_path_string(string& s, bool projected,
@@ src/mds/MDSAuthCaps.cc: bool MDSAuthCaps::is_capable(string_view fs_name,
+ string_view trimmed_inode_path) const
{
- ldout(g_ceph_context, 10) << __func__ << "fs_name " << fs_name << " inode(path /" << inode_path
-+ ldout(g_ceph_context, 10) << __func__ << "fs_name " << fs_name
-+ << " inode(path /" << trimmed_inode_path
++ ldout(g_ceph_context, 10) << __func__ << "fs_name " << fs_name << " inode(path /" << trimmed_inode_path
<< " owner " << inode_uid << ":" << inode_gid
<< " mode 0" << std::oct << inode_mode << std::dec
<< ") by caller " << caller_uid << ":" << caller_gid
@@ src/mds/Server.cc: void Server::_rename_prepare(const MDRequestRef& mdr,
tpi->stray_prior_path = std::move(t);
}
tpi->nlink--;
-@@ src/mds/Server.cc: void Server::_rename_prepare(const MDRequestRef& mdr,
- {
- std::string t;
- destdn->make_path_string(t, true);
-- dout(20) << __func__ << " referent stray_prior_path = " << t << dendl;
-- trpi->stray_prior_path = std::move(t);
-+
-+ /* Log only 10 final components fo the path to since logging entire
-+ * path is not useful and also reduces readability. */
-+ dout(20) << __func__ << " referent stray_prior_path = " << get_trimmed_path_str(t) << dendl;
-+ trpi->stray_prior_path = std::move(t);
- }
- }
- }
## src/mds/SessionMap.cc ##
@@Deviation in Backport 7e1a83d (cherry-pick of bdc8aae)
Affected File(s)
src/include/filepath.ccsrc/include/filepath.h
Range Diff
Click to expand
--- Original (bdc8aae4)
+++ Backport (7e1a83d2)
@@ -6,3 +6,15 @@
Fixes: https://tracker.ceph.com/issues/72993
Signed-off-by: Rishabh Dave <[email protected]>
+(cherry picked from commit bdc8aae400fbbdd61df811455d49176deab1f331)
+
+Conflicts:
+
+src/include/filepath.cc
+- filepath.cc is absent in reef branches, patches for it are manually to
+ filepath.h instead.
+
+src/include/filepath.h
+- This file was modified in one of the previous commits to have the
+ defintion of set_trimmed() instead of declaration since filepath.cc is
+ absent in this branch.
================================================================================
RANGE DIFF
================================================================================
1: bdc8aae400f ! 1: 7e1a83d2cd8 client: trim path before logging it
@@ Commit message
Fixes: https://tracker.ceph.com/issues/72993
Signed-off-by: Rishabh Dave <[email protected]>
+ (cherry picked from commit bdc8aae400fbbdd61df811455d49176deab1f331)
+
+ Conflicts:
+
+ src/include/filepath.cc
+ - filepath.cc is absent in reef branches, patches for it are manually to
+ filepath.h instead.
+
+ src/include/filepath.h
+ - This file was modified in one of the previous commits to have the
+ defintion of set_trimmed() instead of declaration since filepath.cc is
+ absent in this branch.
## src/client/Client.cc ##
@@ src/client/Client.cc: int Client::path_walk(InodeRef dirinode, const filepath& origpath, InodeRef *end
@@ src/client/Client.h: protected:
// fake inode number for 32-bits ino_t
- ## src/include/filepath.cc ##
-@@
-
- #include <ostream>
+ ## src/include/filepath.h ##
+@@ src/include/filepath.h: class filepath {
+ trimmed = true;
+ }
-+/* Trim given path to final 10 components and return it by prefixing it with
-+ * "..." to indicate that the path has been trimmed. */
-+std::string filepath::get_trimmed_path() const
-+{
-+ std::size_t n = 0;
-+ for (int i = 1; i <= 10; ++i) {
-+ n = path.rfind("/", n - 1);
-+ if (n == std::string::npos) {
-+ return std::string(path);
++ /* Trim given path to final 10 components and return it by prefixing it with
++ * "..." to indicate that the path has been trimmed. */
++ std::string get_trimmed_path() const
++ {
++ std::size_t n = 0;
++ for (int i = 1; i <= 10; ++i) {
++ n = path.rfind("/", n - 1);
++ if (n == std::string::npos) {
++ return std::string(path);
++ }
+ }
-+ }
+
-+ return std::string("..." + path.substr(n, -1));
-+}
++ return std::string("..." + path.substr(n, -1));
++ }
+
- void filepath::rebuild_path() {
- path.clear();
- for (unsigned i=0; i<bits.size(); i++) {
-
- ## src/include/filepath.h ##
-@@ src/include/filepath.h: class filepath {
- inodeno_t get_ino() const { return ino; }
- const std::string& get_path() const { return path; }
- void set_trimmed();
-+ std::string get_trimmed_path() const;
- const char *c_str() const { return path.c_str(); }
-
- int length() const { return path.length(); }
+ void set_path(std::string_view s, inodeno_t b) {
+ path = s;
+ ino = b;Deviation in Backport 3ce9eb8 (cherry-pick of e4c301b)
Affected File(s)
src/mds/MDSAuthCaps.cc
Range Diff
Click to expand
--- Original (e4c301b9)
+++ Backport (3ce9eb84)
@@ -1,3 +1,9 @@
mds: fix few log entries
Signed-off-by: Rishabh Dave <[email protected]>
+(cherry picked from commit e4c301b9f0204b6a82490a68ec4c3a26db7b013f)
+
+Conflicts:
+src/mds/MDSAuthCaps.cc
+- Same issue, region where patch is to be applied is slightly different
+ compared to main leading to this conflict.
================================================================================
RANGE DIFF
================================================================================
1: e4c301b9f02 ! 1: 3ce9eb84c14 mds: fix few log entries
@@ Commit message
mds: fix few log entries
Signed-off-by: Rishabh Dave <[email protected]>
+ (cherry picked from commit e4c301b9f0204b6a82490a68ec4c3a26db7b013f)
- ## src/mds/MDSAuthCaps.cc ##
-@@ src/mds/MDSAuthCaps.cc: bool MDSAuthCaps::is_capable(string_view fs_name,
- const entity_addr_t& addr,
- string_view trimmed_inode_path) const
- {
-- ldout(g_ceph_context, 10) << __func__ << "fs_name " << fs_name
-+ ldout(g_ceph_context, 10) << __func__ << " fs_name " << fs_name
- << " inode(path /" << trimmed_inode_path
- << " owner " << inode_uid << ":" << inode_gid
- << " mode 0" << std::oct << inode_mode << std::dec
+ Conflicts:
+ src/mds/MDSAuthCaps.cc
+ - Same issue, region where patch is to be applied is slightly different
+ compared to main leading to this conflict.
## src/mds/Server.cc ##
@@ src/mds/Server.cc: void Server::_rmdir_rollback_finish(const MDRequestRef& mdr, metareqid_t reqid,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.
🛟 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.
rishabh-d-dave
left a comment
There was a problem hiding this comment.
QA run had no related failure - https://tracker.ceph.com/projects/cephfs/wiki/Tentacle#wip-jcollin-testing-20260514001520-tentacle
@batrick Please approve on my behalf and merge.
|
✅ Audit Override Applied by @batrick. |
backport tracker: https://tracker.ceph.com/issues/73391, https://tracker.ceph.com/issues/73399, https://tracker.ceph.com/issues/73396
backport of #63917
parent tracker: https://tracker.ceph.com/issues/71648, https://tracker.ceph.com/issues/72779, https://tracker.ceph.com/issues/72993
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