]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
16 months agodoc: adding documentation for secure monitoring stack configuration 55788/head
Redouane Kachach [Tue, 27 Feb 2024 14:52:25 +0000 (15:52 +0100)]
doc: adding documentation for secure monitoring stack configuration
Fixes: https://tracker.ceph.com/issues/64596
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
16 months agoMerge pull request #55683 from lxbsz/wip-62837-new
Ilya Dryomov [Mon, 26 Feb 2024 09:17:25 +0000 (10:17 +0100)]
Merge pull request #55683 from lxbsz/wip-62837-new

doc/man/8/mount.ceph.rst: add more mount options

Reviewed-by: Zac Dover <zac.dover@proton.me>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
16 months agoMerge pull request #55705 from xxhdx1985126/wip-64535
Yingxin [Mon, 26 Feb 2024 07:39:49 +0000 (15:39 +0800)]
Merge pull request #55705 from xxhdx1985126/wip-64535

crimson/os/seastore: fix wrong-positioned asserts

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
16 months agoMerge pull request #55739 from zdover23/wip-doc-2024-02-26-glossary-omap
zdover23 [Mon, 26 Feb 2024 05:20:40 +0000 (15:20 +1000)]
Merge pull request #55739 from zdover23/wip-doc-2024-02-26-glossary-omap

doc/glossary: Add "OMAP" to glossary

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
16 months agodoc/man/8/mount.ceph.rst: add more mount options 55683/head
Xiubo Li [Wed, 22 Nov 2023 08:13:08 +0000 (16:13 +0800)]
doc/man/8/mount.ceph.rst: add more mount options

Fixes: https://tracker.ceph.com/issues/62837
Signed-off-by: Xiubo Li <xiubli@redhat.com>
16 months agodoc/glossary: Add "OMAP" to glossary 55739/head
Zac Dover [Sun, 25 Feb 2024 21:14:25 +0000 (07:14 +1000)]
doc/glossary: Add "OMAP" to glossary

Add an entry for "OMAP" to the glossary. This commit represents only the
first improvement to the documentation of OMAP in the Ceph docs suite.

Signed-off-by: Zac Dover <zac.dover@proton.me>
16 months agoMerge pull request #54802 from ajarr/wip-61617
Ilya Dryomov [Fri, 23 Feb 2024 22:47:42 +0000 (23:47 +0100)]
Merge pull request #54802 from ajarr/wip-61617

qa: Add tests to validate synced images on rbd-mirror

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
16 months agoMerge pull request #55722 from cbodley/wip-64543
Casey Bodley [Fri, 23 Feb 2024 18:11:03 +0000 (18:11 +0000)]
Merge pull request #55722 from cbodley/wip-64543

rgw/aio: avoid infinite recursion in aio_abstract()

Reviewed-by: Adam Emerson <aemerson@redhat.com>
16 months agoMerge pull request #55729 from zdover23/wip-doc-2024-02-24-rbd-nvmof-target-configure...
zdover23 [Fri, 23 Feb 2024 17:04:53 +0000 (03:04 +1000)]
Merge pull request #55729 from zdover23/wip-doc-2024-02-24-rbd-nvmof-target-configure-list-repair

doc/rbd: repair ordered list

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
16 months agoMerge pull request #55731 from zdover23/wip-doc-2024-02-24-dev-crimson
Anthony D'Atri [Fri, 23 Feb 2024 17:02:57 +0000 (12:02 -0500)]
Merge pull request #55731 from zdover23/wip-doc-2024-02-24-dev-crimson

doc/dev: fix spelling in crimson.rst

16 months agodoc/dev: fix spelling in crimson.rst 55731/head
Zac Dover [Fri, 23 Feb 2024 16:21:54 +0000 (02:21 +1000)]
doc/dev: fix spelling in crimson.rst

Repair a confusing sentence in doc/dev/crimson.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
16 months agoMerge pull request #55699 from Svelar/seastore_doc
zdover23 [Fri, 23 Feb 2024 16:10:56 +0000 (02:10 +1000)]
Merge pull request #55699 from Svelar/seastore_doc

doc/crimson: cleanup duplicate seastore description

Reviewed-by: Zac Dover <zac.dover@proton.me>
16 months agodoc/rbd: repair ordered list 55729/head
Zac Dover [Fri, 23 Feb 2024 16:05:42 +0000 (02:05 +1000)]
doc/rbd: repair ordered list

Fix the numbering in an ordered list. The numbering was thrown off
because a ".. prompt" directive was improperly indented (it wasn't
indented at all).

See https://github.com/ceph/ceph/pull/55540#discussion_r1500051264

Signed-off-by: Zac Dover <zac.dover@proton.me>
16 months agoMerge pull request #55565 from BBoozmen/oozmen_avoid_path_normalization
Casey Bodley [Fri, 23 Feb 2024 16:01:24 +0000 (16:01 +0000)]
Merge pull request #55565 from BBoozmen/oozmen_avoid_path_normalization

rgw/http/client-side: disable curl path normalization

Reviewed-by: Casey Bodley <cbodley@redhat.com>
16 months agoMerge pull request #55627 from smanjara/wip-fix-log-op
Casey Bodley [Fri, 23 Feb 2024 15:00:44 +0000 (15:00 +0000)]
Merge pull request #55627 from smanjara/wip-fix-log-op

rgw: don't pass log_op into link_olh during PutObject.

Reviewed-by: Jane Zhu <jzhu116@bloomberg.net>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
16 months agoMerge pull request #55713 from tchaikov/wip-debian-control-tab
Rixin Luo [Fri, 23 Feb 2024 02:22:18 +0000 (10:22 +0800)]
Merge pull request #55713 from tchaikov/wip-debian-control-tab

debian/control: replace <tab> with spaces

16 months agorgw/aio: avoid infinite recursion in aio_abstract() 55722/head
Casey Bodley [Thu, 22 Feb 2024 21:54:54 +0000 (16:54 -0500)]
rgw/aio: avoid infinite recursion in aio_abstract()

a recent regression from 320a2179a3c6c1981a0fd2494938515997c1bfad causes
aio_abstract() to recurse when given an empty optional_yield. this is
exposed by the librgw_file tests

Fixes: https://tracker.ceph.com/issues/64543
Signed-off-by: Casey Bodley <cbodley@redhat.com>
16 months agoMerge pull request #55540 from oritwas/wip-doc-nvmeof
Ilya Dryomov [Thu, 22 Feb 2024 20:48:00 +0000 (21:48 +0100)]
Merge pull request #55540 from oritwas/wip-doc-nvmeof

doc: Initial NVMe-oF gateway docs

Reviewed-by: Zac Dover <zac.dover@proton.me>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
16 months agoMerge pull request #55700 from wanglinke521/wlk-bluefs-dev
Igor Fedotov [Thu, 22 Feb 2024 20:19:10 +0000 (23:19 +0300)]
Merge pull request #55700 from wanglinke521/wlk-bluefs-dev

os/bluestore: fix the problem of l_bluefs_log_compactions double recording

Reviewed-by: Igor Fedotov <igor.fedotov@croit.io>
16 months agoMerge pull request #54992 from ifed01/wip-ifed-enforce-min-alloc-size
Igor Fedotov [Thu, 22 Feb 2024 20:17:49 +0000 (23:17 +0300)]
Merge pull request #54992 from ifed01/wip-ifed-enforce-min-alloc-size

os/bluestore: introduce bluestore_debug_enforce_min_alloc_size config

Reviewed-by: Pere Diaz Bou <pere-altea@hotmail.com>
16 months agoMerge pull request #55407 from xxhdx1985126/wip-64282
Samuel Just [Thu, 22 Feb 2024 18:45:39 +0000 (10:45 -0800)]
Merge pull request #55407 from xxhdx1985126/wip-64282

crimson/osd/shard_services: make sure that only up/acting members can create pgs

Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Matan Breizman <mbreizma@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
16 months agoMerge pull request #55688 from yuvalif/wip-yuval-split-notif-test
Yuval Lifshitz [Thu, 22 Feb 2024 18:10:19 +0000 (20:10 +0200)]
Merge pull request #55688 from yuvalif/wip-yuval-split-notif-test

test/rgw/notifications: split tests between basic, kafka and amqp

reviewed-by: cbodley

16 months agodoc: Add NVMe-oF gateway documentation 55540/head
Orit Wasserman [Mon, 12 Feb 2024 12:39:38 +0000 (14:39 +0200)]
doc: Add NVMe-oF gateway documentation

- Add nvmeof-initiator-esx.rst
- Add nvmeof-initiator-linux.rst
- Add nvmeof-initiators.rst
- Add nvmeof-overview.rst
- Add nvmeof-requirements.rst
- Add nvmeof-target-configure.rst
- Add links to rbd-integrations.rst

Co-authored-by: Ilya Dryomov <idryomov@redhat.com>
Co-authored-by: Zac Dover <zac.dover@proton.me>
Signed-off-by: Orit Wasserman <owasserm@ibm.com>
16 months agoqa: Add tests to validate syncing of images using rbd-mirror 54802/head
Ramana Raja [Thu, 25 May 2023 16:48:12 +0000 (16:48 +0000)]
qa: Add tests to validate syncing of images using rbd-mirror

Introduce functional tests to validate that the images under
workloads are correctly mirrored between two clusters using snapshot
based mirroring.

Run workload on a primary image using a krbd or nbd client. Take
mirror snapshots of the image under workload. Unmount the mapped image
and calculate its MD5 checksum before demoting it. After demotion,
wait for the mirror status of the image to be 'up+unknown' in both
the clusters. This is to make sure that the non-primary image in the
other cluster is ready to be promoted. Now promote the non-primary
image in the other cluster. Map the promoted image and calculate its
MD5 checksum. Verify that the checksums of the demoted and promoted
images in the two clusters are the same.

The above test is run as part of two different workunits:
 - a workunit that validates the syncing of multiple mirrored images
   with workloads running on them
 - another workunit that validates the syncing of a single mirrored
   image with workload running on it and the image is set as primary
   alternatively between the two clusters, as it happens during
   failover and failback scenarios.

Fixes: https://tracker.ceph.com/issues/61617
Signed-off-by: Ramana Raja <rraja@redhat.com>
Co-authored-by: Ilya Dryomov <idryomov@redhat.com>
Co-authored-by: Christopher Hoffman <choffman@redhat.com>
16 months agoqa/workunits: make wait_for_status_in_pool_dir() reentrant
Ramana Raja [Fri, 9 Feb 2024 00:32:37 +0000 (19:32 -0500)]
qa/workunits: make wait_for_status_in_pool_dir() reentrant

In rbd_mirror_helpers.sh, the `wait_for_status_in_pool_dir()` helper
stored `mirror image status` and `mirror pool status` command outputs
in files that could be shared over successive calls or calls from
multiple threads. Instead store the command outputs in local variables
to make `wait_for_status_in_pool_dir()` reentrant.

Signed-off-by: Ramana Raja <rraja@redhat.com>
16 months agoMerge pull request #55634 from cbodley/wip-64480
Casey Bodley [Thu, 22 Feb 2024 16:37:13 +0000 (16:37 +0000)]
Merge pull request #55634 from cbodley/wip-64480

rgw: RGWSI_SysObj_Cache::remove() invalidates after successful delete

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
16 months agodebian/control: replace <tab> with spaces 55713/head
Kefu Chai [Tue, 20 Feb 2024 16:07:00 +0000 (00:07 +0800)]
debian/control: replace <tab> with spaces

to be consistent with the rest of this file

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
16 months agoos/bluestore: introduce bluestore_debug_enforce_min_alloc_size config 54992/head
Igor Fedotov [Wed, 13 Dec 2023 16:05:45 +0000 (19:05 +0300)]
os/bluestore: introduce bluestore_debug_enforce_min_alloc_size config
parameter.

This allows to override persistent min_alloc_size if needed.
This might be helpful to troubleshoot and work around issues like
https://tracker.ceph.com/issues/63618

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
16 months agoMerge pull request #55583 from ronen-fr/wip-rf-hobject
Ronen Friedman [Thu, 22 Feb 2024 12:31:31 +0000 (14:31 +0200)]
Merge pull request #55583 from ronen-fr/wip-rf-hobject

osd: improve hobject_t::to_str() performance

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
16 months agoos/bluestore: fix bluefs perf counters about l_bluefs_log_compactions 55700/head
wanglinke [Thu, 22 Feb 2024 02:19:56 +0000 (10:19 +0800)]
os/bluestore: fix bluefs perf counters about l_bluefs_log_compactions

In BlueFS::_compact_log_sync_LNF_LD,l_bluefs_log_compactions
is being counted two times.

Fixes: https://tracker.ceph.com/issues/64533
co-author: Jrchyang Yu <yuzhiqiang_yewu@cmss.chinamobile.com>
Signed-off-by: Wang Linke <wanglinke_yewu@cmss.chinamobile.com>
16 months agotest/rgw/notifications: split tests between basic, kafka and amqp 55688/head
Yuval Lifshitz [Thu, 22 Feb 2024 09:58:00 +0000 (09:58 +0000)]
test/rgw/notifications: split tests between basic, kafka and amqp

see comment: https://tracker.ceph.com/issues/64184#note-3

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
16 months agoMerge pull request #55641 from Matan-B/wip-matanb-crimson-alien-buf-v2
Matan Breizman [Thu, 22 Feb 2024 09:29:19 +0000 (11:29 +0200)]
Merge pull request #55641 from Matan-B/wip-matanb-crimson-alien-buf-v2

crimson/osd/main: Enable multicore client messenger

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: chunmei-liu <chunmei.liu@intel.com>
16 months agocrimson/os/seastore: fix wrong-positioned asserts 55705/head
Xuehan Xu [Thu, 22 Feb 2024 09:03:43 +0000 (17:03 +0800)]
crimson/os/seastore: fix wrong-positioned asserts

Fixes: https://tracker.ceph.com/issues/64535
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
16 months agoMerge pull request #55643 from afreen23/fix-62089
Nizamudeen A [Thu, 22 Feb 2024 04:50:09 +0000 (10:20 +0530)]
Merge pull request #55643 from afreen23/fix-62089

mgr/dashboard: Handle errors for /api/osd/settings

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
16 months agoMerge pull request #55328 from rosinL/wip-fix-64117
Kefu Chai [Thu, 22 Feb 2024 02:47:29 +0000 (10:47 +0800)]
Merge pull request #55328 from rosinL/wip-fix-64117

cmake/AddCephTest: bind crimson unittest to different cores

Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
16 months agodoc/crimson: cleanup duplicate seastore description 55699/head
Rongqi Sun [Thu, 22 Feb 2024 02:41:43 +0000 (10:41 +0800)]
doc/crimson: cleanup duplicate seastore description

Signed-off-by: Rongqi Sun <sunrongqi@huawei.com>
16 months agoMerge pull request #55684 from athanatos/sjust/wip-seastar-asan-fibers
Samuel Just [Wed, 21 Feb 2024 18:17:56 +0000 (10:17 -0800)]
Merge pull request #55684 from athanatos/sjust/wip-seastar-asan-fibers

crimson: fixes for stack-use-after-return on recent clang and gcc versions

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
16 months agoMerge pull request #55401 from kamoltat/wip-ksirivad-osdmap-encode-bug
Radoslaw Zarzynski [Wed, 21 Feb 2024 15:24:01 +0000 (16:24 +0100)]
Merge pull request #55401 from kamoltat/wip-ksirivad-osdmap-encode-bug

src/osd/OSDMap.cc: Fix encoder to produce same bytestream

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
16 months agotest: verify that hobject_t formatting is stable 55583/head
Ronen Friedman [Wed, 21 Feb 2024 07:49:35 +0000 (01:49 -0600)]
test: verify that hobject_t formatting is stable

using 'Squid' as baseline.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
16 months agotest: fixing CI compilation of test_transaction.cc
Ronen Friedman [Mon, 19 Feb 2024 13:32:34 +0000 (07:32 -0600)]
test: fixing CI compilation of test_transaction.cc

Fixing a compilation warning in test_transaction.cc, as the CI
builds it with '-Werror'.

See https://jenkins.ceph.com/job/ceph-pull-requests/129517/

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
16 months agotest/scrub: fixes to aggregate initialization in test_crimson_scrub.cc
Ronen Friedman [Sun, 18 Feb 2024 15:42:07 +0000 (09:42 -0600)]
test/scrub: fixes to aggregate initialization in test_crimson_scrub.cc

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
16 months agoosd: use empty() instead of length()
Ronen Friedman [Sun, 18 Feb 2024 11:53:50 +0000 (05:53 -0600)]
osd: use empty() instead of length()

for std::string

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
16 months agocommon: improve hobject_t fmtlib formatter performance
Ronen Friedman [Sun, 18 Feb 2024 06:32:10 +0000 (00:32 -0600)]
common: improve hobject_t fmtlib formatter performance

The new version of the code only takes about 38% of the time of the old
one.  See https://github.com/ronen-fr/hobjtostr/tree/rf-2 for the code
used to benchmark the new version.

hobject_fmt.h is folded into hobject.h, as fmtlib is now an accepted
dependency in all of Ceph.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
16 months agocommon: fold object_fmt.h into object.h
Ronen Friedman [Thu, 15 Feb 2024 18:28:11 +0000 (12:28 -0600)]
common: fold object_fmt.h into object.h

as fmtlib is now an accepted dependency in all of Ceph.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
16 months agoosd: improve hobject_t::to_str() performance
Ronen Friedman [Mon, 12 Feb 2024 16:23:15 +0000 (10:23 -0600)]
osd: improve hobject_t::to_str() performance

The new version of the code takes only ~70% of the time of the old one.
See https://github.com/ronen-fr/hobjtostr/tree/rf-1 for the code used
to benchmark the performance of this and various other implementations.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
16 months agoMerge pull request #55686 from rkachach/fix_issue_64516
Redouane Kachach [Wed, 21 Feb 2024 13:31:26 +0000 (14:31 +0100)]
Merge pull request #55686 from rkachach/fix_issue_64516

mgr/rook: adding empty calls to upgrade_ls and upgrade_status

16 months agoMerge pull request #55350 from rkachach/fix_issue_64211
Redouane Kachach [Wed, 21 Feb 2024 12:29:14 +0000 (13:29 +0100)]
Merge pull request #55350 from rkachach/fix_issue_64211

mgr/rook: removing all the code related to OSDs creation/removal

16 months agomgr/dashboard: Handle errors for /api/osd/settings 55643/head
Afreen [Tue, 13 Feb 2024 10:26:09 +0000 (15:56 +0530)]
mgr/dashboard: Handle errors for /api/osd/settings

Fixes https://tracker.ceph.com/issues/62089

issue:
=====
/api/osd/settings returns "TypeError: string indices must be
integers" sometimes.
The result is coming from `osd dump` command which instead of returning
an object returns an error message which then displays error on
dashboard.

fix:
====
Added a try-catch block to handle error and updated frontend code to
handle those

Signed-off-by: Afreen <afreen23.git@gmail.com>
16 months agocommon/buffer_seastar: move to crimson/crimson/buffer_seastar 55641/head
Matan Breizman [Mon, 19 Feb 2024 16:11:53 +0000 (16:11 +0000)]
common/buffer_seastar: move to crimson/crimson/buffer_seastar

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
16 months agocommon/buffer_seastar: fix alien threads memory
Matan Breizman [Mon, 19 Feb 2024 12:24:52 +0000 (12:24 +0000)]
common/buffer_seastar: fix alien threads memory

The underlying raw_seastar_foreign_ptr::ptr is allocated from seastar.
This ptr is wrapped with seastar::foreign_ptr:
```
/// \c foreign_ptr<> wraps smart pointers -- \ref seastar::shared_ptr<>,
/// or similar, and remembers on what core this happened.
/// When the \c foreign_ptr<> object is destroyed, it sends a message to
/// the original core so that the wrapped object can be safely destroyed.
```

The issue is that once the pointer is de-allocated from an alien thread
it is unable to send a message to the original core.
Fix this issue by making use of seastar::alien integration with non-seastar applications.
In case ~raw_seastar_foreign_ptr() will be called from an alien thread, we will submit *and wait*
for the memory to be released from the origin core.

Fixes: https://tracker.ceph.com/issues/64086
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
16 months agoMerge pull request #55642 from ivoalmeida/subvolume-group-edit-fix
Ivo Almeida [Wed, 21 Feb 2024 09:26:15 +0000 (06:26 -0300)]
Merge pull request #55642 from ivoalmeida/subvolume-group-edit-fix

mgr/dashboard: fix subvolume group edit

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: afreen23 <NOT@FOUND>
Reviewed-by: Nizamudeen A <nia@redhat.com>
16 months agomgr/rook: adding empty calls to upgrade_ls and upgrade_status 55686/head
Redouane Kachach [Wed, 21 Feb 2024 07:27:53 +0000 (08:27 +0100)]
mgr/rook: adding empty calls to upgrade_ls and upgrade_status

added empty calls to upgrade_ls and upgrade_status to avoid
dashboard errors when entering the view Cluster > Upgrade. Empty
calls are used because we don't support the upgrade functionality
in rook as we do for normal Ceph deployments. In case of rook user
has to follow a different process to upgrade Ceph.

Fixes: https://tracker.ceph.com/issues/64516
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
16 months agoMerge pull request #55535 from rhcs-dashboard/nvmeof-api-1.0.0
Nizamudeen A [Wed, 21 Feb 2024 06:27:48 +0000 (11:57 +0530)]
Merge pull request #55535 from rhcs-dashboard/nvmeof-api-1.0.0

mgr/dashboard: update nvmeof protoc to 1.0.0

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: baum <NOT@FOUND>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
16 months agoMerge pull request #55608 from athanatos/wip-debug-64457
Samuel Just [Wed, 21 Feb 2024 05:58:37 +0000 (21:58 -0800)]
Merge pull request #55608 from athanatos/wip-debug-64457

unittest-seastar-socket: tolerate connection_reset in test_unexpected_down

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Matan Breizman <mbreizma@redhat.com>
16 months agoMerge PR #55660 into main
Venky Shankar [Wed, 21 Feb 2024 04:20:02 +0000 (09:50 +0530)]
Merge PR #55660 into main

* refs/pull/55660/head:
qa: disable snapshot_clone_no_wait for some tests

Reviewed-by: Neeraj Pratap Singh <neesingh@redhat.com>
16 months agotest/crimson: construct app_template with smp_opts imported from ctest 55328/head
luo rixin [Wed, 7 Feb 2024 03:48:30 +0000 (11:48 +0800)]
test/crimson: construct app_template with smp_opts imported from ctest

Co-authored-by: Kefu Chai <tchaikov@gmail.com>
Signed-off-by: luo rixin <luorixin@huawei.com>
16 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>
16 months agocmake/AddCephTest: Specify resoureces to crimson unittest
luo rixin [Wed, 7 Feb 2024 03:21:50 +0000 (11:21 +0800)]
cmake/AddCephTest: Specify resoureces to crimson unittest

When running crimson unittest, the seastar framework always
use and only use cpu0, and with many parallel crimson unittest
jobs, all the jobs are running on cpu0, the other cpu cores
can't used, make the make check run very slow, even timeout
happens. Use set_property RESOURCE_GROUPS to specify cpu resources
to crimson unittest, and accelerate make check running.

Fixes: https://tracker.ceph.com/issues/64117
Co-authored-by: Kefu Chai <tchaikov@gmail.com>
Signed-off-by: luo rixin <luorixin@huawei.com>
16 months agocrimson/.../shard_services.cc: pass by reference from do_with 55684/head
Samuel Just [Wed, 21 Feb 2024 00:43:16 +0000 (16:43 -0800)]
crimson/.../shard_services.cc: pass by reference from do_with

Capturing the value passed by do_with by value causes later captures
by reference to be invalid past the lifetime of the lambda frame.

Fixes: https://tracker.ceph.com/issues/64513
Signed-off-by: Samuel Just <sjust@redhat.com>
16 months agocrimson/.../shard_services.cc: trivial formatting fix
Samuel Just [Wed, 21 Feb 2024 00:41:26 +0000 (16:41 -0800)]
crimson/.../shard_services.cc: trivial formatting fix

Signed-off-by: Samuel Just <sjust@redhat.com>
16 months agocmake/.../FindSanitizers: add check for Sanitizers_FIBER_SUPPPORT
Samuel Just [Tue, 20 Feb 2024 23:56:26 +0000 (23:56 +0000)]
cmake/.../FindSanitizers: add check for Sanitizers_FIBER_SUPPPORT

With newer clang and gcc versions (observed on clang-17.0.6 as
well as gcc 12/13), asan is throwing stack-use-after-return
during OSD startup related to usage of seastar::async, which
relies on swapcontext internally.

seastar/src/core/thread.cc supports asan's hooks, but only if
SEASTAR_HAVE_ASAN_FIBER_SUPPORT is set.  seastar's CMakeList.txt
sets it based on Sanitizers_FIBER_SUPPORT, which probably should
be set by the module at src/seastar/cmake/FindSanitizers.cmake,
but that module doesn't seem to be actually invoked anywhere.

Ceph's version of that module (cmake/modules/FindSanitizers.cmake)
does not set Sanitizers_FIBER_SUPPORT.

This commit adds that check as well as the related code snippet.

Fixes: https://tracker.ceph.com/issues/64512
Signed-off-by: Samuel Just <sjust@redhat.com>
16 months agoMerge pull request #55677 from stackhpc/typo-osd-config-ref
Anthony D'Atri [Tue, 20 Feb 2024 22:58:25 +0000 (17:58 -0500)]
Merge pull request #55677 from stackhpc/typo-osd-config-ref

doc/rados/configuration/osd-config-ref: fix typo

16 months agorgw: set log_data_change to true during link olh only in 55627/head
Shilpa Jagannath [Sat, 17 Feb 2024 05:09:07 +0000 (00:09 -0500)]
rgw: set log_data_change to true during link olh only in
multisite config

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
16 months agodoc/rados/configuration/osd-config-ref: fix typo 55677/head
Pierre Riteau [Tue, 20 Feb 2024 21:54:01 +0000 (22:54 +0100)]
doc/rados/configuration/osd-config-ref: fix typo

Signed-off-by: Pierre Riteau <pierre@stackhpc.com>
16 months agoMerge pull request #55670 from zdover23/wip-doc-2024-02-21-rados-ops-add-or-rm-mons
Anthony D'Atri [Tue, 20 Feb 2024 19:03:06 +0000 (14:03 -0500)]
Merge pull request #55670 from zdover23/wip-doc-2024-02-21-rados-ops-add-or-rm-mons

doc/rados: fix broken links

16 months agodoc/rados: fix broken links 55670/head
Zac Dover [Tue, 20 Feb 2024 18:07:07 +0000 (04:07 +1000)]
doc/rados: fix broken links

Fix broken links in doc/rados/operations/add-or-rm-mons.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
16 months agoqa: disable snapshot_clone_no_wait for some tests 55660/head
Venky Shankar [Mon, 19 Feb 2024 06:36:32 +0000 (01:36 -0500)]
qa: disable snapshot_clone_no_wait for some tests

Signed-off-by: Venky Shankar <vshankar@redhat.com>
16 months agoMerge PR #55087 into main
Venky Shankar [Tue, 20 Feb 2024 16:47:41 +0000 (22:17 +0530)]
Merge PR #55087 into main

* refs/pull/55087/head:
client: Add exception to POSIX ACL xattrs in removexattr
client: Fix parsing of xattr namespace in removexattr

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
16 months agoMerge pull request #55239 from jianwei1216/fix_pg_created_lost_main3
Yuri Weinstein [Tue, 20 Feb 2024 16:10:50 +0000 (08:10 -0800)]
Merge pull request #55239 from jianwei1216/fix_pg_created_lost_main3

Solution 1: osd/OSD: reply pg_created when pg is peered

Reviewed-by: Samuel Just <sjust@redhat.com>
16 months agoMerge pull request #55218 from tchaikov/debian/postinst
Yuri Weinstein [Tue, 20 Feb 2024 16:10:07 +0000 (08:10 -0800)]
Merge pull request #55218 from tchaikov/debian/postinst

debian/*.postinst: add adduser as a dependency and specify --home when adduser

Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Adam King adking@redhat.com
16 months agoMerge pull request #52114 from yuvalif/wip-end2end-tracing
Radoslaw Zarzynski [Tue, 20 Feb 2024 15:57:39 +0000 (16:57 +0100)]
Merge pull request #52114 from yuvalif/wip-end2end-tracing

tracer/osd/librados/build/rgw: rgw and osd end2end tracing using opentelemetry

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
16 months agomgr/rook: raise an exception when user calls OSD related methods 55350/head
Redouane Kachach [Tue, 20 Feb 2024 13:37:17 +0000 (14:37 +0100)]
mgr/rook: raise an exception when user calls OSD related methods

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
16 months agoMerge pull request #55667 from zdover23/wip-doc-2024-02-20-radosgw/multisite
Anthony D'Atri [Tue, 20 Feb 2024 15:14:23 +0000 (10:14 -0500)]
Merge pull request #55667 from zdover23/wip-doc-2024-02-20-radosgw/multisite

doc/radosgw: edit multisite.rst

16 months agoMerge PR #55601 into main
Patrick Donnelly [Tue, 20 Feb 2024 14:35:27 +0000 (09:35 -0500)]
Merge PR #55601 into main

* refs/pull/55601/head:
qa: test fuse/kclient for mds upgrade seq
qa: ignore OSD_DOWN during cephadm upgrades
qa: ignore warning "Replacing daemon"
qa: ignore MDS_INSUFFICIENT_STANDBY
qa: remove ignorelist error parenthesis
mds: update comment on kclient decoding of MDSMap
qa: do upgrades from quincy and older reef minor releases
mds: reverse MDSMap encoding of max_xattr_size/bal_rank_mask

Reviewed-by: Venky Shankar <vshankar@redhat.com>
16 months agodoc/radosgw: edit multisite.rst 55667/head
Zac Dover [Tue, 20 Feb 2024 12:06:11 +0000 (22:06 +1000)]
doc/radosgw: edit multisite.rst

Edit "Varieties of Multi-Site Configuration" in
doc/radosgw/multisite.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
16 months agoMerge pull request #55632 from rosinL/wip-64420
Rixin Luo [Tue, 20 Feb 2024 10:29:37 +0000 (18:29 +0800)]
Merge pull request #55632 from rosinL/wip-64420

debian/control: add new dependencies protobuf for crismon

16 months agoMerge PR #52670 into main
Venky Shankar [Tue, 20 Feb 2024 04:58:48 +0000 (10:28 +0530)]
Merge PR #52670 into main

* refs/pull/52670/head:
doc: add the reject the clone when threads are not available feature in the document
qa: add test cases for the support to reject clones feature
mgr/volumes: support to reject CephFS clones if cloner threads are not available

Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
16 months agoCMakeLists: Modify CEPH_TEST_TIMEOUT from 3600s to 7200s
luo rixin [Sat, 27 Jan 2024 06:59:11 +0000 (14:59 +0800)]
CMakeLists: Modify CEPH_TEST_TIMEOUT from 3600s to 7200s

There are some older Arm server running pretty slow, the make
check jobs like `check-generated.sh` are killed as the job timeout.
Make CEPH_TEST_TIMEOUT more longer.

Signed-off-by: luo rixin <luorixin@huawei.com>
16 months agoqa: test fuse/kclient for mds upgrade seq 55601/head
Patrick Donnelly [Fri, 16 Feb 2024 18:25:52 +0000 (13:25 -0500)]
qa: test fuse/kclient for mds upgrade seq

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoqa: ignore OSD_DOWN during cephadm upgrades
Patrick Donnelly [Fri, 16 Feb 2024 15:09:53 +0000 (10:09 -0500)]
qa: ignore OSD_DOWN during cephadm upgrades

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoqa: ignore warning "Replacing daemon"
Patrick Donnelly [Fri, 16 Feb 2024 14:46:18 +0000 (09:46 -0500)]
qa: ignore warning "Replacing daemon"

This is expected for cephadm deployments where join_fs is configured, causing
affinity replacements.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoqa: ignore MDS_INSUFFICIENT_STANDBY
Patrick Donnelly [Fri, 16 Feb 2024 01:23:32 +0000 (20:23 -0500)]
qa: ignore MDS_INSUFFICIENT_STANDBY

This is expected when bringing a volume and its mds up initially.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoqa: remove ignorelist error parenthesis
Patrick Donnelly [Fri, 16 Feb 2024 01:16:20 +0000 (20:16 -0500)]
qa: remove ignorelist error parenthesis

Some messages are duplicated to the cluster log lookign like:

    2024-02-15T22:54:31.244 INFO:teuthology.orchestra.run.smithi033.stdout:2024-02-15T22:50:00.000263+0000 mon.smithi033 (mon.0) 558 : cluster 4 [ERR] MDS_ALL_DOWN: 1 filesystem is offline

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agomds: update comment on kclient decoding of MDSMap
Patrick Donnelly [Thu, 15 Feb 2024 19:31:47 +0000 (14:31 -0500)]
mds: update comment on kclient decoding of MDSMap

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoqa: do upgrades from quincy and older reef minor releases
Patrick Donnelly [Thu, 15 Feb 2024 02:49:17 +0000 (21:49 -0500)]
qa: do upgrades from quincy and older reef minor releases

Fixes: https://tracker.ceph.com/issues/64441
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agomds: reverse MDSMap encoding of max_xattr_size/bal_rank_mask
Patrick Donnelly [Thu, 15 Feb 2024 15:28:32 +0000 (10:28 -0500)]
mds: reverse MDSMap encoding of max_xattr_size/bal_rank_mask

Commit e134c890 adds the bal_rank_mask with encoded (ev) version 17.  This was
merged into main Oct 2022 and made it into the reef release normally.

Commit 7b8def5c adds the max_xattr_size also with encoded (ev) version 17 but
places it before bal_rank_mask. This is problematic as there were no plans to
backport e134c890 to quincy or pacific so piggybacking on the ev 17 bump would
not work and otherwise would require the backports to be done as a set to
ensure consistency (including with the kernel client).

However, the real issue is that 7b8def5c was not merged until after reef was
already cut. This required 7b8def5c to be backported separately in [1] which
was not merged until after v18.2.1 (current reef HEAD as of this commit).
Ultimately, this means that there are reef versions (v18.2.[01]) in the wild
which expect bal_rank_mask to be encoded at ev17 and not (max_xattr_size,
bal_rank_mask). Adding to the complications, the kernel client has already
merged code [2] expecting max_xattr_size for ev17.

It was decided in a github discussion [3] to move bal_rank_mask to ev18 to
avoid updating the kernel client which was done in the main branch via 36ee8e7e
and update the reef max_xattr_size backport with the same change (d8cebd67).

Unfortunately, this breaks upgrades v18.2.[01] to newer reef versions or to
main.  The reason is that monitors will encode v17 with bal_rank_mask
(max_xattr_size is not merged yet) and send that to upgraded mgrs (which are
upgraded first). The mgr will attempt to decode bal_rank_mask as a uint64_t
(max_xattr_size) but fail because an empty (by default) bal_rank_mask is simply
encoded as a signed 32-bit integer. Consequently, the mgr will fail decoding
with:

    failed to decode message of type 45 v1: End of buffer [buffer:2]

Of course the problem does not stop there, even if the mgr were able to handle
this, the monitors/mds/clients would fail in similar fashion.

So the only choice left is to fix max_xattr_size to be encoded at ev18.
Fortunately, v18.2.2 has not been released nor has any max_xattr_size backport
to quincy/pacific been merged. The main downside will be that kernels will
wrongly decode ev17 (which is already true for ceph clusters running
v18.2.[01]). A follow-up kernel fix will be required.

[1] https://tracker.ceph.com/issues/59405
[2] linux.git d93231a6bc8a452323d5fef16cca7107ce483a27
[3] https://github.com/ceph/ceph/pull/53340#discussion_r1399255031

Fixes: https://tracker.ceph.com/issues/64440
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
16 months agoMerge pull request #55522 from cbodley/wip-63373
Casey Bodley [Mon, 19 Feb 2024 17:58:31 +0000 (17:58 +0000)]
Merge pull request #55522 from cbodley/wip-63373

rgw/datalog: RGWDataChangesLog::add_entry() uses null_yield

Reviewed-by: Adam Emerson <aemerson@redhat.com>
16 months agoMerge pull request #54554 from clwluvw/s3select-usage
Casey Bodley [Mon, 19 Feb 2024 17:56:40 +0000 (17:56 +0000)]
Merge pull request #54554 from clwluvw/s3select-usage

rgw: add s3select usage to log usage

Reviewed-by: Gal Salomon <gsalomon@redhat.com>
16 months agoMerge pull request #55236 from tobias-urdin/keystone-invalidate-admin-token
Casey Bodley [Mon, 19 Feb 2024 17:54:42 +0000 (17:54 +0000)]
Merge pull request #55236 from tobias-urdin/keystone-invalidate-admin-token

rgw: invalidate and retry keystone admin token

Reviewed-by: Jiffin Tony Thottan <jthottan@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
16 months agoMerge pull request #55286 from BBoozmen/oozmen_decorate_lc_events
Casey Bodley [Mon, 19 Feb 2024 17:53:28 +0000 (17:53 +0000)]
Merge pull request #55286 from BBoozmen/oozmen_decorate_lc_events

rgw/lc: decorating log events with more details

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
16 months agoMerge pull request #55451 from pritha-srivastava/wip-rgw-admin-ops-user-info
Casey Bodley [Mon, 19 Feb 2024 17:52:02 +0000 (17:52 +0000)]
Merge pull request #55451 from pritha-srivastava/wip-rgw-admin-ops-user-info

rgw: code to display the complete user id that includes tenant, names…

Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
16 months agoMerge pull request #55508 from cbodley/wip-59186
Casey Bodley [Mon, 19 Feb 2024 17:50:59 +0000 (17:50 +0000)]
Merge pull request #55508 from cbodley/wip-59186

rgw/user: add 'active' flag to RGWAccessKey

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
16 months agoMerge pull request #55509 from ivancich/wip-display-manifest
Casey Bodley [Mon, 19 Feb 2024 17:49:13 +0000 (17:49 +0000)]
Merge pull request #55509 from ivancich/wip-display-manifest

rgw: add new `object manifest` sub-command

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
16 months agoMerge pull request #55637 from zdover23/wip-doc-2024-02-19-cephfs-add-remove-mds...
zdover23 [Mon, 19 Feb 2024 16:22:17 +0000 (02:22 +1000)]
Merge pull request #55637 from zdover23/wip-doc-2024-02-19-cephfs-add-remove-mds-warning-notes

doc/cephfs: edit add-remove-mds

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
16 months agodoc/cephfs: edit add-remove-mds 55637/head
Zac Dover [Mon, 19 Feb 2024 08:41:45 +0000 (18:41 +1000)]
doc/cephfs: edit add-remove-mds

Disambiguate a note in doc/cephfs/add-remove-mds.rst to help readers
distinguish between cases in which they might want to use an automated
tool such as cephadm to deploy MDSes and cases in which they might want
to manually deploy MDSes.

See: https://github.com/ceph/ceph/pull/45639

Tracker: https://tracker.ceph.com/issues/54551

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
16 months agomgr/dashboard: fix subvolume group edit 55642/head
Ivo Almeida [Mon, 19 Feb 2024 12:42:34 +0000 (12:42 +0000)]
mgr/dashboard: fix subvolume group edit

Fixes: https://tracker.ceph.com/issues/64487
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
16 months agocrimson/osd/main: enable multicore client msgr
Matan Breizman [Mon, 19 Feb 2024 12:22:16 +0000 (12:22 +0000)]
crimson/osd/main: enable multicore client msgr

Taken from: f78e99c05943ea336a3fe2cc1568fea81e6a9855

Co-authored-by: Yingxin Cheng <yingxin.cheng@intel.com>
Co-authored-by: Chunmei Liu <chunmei.liu@intel.com>
Co-authored-by: Xinyu Huang <xinyu.huang@intel.com>
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
16 months agodebian/control: add new dependencies protobuf for crismon 55632/head
luo rixin [Mon, 19 Feb 2024 08:52:07 +0000 (16:52 +0800)]
debian/control: add new dependencies protobuf for crismon

As PR https://github.com/ceph/ceph/pull/55444 update seastar version,
the new seastar imports new dependencies protobuf.

Fixes: https://tracker.ceph.com/issues/64420
Signed-off-by: luo rixin <luorixin@huawei.com>
16 months agoMerge PR #55471 into main
Venky Shankar [Mon, 19 Feb 2024 08:47:48 +0000 (14:17 +0530)]
Merge PR #55471 into main

* refs/pull/55471/head:
qa: verify labelled replication perf metrics
qa: test per-client labelled perf counters
mds: export per-client metrics as labelled perf counters
cephfs_mirror: add labeled replication performance metrics
cephfs-mirror: typo ending bracket

Reviewed-by: Robin H. Johnson <robbat2@orbis-terrarum.net>
16 months agoMerge pull request #55633 from zdover23/wip-doc-2024-02-18-man-ceph-objectstore-tool
zdover23 [Mon, 19 Feb 2024 08:00:06 +0000 (18:00 +1000)]
Merge pull request #55633 from zdover23/wip-doc-2024-02-18-man-ceph-objectstore-tool

doc/man: edit "manipulating the omap key"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>