]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/log
ceph-ci.git
4 weeks agoMerge PR #61940 into wip-jcollin-testing-20251107.120120-reef wip-jcollin-testing-20251107.120120-reef testing/wip-jcollin-testing-20251107.120120-reef
Jos Collin [Fri, 7 Nov 2025 12:01:26 +0000 (17:31 +0530)]
Merge PR #61940 into wip-jcollin-testing-20251107.120120-reef

* refs/pull/61940/head:
qa: test file create on damaged directory
mds: do not path traverse a damaged dirfrag
mds: use system error codes instead of CEPHFS_EXX
mds,client: change result field handling in the MClientReply message
mds: prepare infra to replace CEPHFS_EXXX codes to system codes
pybind/cephfs: switch CEPHFS_E error codes to system error codes
PendingReleaseNotes: add note on client/mds error codes

4 weeks agoMerge pull request #66118 from rhcs-dashboard/wip-73706-reef
Nizamudeen A [Thu, 6 Nov 2025 03:45:20 +0000 (09:15 +0530)]
Merge pull request #66118 from rhcs-dashboard/wip-73706-reef

reef: doc: Pin pip to <25.3 for RTD as a workaround for pybind in admin/doc-read-the-docs.txt

5 weeks agodoc: Pin pip to <25.3 for RTD as a workaround for pybind
Ville Ojamo [Sat, 25 Oct 2025 08:18:09 +0000 (15:18 +0700)]
doc: Pin pip to <25.3 for RTD as a workaround for pybind

Readthedocs now uses pip 25.3 by default which requires PEP 517.
src/pybind/* does not provide pyproject.toml files for PEP 517.
For an immediate workaround to allow RTD builds to succeed, pin pip
version to earlier than 25.3.

Details for pybind in https://tracker.ceph.com/issues/73645

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
(cherry picked from commit a65c46c24952a4f5778c0b68b0e7cf26df32757a)

5 weeks agoMerge pull request #66040 from vshankar/wip-client-suid-reef
Venky Shankar [Mon, 3 Nov 2025 05:08:17 +0000 (10:38 +0530)]
Merge pull request #66040 from vshankar/wip-client-suid-reef

reef: client: prohibit unprivileged users from setting sgid/suid bits

Reviewed-by: Milind Changire <mchangir@redhat.com>
5 weeks agoMerge pull request #62917 from rishabh-d-dave/wip-71017-reef
Jos Collin [Wed, 29 Oct 2025 05:47:25 +0000 (11:17 +0530)]
Merge pull request #62917 from rishabh-d-dave/wip-71017-reef

reef: mgr/vol: add command to get snapshot path

Reviewed-by: Jos Collin <jcollin@redhat.com>
6 weeks agoclient: prohibit unprivileged users from setting sgid/suid bits
Kefu Chai [Sat, 5 Jul 2025 08:23:36 +0000 (16:23 +0800)]
client: prohibit unprivileged users from setting sgid/suid bits

Prior to fb1b72d, unprivileged users could add mode bits as long as
S_ISUID and S_ISGID were not included in the change.

After fb1b72d, unprivileged users were allowed to modify S_ISUID and
S_ISGID bits only when no other mode bits were changed in the same
operation. This inadvertently permitted unprivileged users to set
S_ISUID and/or S_ISGID bits when they were the sole bits being modified.

This behavior should not be allowed. Unprivileged users should be
prohibited from setting S_ISUID and/or S_ISGID bits under any
circumstances.

This change tightens the permission check to prevent unprivileged
users from setting these privileged bits in all cases.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 7028ed21138522495df1e9f8b01195a3c43d47ff)

6 weeks agoMerge pull request #66014 from dmick/wip-73602-reef
Zack Cerza [Wed, 22 Oct 2025 16:13:40 +0000 (10:13 -0600)]
Merge pull request #66014 from dmick/wip-73602-reef

reef: install-deps.sh: install proper compiler version on Debian/Ubuntu

6 weeks agoMerge pull request #66012 from phlogistonjohn/jjm-more-bkports-r
Zack Cerza [Wed, 22 Oct 2025 15:48:14 +0000 (09:48 -0600)]
Merge pull request #66012 from phlogistonjohn/jjm-more-bkports-r

reef: backports variants improvements and Dockerfile.build changes

6 weeks agoMerge pull request #65786 from NitzanMordhai/wip-71316-reef
SrinivasaBharathKanta [Wed, 22 Oct 2025 11:21:05 +0000 (16:51 +0530)]
Merge pull request #65786 from NitzanMordhai/wip-71316-reef

reef: memory lock issues causing hangs during connection shutdown

6 weeks agoMerge pull request #63717 from NitzanMordhai/wip-71541-reef
NitzanMordhai [Wed, 22 Oct 2025 10:29:56 +0000 (13:29 +0300)]
Merge pull request #63717 from NitzanMordhai/wip-71541-reef

reef: qa/suites: wait longer before stopping OSDs with valgrind

6 weeks agoinstall-deps.sh: install proper compiler version on Debian/Ubuntu
Dan Mick [Sun, 19 Oct 2025 00:45:31 +0000 (17:45 -0700)]
install-deps.sh: install proper compiler version on Debian/Ubuntu

This code used to run in a pbuilder hook (because it needed to run
inside the build environment chroot).  When building in a container,
you also want the right compiler installed.

This is necessary at least to build reef on ubuntu focal.

Fixes: https://tracker.ceph.com/issues/73585
Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit fd19a09e02b4506d40b24c5044224747f6a49bf3)

6 weeks agoscript/build-with-container: optionally source WITH_CRIMSON from env file
John Mulligan [Mon, 20 Oct 2025 19:04:49 +0000 (15:04 -0400)]
script/build-with-container: optionally source WITH_CRIMSON from env file

Add support for optionally sourcing WITH_CRIMSON from the env file that
can be passed to BWC on the command line. When auto-detecting the
crimson variant we previously only looked at the BWC processes
environment. After speaking with Zack we determined that the Jenkinsfile
only writes the WITH_CRIMSON param into the env file, so we add support
to "peek" in the env file for the WITH_CRIMSON variable.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 2dd3057ea31a31fda4f76268dc2f6f5dcb57bcd8)

6 weeks agoscript/build-with-container: add more detailed variants
John Mulligan [Sat, 18 Oct 2025 00:05:09 +0000 (20:05 -0400)]
script/build-with-container: add more detailed variants

Create two new variants 'packages.minimal' or 'packages.crimson'.
The first disables test deps (make check) and crimson deps.
The second only disables test deps and explicitly enables crimson deps.
The existing 'packages' variant now tries to determine if it should
switch to 'packages.minimal' or 'packages.crimson' by checking for
the same env vars install-deps.sh was (WITH_CRIMSON).

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 25efee4ba3de897bd91019d18ad9de72da00b4cd)

6 weeks agoDockerfile.build: improve docker compatibility
John Mulligan [Thu, 2 Oct 2025 17:56:28 +0000 (13:56 -0400)]
Dockerfile.build: improve docker compatibility

Try to fix:
```
Step 6/18 : COPY     ceph.spec.in     do_cmake.sh     install-deps.sh     run-make-check.sh     src/script/buildcontainer-setup.sh     ${CEPH_CTR_SRC}
When using COPY with more than one source file, the destination must be a directory and end with a /
```

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 8a9b6f84515030fd54cd3fc4e3a5bcb997872548)

6 weeks agoDockerfile.build: Make sccache repo configurable
Zack Cerza [Fri, 3 Oct 2025 22:06:57 +0000 (16:06 -0600)]
Dockerfile.build: Make sccache repo configurable

CEPH-BUILD-BRANCH: sccache-stats
DISTROS: centos9 noble
ARCHS: x86_64
FLAVORS: default
CI-CONTAINER: false
Signed-off-by: Zack Cerza <zack@cerza.org>
(cherry picked from commit 47565e9033d975f95cda61cea465141c4a0656d2)

7 weeks agoMerge pull request #65740 from stackhpc/doc-balancer-reef
Anthony D'Atri [Thu, 16 Oct 2025 13:17:02 +0000 (09:17 -0400)]
Merge pull request #65740 from stackhpc/doc-balancer-reef

reef: doc: Fixes a typo in balancer operations

7 weeks agodoc: Fixes a typo in balancer operations
Tyler Brekke [Tue, 24 Jun 2025 19:12:33 +0000 (12:12 -0700)]
doc: Fixes a typo in balancer operations

Signed-off-by: Tyler Brekke <tbrekke@digitalocean.com>
(cherry picked from commit b038b8093d01a5e676ffa419607489a79261ef29)

7 weeks agoMerge pull request #65944 from phlogistonjohn/jjm-bwc-variants-r
Zack Cerza [Wed, 15 Oct 2025 19:40:14 +0000 (13:40 -0600)]
Merge pull request #65944 from phlogistonjohn/jjm-bwc-variants-r

reef: build-with-container: build image variants

7 weeks agoqa: test file create on damaged directory
Patrick Donnelly [Tue, 28 Jan 2025 17:03:14 +0000 (12:03 -0500)]
qa: test file create on damaged directory

Fixes: https://tracker.ceph.com/issues/69695
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit c4bd8194ec482db7315c79e1c35f55de2c5457b4)

7 weeks agomds: do not path traverse a damaged dirfrag
Patrick Donnelly [Tue, 28 Jan 2025 18:06:36 +0000 (13:06 -0500)]
mds: do not path traverse a damaged dirfrag

Fixes: https://tracker.ceph.com/issues/69695
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit 3243af47d60558227263203cdc4f9b9f0ebb3f5e)

Conflicts:
src/mds/MDCache.cc: no pdir

7 weeks agomds: use system error codes instead of CEPHFS_EXX
Igor Golikov [Tue, 18 Feb 2025 12:47:52 +0000 (12:47 +0000)]
mds: use system error codes instead of CEPHFS_EXX

Signed-off-by: Igor Golikov <igolikov@ibm.com>
Fixes: https://tracker.ceph.com/issues/64611
(cherry picked from commit 7055fa53c50062c285386db488bcdaee57c5dd1c)

7 weeks agoscript/build-with-container: add build image variants
John Mulligan [Mon, 13 Oct 2025 20:24:11 +0000 (16:24 -0400)]
script/build-with-container: add build image variants

Allow the user to control the content of the build image with a
high-level `--image-variant=` switch. Currently the supported values are
`default` (the same maximal image we have been generating) and
`packages` a slimmer image that avoids installing certain test-only
dependencies.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
7 weeks agoDockerfile.build: make FOR_MAKE_CHECK a build argument
John Mulligan [Mon, 13 Oct 2025 20:23:58 +0000 (16:23 -0400)]
Dockerfile.build: make FOR_MAKE_CHECK a build argument

Set it only during install time.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
7 weeks agoinstall-deps.sh: let FOR_MAKE_CHECK variable take precedence
John Mulligan [Mon, 13 Oct 2025 20:23:10 +0000 (16:23 -0400)]
install-deps.sh: let FOR_MAKE_CHECK variable take precedence

Previously, the FOR_MAKE_CHECK variable could only enable installing
extra (test) dependencies when install-deps.sh was used and it was
ignored if `tty -s` exited true. This change allows FOR_MAKE_CHECK to
take precedence over the tty check and to specify one of true, 1, yes to
enable extra "for make check" deps or false, 0, no to explicitly disable
the extra deps.

Based-on-work-by: Dan Mick <dan.mick@redhat.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
8 weeks agoMerge pull request #65463 from pdvian/wip-72852-reef
SrinivasaBharathKanta [Tue, 14 Oct 2025 09:11:13 +0000 (14:41 +0530)]
Merge pull request #65463 from pdvian/wip-72852-reef

reef: mgr/DaemonState: Minimise time we hold the DaemonStateIndex lock

8 weeks agoMerge pull request #65216 from ifed01/wip-ifed-discard-threads-better-lifecycle-reef
Igor Fedotov [Mon, 13 Oct 2025 13:07:47 +0000 (16:07 +0300)]
Merge pull request #65216 from ifed01/wip-ifed-discard-threads-better-lifecycle-reef

reef: blk/kernel: improve DiscardThread life cycle.

Reviewed-by: Yite Gu guyite@bytedance.com
8 weeks agoMerge pull request #65334 from abitdrag/wip-72816-reef
Ilya Dryomov [Mon, 13 Oct 2025 10:23:41 +0000 (12:23 +0200)]
Merge pull request #65334 from abitdrag/wip-72816-reef

reef: auth: msgr2 can return incorrect allowed_modes through AuthBadMethodFrame

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2 months agoMerge pull request #65837 from phlogistonjohn/jjm-rmc-backport-reef
Dan Mick [Thu, 9 Oct 2025 16:39:04 +0000 (09:39 -0700)]
Merge pull request #65837 from phlogistonjohn/jjm-rmc-backport-reef

reef: run-make-check.sh backports

2 months agoMerge pull request #65845 from phlogistonjohn/jjm-bwc-backports-r
David Galloway [Thu, 9 Oct 2025 00:23:16 +0000 (20:23 -0400)]
Merge pull request #65845 from phlogistonjohn/jjm-bwc-backports-r

reef: sync build-with-container patches from main

2 months agoscript/build-with-container: improve error handling for invalid distros
John Mulligan [Wed, 8 Oct 2025 20:41:36 +0000 (16:41 -0400)]
script/build-with-container: improve error handling for invalid distros

Instead of throwing a long obnoxious traceback at the user if the value
supplied to -d/--distro is invalid do something nicer. For example:
```
$ ./src/script/build-with-container.py -d trixy  -e build
usage: build-with-container.py [-h] [--help-build-steps]
build-with-container.py: error: argument --distro/-d: unknown distro: 'trixy' not in centos10, centos10stream, centos8, centos9, centos9stream, rocky9, rockylinux9, rocky10, rockylinux10, fedora41, fc41, fedora42, fc42, fedora43, fc43, ubuntu20.04, ubuntu-focal, focal, ubuntu22.04, ubuntu-jammy, jammy, ubuntu24.04, ubuntu-noble, noble, debian12, debian-bookworm, bookworm, debian13, debian-trixie, trixie

```

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 72f3ad9549e84bdba7bdfd97d2ede3c55e02f103)

2 months agoscript/build-with-container: add debian 13 (trixie)
John Mulligan [Wed, 8 Oct 2025 21:04:27 +0000 (17:04 -0400)]
script/build-with-container: add debian 13 (trixie)

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit a13fa091dd6bad35c44076cb7c46cb7bcc17a7ac)

2 months agoscript/build-with-container: add ubuntu 20.04 (focal)
John Mulligan [Wed, 8 Oct 2025 17:30:18 +0000 (13:30 -0400)]
script/build-with-container: add ubuntu 20.04 (focal)

Add ubuntu 20.04 (focal) to the available list of distro kinds.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 7c40f7bd07ac935d0657b9284118da8590a5cf0d)

2 months agoscript/build-with-container: add a pair of fedora distro versions
John Mulligan [Wed, 8 Oct 2025 14:28:30 +0000 (10:28 -0400)]
script/build-with-container: add a pair of fedora distro versions

Add fedora 42 and the soon-to-be-released fedora 43.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 76fe5ad298ee5626eeb63591a702e8f8cc9be7d0)

2 months agoscript/build-with-container: lightly organize the distro kind aliases
John Mulligan [Wed, 8 Oct 2025 14:26:58 +0000 (10:26 -0400)]
script/build-with-container: lightly organize the distro kind aliases

Do a tiny reorg of the distro kind aliases and container images to keep
the EL distros together and comment out each "section".

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 4430a5ad6be6f26309d5f5bea0e448a4bbd432e1)

2 months agoscript/build-with-container: be consistent with naming in distro kinds
John Mulligan [Wed, 8 Oct 2025 14:23:25 +0000 (10:23 -0400)]
script/build-with-container: be consistent with naming in distro kinds

Update the DistroKind enum and related items so that the naming is
applied consistently. That is: the canonical (no pun indented) form
of the name is "<name><version>" and codenames, such as "jammy" or
"bookworm" are aliases. This matches the previously existing code.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit ac11a80a63ab1909fbdf682d830acde96856f502)

2 months agosrc/script: add bookworm to build-with-container.py
Dan Mick [Tue, 7 Oct 2025 01:48:42 +0000 (18:48 -0700)]
src/script: add bookworm to build-with-container.py

..and its friend buildcontainer-setup.sh

Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit 34b497c2f3652e7d30c7b7476b711fd9f1f4ecac)

2 months agobuild-with-container: ensure npm dir is set up before configure
John Mulligan [Thu, 28 Aug 2025 23:39:06 +0000 (19:39 -0400)]
build-with-container: ensure npm dir is set up before configure

When the npm cache path option is passed the npm cache dir is passed
to all container `run` commands, ensure the dir has been created
before the first container command (configure) is used.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 79166af192ea0b4b982b56ce521516d5a29e7a0d)

2 months agorun-make-check.sh: handle sudo and command that may not run in container
John Mulligan [Tue, 18 Mar 2025 23:26:59 +0000 (19:26 -0400)]
run-make-check.sh: handle sudo and command that may not run in container

Work around a known failure that sudo is not expected to be present in
container images. Prepare to handle a failure to set a sysctl param.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 9f44155dff195015186315968a0a1e8ce925ed5d)

2 months agoinstall-deps: extract SUDO variable logic into a reusable function
John Mulligan [Sat, 15 Mar 2025 16:44:00 +0000 (12:44 -0400)]
install-deps: extract SUDO variable logic into a reusable function

While the function is pretty simple and could be copy-pasted I
prefer to extract things into functions to indicate that the
logic is used/repeated elsewhere to ward off making changes to
one copy vs the other.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit bbd7933598e11d84758a6f09fd176f47c744aaa2)

2 months agorun-make-check: Enable ctest resource allocation
luo rixin [Wed, 7 Feb 2024 03:33:44 +0000 (11:33 +0800)]
run-make-check: Enable ctest resource allocation

Co-authored-by: Kefu Chai <tchaikov@gmail.com>
Signed-off-by: luo rixin <luorixin@huawei.com>
(cherry picked from commit 5aa832c5c60e0469127647570bb102ff64a3fe32)

2 months agoMerge pull request #65295 from joscollin/wip-71436-reef
Venky Shankar [Wed, 8 Oct 2025 04:21:19 +0000 (09:51 +0530)]
Merge pull request #65295 from joscollin/wip-71436-reef

reef: mgr/snap_schedule: fix typo in error message during retention add

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 months agoMerge pull request #65348 from joscollin/wip-72804-reef
Venky Shankar [Wed, 8 Oct 2025 04:21:09 +0000 (09:51 +0530)]
Merge pull request #65348 from joscollin/wip-72804-reef

reef: mds: Fix readdir when osd is full.

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 months agoMerge pull request #65364 from ifed01/wip-ifed-fix-snapdiff-fragment-reef
Venky Shankar [Wed, 8 Oct 2025 04:21:01 +0000 (09:51 +0530)]
Merge pull request #65364 from ifed01/wip-ifed-fix-snapdiff-fragment-reef

reef: mds: fix snapdiff result fragmentation

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 months agoMerge pull request #63129 from kshtsk/wip-71210-reef
Venky Shankar [Mon, 6 Oct 2025 14:57:24 +0000 (20:27 +0530)]
Merge pull request #63129 from kshtsk/wip-71210-reef

reef: qa/tasks/cephfs/mount: use 'ip route' instead 'route'

Reviewed-by: Igor Fedotov <igor.fedotov@croit.io>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 months agomsg/async: race condition between reset_recv_state and shutdown_connections
Nitzan Mordechai [Tue, 10 Dec 2024 09:04:34 +0000 (09:04 +0000)]
msg/async: race condition between reset_recv_state and shutdown_connections

when shutting down monitors and valgrind is involved, we can,
sometimes, to hit race condition and locks that causing the shutdown
process to hang for a long time.

reset_recv_state - issuing a message without proper locks that
causing the shutdown to hang during shutdown connection (drain network)

Fixes: https://tracker.ceph.com/issues/63501
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
(cherry picked from commit b800149243b593ff7946d9a5df23f5a49247c0fd)

2 months agorados/valgrind-leaks: add timeout value for stop command
Nitzan Mordechai [Wed, 4 Dec 2024 06:49:36 +0000 (06:49 +0000)]
rados/valgrind-leaks: add timeout value for stop command

increase the timeout before stop command failed. in case
of monitor running under valgrind, we sometimes failed beacuse
of timeout.

Fixes: https://tracker.ceph.com/issues/63501
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
(cherry picked from commit 5668807051302e6080f637d92e0f25ef055e42a3)

2 months agoMerge pull request #61512 from mchangir/wip-68768-reef
Jos Collin [Thu, 2 Oct 2025 01:59:19 +0000 (07:29 +0530)]
Merge pull request #61512 from mchangir/wip-68768-reef

reef: mds: add an asok command to dump export states

Reviewed-by: Jos Collin <jcollin@redhat.com>
2 months agoMerge pull request #65710 from aaSharma14/wip-73294-reef
Aashish Sharma [Tue, 30 Sep 2025 08:54:49 +0000 (14:24 +0530)]
Merge pull request #65710 from aaSharma14/wip-73294-reef

reef: monitoring: fix MTU Mismatch alert rule and expr

Reviewed-by: Afreen Misbah <afreen@ibm.com>
2 months agomonitoring: fix MTU Mismatch alert rule and expr
Aashish Sharma [Wed, 2 Jul 2025 11:05:14 +0000 (16:35 +0530)]
monitoring: fix MTU Mismatch alert rule and expr

Fixes: https://tracker.ceph.com/issues/73290
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit bee24dec441b9e6b263e4498c2ab333b0a60a52d)

Conflicts:
monitoring/ceph-mixin/prometheus_alerts.yml
monitoring/ceph-mixin/tests_alerts/test_alerts.yml
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.scss

2 months agomds,client: change result field handling in the MClientReply message
Igor Golikov [Tue, 18 Feb 2025 11:45:57 +0000 (11:45 +0000)]
mds,client: change result field handling in the MClientReply message

Signed-off-by: Igor Golikov <igolikov@ibm.com>
Fixes: https://tracker.ceph.com/issues/64611
(cherry picked from commit bd3b248ab9f51fe4d17ea57400f698ad1963f9a0)

2 months agomds: prepare infra to replace CEPHFS_EXXX codes to system codes
Igor Golikov [Tue, 18 Feb 2025 11:44:17 +0000 (11:44 +0000)]
mds: prepare infra to replace CEPHFS_EXXX codes to system codes

Signed-off-by: Igor Golikov <igolikov@ibm.com>
Fixes: https://tracker.ceph.com/issues/64611
(cherry picked from commit 4fe51a1afc69881d181f16f0e5facd919bd7307a)

2 months agopybind/cephfs: switch CEPHFS_E error codes to system error codes
Igor Golikov [Tue, 18 Feb 2025 11:38:47 +0000 (11:38 +0000)]
pybind/cephfs: switch CEPHFS_E error codes to system error codes

Signed-off-by: Igor Golikov <igolikov@ibm.com>
Fixes: https://tracker.ceph.com/issues/64611
(cherry picked from commit b1b2716f1fdb4e2637295a62215f041dee080ba4)

2 months agoPendingReleaseNotes: add note on client/mds error codes
Igor Golikov [Tue, 18 Feb 2025 11:36:10 +0000 (11:36 +0000)]
PendingReleaseNotes: add note on client/mds error codes

Signed-off-by: Igor Golikov <igolikov@ibm.com>
Fixes: https://tracker.ceph.com/issues/64611
(cherry picked from commit 54ce97973a5c626b7463a7cf5a7708e9977b7c1f)

2 months agoMerge pull request #65621 from aaSharma14/wip-73165-reef
Aashish Sharma [Fri, 26 Sep 2025 14:08:09 +0000 (19:38 +0530)]
Merge pull request #65621 from aaSharma14/wip-73165-reef

reef: mgr/dashboard: fix zone update API forcing STANDARD storage class

Reviewed-by: Afreen Misbah <afreen@ibm.com>
2 months agoMerge pull request #62436 from rishabh-d-dave/mgr-vol-no-del-reef
Jos Collin [Fri, 26 Sep 2025 07:14:14 +0000 (12:44 +0530)]
Merge pull request #62436 from rishabh-d-dave/mgr-vol-no-del-reef

reef: mgr/volumes: allow disabling async job threads

Reviewed-by: Jos Collin <jcollin@redhat.com>
2 months agoPendingReleaseNote: add note for pause_purging and pause_cloninig
Rishabh Dave [Mon, 2 Sep 2024 14:13:45 +0000 (19:43 +0530)]
PendingReleaseNote: add note for pause_purging and pause_cloninig

Added release notes for mgr/vol config option "pause_purging and
"pause_cloning".

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 03b90d589ca5759701164ea54b0dbf9b92c4efef)

2 months agodoc/cephfs: add note for config option pause_purging and pause_cloning
Rishabh Dave [Mon, 2 Sep 2024 14:11:17 +0000 (19:41 +0530)]
doc/cephfs: add note for config option pause_purging and pause_cloning

Update documentation for add information about mgr/vol config options
"pause_purging" and "pause_cloning".

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 1f0bfe1c599769ac67d3b1b41f37bb3482e27839)

2 months agoqa/cephfs: add tests for mgr/vol config pause_cloning
Rishabh Dave [Fri, 11 Oct 2024 19:08:09 +0000 (00:38 +0530)]
qa/cephfs: add tests for mgr/vol config pause_cloning

mgr/vol config option pause_cloning allows pausing of cloner threads.
Add tests for this.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit e7eb36e4393c8401c7cf1aa1f714b52c1ced9ca0)

2 months agoqa/cephfs: extend wait for trash empty
Rishabh Dave [Fri, 11 Oct 2024 19:03:29 +0000 (00:33 +0530)]
qa/cephfs: extend wait for trash empty

Trash directory for a volume is not created by default. If
_wait_for_trash_empty() in test_volumes.py encounters absence of trash
directory, return true.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 6d6be8b41c990acf2d9c08f35eb382996d59d5a7)

2 months agoqa/cephfs: add tests for config option pause_purging
Rishabh Dave [Sat, 6 Jan 2024 14:42:31 +0000 (20:12 +0530)]
qa/cephfs: add tests for config option pause_purging

Setting MGR config option mgr/volumes/pause_purging to true halts
all ongoing purges and allows no new purging to begin until this option
is changed to false. Add tests for this.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit f38fcbc6109494e23e4948d794f59c927a9303ff)

Conflicts:
qa/tasks/cephfs/test_volumes.py
- First conflict occurred due to missing import of safe_while which
  in Reef branch compared to main branch. Along with resolving this
  conflict this has been imported as it used by the tests.
- Second conflict occured due to absence of some test methods right
  before where TestPausePurging was to be added.
- Third conflict occured because entire contextutil was imported instead
  of just safe_while and only CommandFailedError was imported from
  teuthology.exceptions while this commit imports MaxWhileTries too.

2 months agoqa/cephfs: don't strip any whitespace for get_shell_stdout
Rishabh Dave [Fri, 12 Jan 2024 10:28:41 +0000 (15:58 +0530)]
qa/cephfs: don't strip any whitespace for get_shell_stdout

Whitespace is not removed from the end of the stdout returned by the
method get_ceph_cmd_stdout(). Follow the same policy here since it is
better to not do so (this whitespace can be useful, when copying Ceph
auth keyrings from stdout to a file) and also for sake of uniformity of
interfaces.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 9582b9b13a42fae4c7f38c22f9202eb893b6f1bc)

Conflicts:
qa/tasks/cephfs/mount.py
- Conflict occured for 2 reasons -
  - One, method get_shell_stdout() is absent on Reef branch but not in
    main so this patch which makes modification to it will obviously run
    in to conflict
   - Two, run_shell_payload() lies right next to get_shell_stdout() in
     main branch and its definition is quite different, leading to
     conflict again.

2 months agomgr/vol: add pause/resume mechanism for async jobs
Rishabh Dave [Tue, 3 Sep 2024 10:01:07 +0000 (15:31 +0530)]
mgr/vol: add pause/resume mechanism for async jobs

Add mechansim that allows pausing/resuming of the entire async job
machinery that queues, launches and picks next async job; both async
jobs, clones as well as purges.

And then add mgr/vol config option pause_purging and pause_cloning so
that both of these async jobs can be paused and resumed individually.

Fixes: https://tracker.ceph.com/issues/61903
Fixes: https://tracker.ceph.com/issues/68630
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 01d37d5e1ba0e250e9d3a5f28ec7f3fa3597c63f)

Conflicts:
src/pybind/mgr/volumes/module.py
- Code where patch was to be applied was slighty different

2 months agoqa: add test for 'dump_export_states'
Zhansong Gao [Tue, 14 Feb 2023 08:24:24 +0000 (16:24 +0800)]
qa: add test for 'dump_export_states'

Signed-off-by: Zhansong Gao <zhsgao@hotmail.com>
(cherry picked from commit 5506ed63c2f14cc5f4c3e72998d8a47fdd97f200)

Conflicts:
qa/tasks/cephfs/test_exports.py
- conflicts due to new test class addition at the bottom of file

2 months agomds: add an asok command to dump export states
Zhansong Gao [Tue, 14 Feb 2023 08:10:59 +0000 (16:10 +0800)]
mds: add an asok command to dump export states

Task to export subtree may be blocked, use this command
to find out what's going on.

Fixes: https://tracker.ceph.com/issues/58835
Signed-off-by: Zhansong Gao <zhsgao@hotmail.com>
(cherry picked from commit d34f33055d25ba78f63369f661eb75515b5f465d)

Conflicts:
src/mds/MDSCacheObject.h
src/mds/Migrator.cc
- conflicts due to quiesce additions in main branch

2 months agoMerge pull request #60630 from kamoltat/wip-68841-reef
SrinivasaBharathKanta [Wed, 24 Sep 2025 10:44:27 +0000 (16:14 +0530)]
Merge pull request #60630 from kamoltat/wip-68841-reef

reef: mon [stretch mode]: support disable_stretch_mode & qa/workunits/mon: ensure election strategy is "connectivity" for stretch mode

2 months agoMerge pull request #65637 from adk3798/reef-cephadm-pin-cheroot
Adam King [Tue, 23 Sep 2025 21:11:02 +0000 (17:11 -0400)]
Merge pull request #65637 from adk3798/reef-cephadm-pin-cheroot

reef: pybind/mgr: pin cheroot version in requirements-required.txt

Reviewed-by: John Mulligan <jmulligan@redhat.com>
2 months agomgr/dashboard: bump cheroot to > 10.0
Nizamudeen A [Fri, 19 Apr 2024 08:07:11 +0000 (13:37 +0530)]
mgr/dashboard: bump cheroot to > 10.0

Fixes: https://tracker.ceph.com/issues/55837
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 1ec74a8360d1c4abb39754320eba118d080e3499)

2 months agoMerge pull request #65638 from zdover23/wip-doc-2025-09-23-reef-remove-cloud-restore-rst
Casey Bodley [Tue, 23 Sep 2025 13:24:37 +0000 (09:24 -0400)]
Merge pull request #65638 from zdover23/wip-doc-2025-09-23-reef-remove-cloud-restore-rst

reef: doc/radosgw: remove cloud-restore from reef

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 months agoMerge pull request #61279 from vshankar/wip-68765-reef
Jos Collin [Tue, 23 Sep 2025 05:57:40 +0000 (11:27 +0530)]
Merge pull request #61279 from vshankar/wip-68765-reef

reef: qa: increase the http.maxRequestBuffer to 100MB and enable the git debug logs

Reviewed-by: Jos Collin <jcollin@redhat.com>
2 months agoMerge pull request #65630 from phlogistonjohn/jjm-r-65514
David Galloway [Tue, 23 Sep 2025 02:27:07 +0000 (19:27 -0700)]
Merge pull request #65630 from phlogistonjohn/jjm-r-65514

reef: build-with-container: add argument groups to organize options

2 months agopybind/mgr: pin cheroot version in requirements-required.txt
Adam King [Mon, 22 Sep 2025 21:05:07 +0000 (17:05 -0400)]
pybind/mgr: pin cheroot version in requirements-required.txt

With python 3.10 (didn't seem to happen with python 3.12) the
pybind/mgr/cephadm/tests/test_node_proxy.py test times out.
This appears to be related to a new release of the cheroot
package and a github issues describing the same problem
we're seeing has been opened by another user
https://github.com/cherrypy/cheroot/issues/769

It is worth noting that the workaround described in that
issue does also work for us. If you add

```
import cheroot
cheroot.server.HTTPServer._serve_unservicable = lambda: None
```

after the existing imports in test_node_proxy.py the
test hanging issue also disappears. Also worth noting the
particular pin of

cheroot~=10.0

was chosen as it matches the existing pin being used
in pybind/mgr/dashboard/constraints.txt

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 6231955b5d00ae6b3630ee94e85b2449092ef0fe)

2 months agodoc/radosgw: remove cloud-restore from reef
Zac Dover [Tue, 23 Sep 2025 02:06:14 +0000 (12:06 +1000)]
doc/radosgw: remove cloud-restore from reef

Remove doc/radosgw/cloud-restore.rst from the reef branch.

cloud-restore does not appear in index.rst, so its removal from
index.rst is unnecessary.

Signed-off-by: Zac Dover <zac.dover@proton.me>
2 months agobuild-with-container: add argument groups to organize options
John Mulligan [Fri, 12 Sep 2025 17:52:25 +0000 (13:52 -0400)]
build-with-container: add argument groups to organize options

Use the argparse add_argument_group feature to organize the mass of
arguments into more sensible categories. Hopefully, someone reading
over the `--help` output can now more easily see options that
are useful rather than being overwhelmed by a wall of text.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 71a1be4dd0aea004da56c2f518ee70a281a3f7d3)

2 months agomgr/dashboard: fix zone update API forcing STANDARD storage class
Aashish Sharma [Thu, 18 Sep 2025 10:59:52 +0000 (16:29 +0530)]
mgr/dashboard: fix zone update API forcing STANDARD storage class

The zone update REST API (`edit_zone`) always attempted to configure a
placement target for the `STANDARD` storage class, even when the request
was intended for a different storage class name.
This caused failures in deployments where `STANDARD` is not defined.

Changes:
Club add placement target and add storage class methods into one single
add_placement_targets_storage_class_zone method which takes the storage
class as a param as well alongside the rest of the placement params.

Fixes: https://tracker.ceph.com/issues/73105
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 135f3adb4973be493925839e946e7a5fc75e7d5c)

2 months agoMerge pull request #65297 from joscollin/wip-71832-reef
Jos Collin [Mon, 22 Sep 2025 06:20:16 +0000 (11:50 +0530)]
Merge pull request #65297 from joscollin/wip-71832-reef

reef: mgr/volumes: Keep mon caps if auth key has remaining mds/osd caps

Reviewed-by: Kotresh HR <khiremat@redhat.com>
2 months agoMerge pull request #61297 from batrick/wip-68451-reef
Jos Collin [Mon, 22 Sep 2025 06:01:15 +0000 (11:31 +0530)]
Merge pull request #61297 from batrick/wip-68451-reef

reef: qa: ignore pg availability/degraded warnings

Reviewed-by: Jos Collin <jcollin@redhat.com>
2 months agoMerge pull request #62092 from batrick/wip-70155-reef
Jos Collin [Mon, 22 Sep 2025 04:55:55 +0000 (10:25 +0530)]
Merge pull request #62092 from batrick/wip-70155-reef

reef: qa: ignore variant of down fs

Reviewed-by: Jos Collin <jcollin@redhat.com>
2 months agoMerge pull request #63017 from batrick/wip-71092-reef
Jos Collin [Mon, 22 Sep 2025 04:46:13 +0000 (10:16 +0530)]
Merge pull request #63017 from batrick/wip-71092-reef

reef: qa/workunits/fs/misc: remove data pool cleanup

Reviewed-by: Jos Collin <jcollin@redhat.com>
2 months agoMerge pull request #65595 from aaSharma14/wip-73134-reef
Aashish Sharma [Fri, 19 Sep 2025 09:43:00 +0000 (15:13 +0530)]
Merge pull request #65595 from aaSharma14/wip-73134-reef

reef: Handle failures in metric parsing

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
2 months agoHandle failures in metric parsing
Anmol Babu [Thu, 3 Jul 2025 13:25:39 +0000 (18:55 +0530)]
Handle failures in metric parsing

fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2345460
Signed-off-by: Anmol Babu <anmolbabu@Anmols-MacBook-Pro.local>
(cherry picked from commit f29e3f307c46401328e920204cbe893fbd837c65)

Conflicts:
src/exporter/DaemonMetricCollector.cc

2 months agoMerge pull request #61978 from batrick/wip-70066-reef
Neeraj Pratap Singh [Thu, 18 Sep 2025 11:32:54 +0000 (17:02 +0530)]
Merge pull request #61978 from batrick/wip-70066-reef

reef: mds: dump next_snap when checking dentry corruption

2 months agoMerge pull request #62278 from dparmar18/wip-70034-reef
Neeraj Pratap Singh [Thu, 18 Sep 2025 11:32:40 +0000 (17:02 +0530)]
Merge pull request #62278 from dparmar18/wip-70034-reef

reef: mgr/nfs: validate path when modifying cephfs export

2 months agoMerge pull request #62409 from neesingh-rh/wip-70418-reef
Neeraj Pratap Singh [Thu, 18 Sep 2025 11:32:14 +0000 (17:02 +0530)]
Merge pull request #62409 from neesingh-rh/wip-70418-reef

reef: cephfs-shell: add option to remove xattr

2 months agoMerge pull request #65251 from joscollin/wip-70031-reef
Neeraj Pratap Singh [Thu, 18 Sep 2025 11:32:00 +0000 (17:02 +0530)]
Merge pull request #65251 from joscollin/wip-70031-reef

reef: qa: enable debug mds/client for fs/nfs suite

2 months agoMerge pull request #65253 from joscollin/wip-71379-reef
Neeraj Pratap Singh [Thu, 18 Sep 2025 11:31:45 +0000 (17:01 +0530)]
Merge pull request #65253 from joscollin/wip-71379-reef

reef: cephfs: session tracker accounts for killing sessions

2 months agoqa/workunits/mon: ensure election strategy is "connectivity" for stretch mode wip-68841-reef
Laura Flores [Tue, 3 Dec 2024 22:15:19 +0000 (16:15 -0600)]
qa/workunits/mon: ensure election strategy is "connectivity" for stretch mode

The election strategy is randomly chosen for this type of test. Sometimes,
the test passes if the "connectivity" election strategy happens to be picked.
But if a different strategy, i.e. "classic", is picked, then the test will fail.

We can ensure that the election strategy is "connectivity" by setting it in the
workunit with the ceph CLI command. Although connectivity was specified in
stretch-mode-5-mons-8-osds.yaml, that config ultimately gets overridden by
the "qa/mon_config" yaml.

Fixes: https://tracker.ceph.com/issues/69107
Signed-off-by: Laura Flores <lflores@ibm.com>
(cherry picked from commit de2d9186bddbd452d2e7939723418c200e3fec46)

2 months agosrc/mon/MonMap: modify dump function
Kamoltat Sirivadhna [Sat, 14 Sep 2024 18:22:55 +0000 (18:22 +0000)]
src/mon/MonMap: modify dump function

Problem:
Current dump for "removed_ranks" and "disallowed_leaders"
doesn't have the correct format so the python test
script can parse through these values.

Solution:
Modified the values such that it is in the correct format

Conflict: src/osd/osd_types.cc: Added f->dump_bool("is_stretch_pool", is_stretch_pool());

Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
(cherry picked from commit a7f3b7b749acabd235d615a3f5b80e3398a6d80d)

2 months agoqa: Added tests for disabling stretch mode
Kamoltat Sirivadhna [Sun, 8 Sep 2024 19:20:34 +0000 (19:20 +0000)]
qa: Added tests for disabling stretch mode

Test disabling stretch mode with the following scenario:

1. Healthy Stretch Mode
2. Degraded Stretch Mode

Fixes: https://tracker.ceph.com/issues/67467
Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
(cherry picked from commit 4d2f8879bed2abd10c00e5a1c5008bd56c11bf61)

2 months agodoc/rados/operations/stretch-mode.rst: Added Exitting Stretch Mode
Kamoltat Sirivadhna [Sat, 7 Sep 2024 23:01:23 +0000 (23:01 +0000)]
doc/rados/operations/stretch-mode.rst: Added Exitting Stretch Mode

Added documentation about exiting stretch mode.

Fixes: https://tracker.ceph.com/issues/67467
Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
(cherry picked from commit 0680f17d7bab386429a013c254dd90c70fbabeb7)

2 months agomon [stretch mode]: support disable_stretch_mode
Kamoltat Sirivadhna [Wed, 28 Aug 2024 13:40:59 +0000 (13:40 +0000)]
mon [stretch mode]: support disable_stretch_mode

Problem:

Currently, Ceph lacks the ability
to exit stretch mode and move back
to normal cluster (non-stretched).

Solution:

Provide a command to allow
the user to exit stretch mode gracefully:

`ceph mon disable_stretch_mode <crush_rule> --yes-i-really-mean-it`

User can either specify a crush rule that
they want all pools to move to or not specify
a rule and Ceph will use a default replicated crush rule.

Fixes: https://tracker.ceph.com/issues/67467
Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
(cherry picked from commit 78ce68de41b1d5278e14cf56dff7f15394969255)

Conflicts:
src/mon/MonmapMonitor.cc - replace `goto reply` with
`goto reply_no_propose`
src/mon/OSDMonitorcc - replace `rule_valid_for_pool_type`
with `get_rule_type` since
`rule_valid_for_pool_type` is not
backported.

2 months agorelease note: add a note for "snapshot getpath" command
Rishabh Dave [Mon, 7 Apr 2025 14:39:44 +0000 (20:09 +0530)]
release note: add a note for "snapshot getpath" command

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit a59b1fa431e2b546877c160beb5f67f2970776f0)

2 months agodoc/cephfs: add doc for "snapshot getpath" cmd
Rishabh Dave [Mon, 7 Apr 2025 14:36:33 +0000 (20:06 +0530)]
doc/cephfs: add doc for "snapshot getpath" cmd

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 9e40a5c8d7a5cd6e4c1929559c4c7e3411653de5)

2 months agoqa/cephfs: add tests for "subvolume snapshot getpath" cmd
Rishabh Dave [Mon, 7 Apr 2025 14:14:57 +0000 (19:44 +0530)]
qa/cephfs: add tests for "subvolume snapshot getpath" cmd

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 870cbf62d288ae09ea06a5da112ea62156336924)

2 months agomgr/vol: add command to get snapshot path
Rishabh Dave [Wed, 2 Apr 2025 15:25:32 +0000 (20:55 +0530)]
mgr/vol: add command to get snapshot path

Fixes: https://tracker.ceph.com/issues/70815
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 50d28992d99fcd67390815aa42f9da8ffaa82575)

Conflicts:
src/pybind/mgr/volumes/fs/volume.py
- Line where the original patch makes the change is slightly
  different in main compared to Squid banch, leading to conflict.

2 months agomgr/vol: move reusable parts from async_cloner
Rishabh Dave [Wed, 14 Feb 2024 09:52:47 +0000 (15:22 +0530)]
mgr/vol: move reusable parts from async_cloner

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 8c536f78907fe1d42e1df612604d5872019b501d)

2 months agoMerge pull request #65473 from rhcs-dashboard/wip-72963-reef
Nizamudeen A [Thu, 11 Sep 2025 06:17:46 +0000 (11:47 +0530)]
Merge pull request #65473 from rhcs-dashboard/wip-72963-reef

reef: monitoring: add user-agent headers to the urllib

2 months agomonitoring: add user-agent headers to the urllib
Nizamudeen A [Wed, 10 Sep 2025 13:00:36 +0000 (18:30 +0530)]
monitoring: add user-agent headers to the urllib

The documentation started raising 403 suddenly. Adding User-Agent
headers to the request

Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit b8fe487010483681bbc8ddb8dfe18b40ebfd346b)

2 months agomgr/DaemonState: Minimise time we hold the DaemonStateIndex lock
Brad Hubbard [Wed, 30 Jul 2025 23:12:23 +0000 (09:12 +1000)]
mgr/DaemonState: Minimise time we hold the DaemonStateIndex lock

Calling back into python functions whilst holding the lock can result in
this thread being queued for the GIL and resulting in extended delays
for threads waiting to acquire the lock.

Fixes: https://tracker.ceph.com/issues/72337
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit b4304d521f61b61515cade872824210e7d67f6db)

3 months agotest/libcephfs: use more entries to reproduce snapdiff fragmentation
Igor Fedotov [Thu, 21 Aug 2025 10:42:54 +0000 (13:42 +0300)]
test/libcephfs: use more entries to reproduce snapdiff fragmentation
issue.

Snapdiff listing fragments have different boundaries in Reef and Squid+
releases hence original reproducer (made for Reef) doesn't work properly
in S+ releases. This patch fixes that at cost of longer execution.
This might be redundant/senseless when backporting to Reef.

Related-to: https://tracker.ceph.com/issues/72518
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit 23397d32607fc307359d63cd651df3c83ada3a7f)

3 months agomds: rollback the snapdiff fragment entries with the same name if needed.
Igor Fedotov [Tue, 12 Aug 2025 13:17:49 +0000 (16:17 +0300)]
mds: rollback the snapdiff fragment entries with the same name if needed.

This is required when more entries with the same name don't fit into the
fragment. With the existing means for fragment offset specification such a splitting to be
prohibited.

Fixes: https://tracker.ceph.com/issues/72518
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit 24955e66f4826f8623d2bec1dbfc580f0e4c39ae)