]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
16 months agosrc/test/common/test_hobject: remove constexpr 55817/head
rkhudov [Wed, 28 Feb 2024 17:27:39 +0000 (17:27 +0000)]
src/test/common/test_hobject: remove constexpr

Signed-off-by: rkhudov <rhudov@gmail.com>
16 months agoMerge pull request #55273 from pcuzner/add-nvmeof-to-autotune
Adam King [Wed, 28 Feb 2024 16:42:45 +0000 (11:42 -0500)]
Merge pull request #55273 from pcuzner/add-nvmeof-to-autotune

cephadm: Add nvmeof to autotuner calculation

Reviewed-by: Adam King <adking@redhat.com>
16 months agoMerge pull request #53840 from rhcs-dashboard/add-health-check-haproxy
Adam King [Wed, 28 Feb 2024 16:41:22 +0000 (11:41 -0500)]
Merge pull request #53840 from rhcs-dashboard/add-health-check-haproxy

mgr/cephadm is not defining haproxy tcp healthchecks for Ganesha

Reviewed-by: Adam King <adking@redhat.com>
16 months agoMerge pull request #55812 from ivoalmeida/add-snap-schedule-repeat-frequencies
Pedro Gonzalez Gomez [Wed, 28 Feb 2024 16:35:24 +0000 (17:35 +0100)]
Merge pull request #55812 from ivoalmeida/add-snap-schedule-repeat-frequencies

mgr/dashboard: add snap schedule M, Y frequencies

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
16 months agoMerge PR #55207 into main
Venky Shankar [Wed, 28 Feb 2024 15:43:44 +0000 (21:13 +0530)]
Merge PR #55207 into main

* refs/pull/55207/head:
mds: check file layout in mknod

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
16 months agoMerge pull request #55794 from kamoltat/wip-ksirivad-ceph-backport-script
Kamoltat (Junior) Sirivadhna [Wed, 28 Feb 2024 14:57:05 +0000 (09:57 -0500)]
Merge pull request #55794 from kamoltat/wip-ksirivad-ceph-backport-script

src/scripts/ceph-backport.sh: Add PR checklist
Reviewed by: Laura Flores <lfores@ibm.com>

16 months agoMerge pull request #55809 from ivoalmeida/fix-snap-schedule-month
Pedro Gonzalez Gomez [Wed, 28 Feb 2024 14:37:14 +0000 (15:37 +0100)]
Merge pull request #55809 from ivoalmeida/fix-snap-schedule-month

mgr/dashboard: fix snap schedule date format

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
16 months agomgr/dashboard: add snap schedule M, Y frequencies 55812/head
Ivo Almeida [Mon, 26 Feb 2024 11:56:18 +0000 (11:56 +0000)]
mgr/dashboard: add snap schedule M, Y frequencies

Added M and Y (month and year) repeat frequencies to snap schedule
create form.

Fixes: https://tracker.ceph.com/issues/64614
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
16 months agomgr/dashboard: fix snap schedule date format 55809/head
Ivo Almeida [Wed, 28 Feb 2024 09:53:57 +0000 (09:53 +0000)]
mgr/dashboard: fix snap schedule date format

Fixes: https://tracker.ceph.com/issues/64613
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
16 months agoMerge pull request #55757 from rhcs-dashboard/replace-piechart-panel-plugin-grafana
Nizamudeen A [Wed, 28 Feb 2024 05:42:33 +0000 (11:12 +0530)]
Merge pull request #55757 from rhcs-dashboard/replace-piechart-panel-plugin-grafana

mgr/dashboard: replace piechart plugin charts with native pie chart panel

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
16 months agoMerge PR #52258 into main
Venky Shankar [Wed, 28 Feb 2024 04:02:42 +0000 (09:32 +0530)]
Merge PR #52258 into main

* refs/pull/52258/head:
client: check mds down status bofore getting mds_gid_t from mdsmap
mgr/dashboard: allow sending back error status code fetching clients fails

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
16 months agoMerge pull request #55772 from xxhdx1985126/wip-seastore-attr-related-bug-fixes
Yingxin [Wed, 28 Feb 2024 03:38:16 +0000 (11:38 +0800)]
Merge pull request #55772 from xxhdx1985126/wip-seastore-attr-related-bug-fixes

crimson/os/seastore: two attrs related bug fixes

Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
16 months agoMerge pull request #55782 from zdover23/wip-doc-2024-02-27-rados-operations-add-or...
zdover23 [Tue, 27 Feb 2024 23:42:10 +0000 (09:42 +1000)]
Merge pull request #55782 from zdover23/wip-doc-2024-02-27-rados-operations-add-or-rm-mons

doc/rados: add "change public network" procedure

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
16 months agoMerge pull request #53222 from myoungwon/wip-62167
Kamoltat (Junior) Sirivadhna [Tue, 27 Feb 2024 20:55:12 +0000 (15:55 -0500)]
Merge pull request #53222 from myoungwon/wip-62167

osd: check if adjacent clones are unreadable when rollback is called.
Reviewed-by: athanatos
16 months agoMerge pull request #55147 from Matan-B/wip-matanb-skip-past-interval-cheeck
Kamoltat (Junior) Sirivadhna [Tue, 27 Feb 2024 20:54:45 +0000 (15:54 -0500)]
Merge pull request #55147 from Matan-B/wip-matanb-skip-past-interval-cheeck

osd/PeeringState: introduce osd_skip_check_past_interval_bounds
Reviewed-by athanatos

16 months agoMerge pull request #55227 from Svelar/wip-ci-clang
Kamoltat (Junior) Sirivadhna [Tue, 27 Feb 2024 20:54:01 +0000 (15:54 -0500)]
Merge pull request #55227 from Svelar/wip-ci-clang

ARM CI: clang should >= 12 for supporting C++20
Reviewed by: Laura Flores <lajefl@gmail.com>

16 months agosrc/scripts/ceph-backport.sh: Add PR checklist 55794/head
Kamoltat [Tue, 27 Feb 2024 19:21:57 +0000 (19:21 +0000)]
src/scripts/ceph-backport.sh: Add PR checklist

Signed-off-by: Kamoltat <ksirivad@redhat.com>
16 months agoMerge pull request #54872 from amathuria/wip-amat-mclock-adjust-deletion-cost
Yuri Weinstein [Tue, 27 Feb 2024 16:38:21 +0000 (08:38 -0800)]
Merge pull request #54872 from amathuria/wip-amat-mclock-adjust-deletion-cost

osd: Change PG Deletion cost for mClock

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sridhar Seshasayee <sseshasa@redhat.com>
16 months agoMerge pull request #52891 from kamoltat/wip-ksirivad-fix-59172
Yuri Weinstein [Tue, 27 Feb 2024 16:37:34 +0000 (08:37 -0800)]
Merge pull request #52891 from kamoltat/wip-ksirivad-fix-59172

qa/tasks/ceph_manager.py: Rewrite test_pool_min_size

Reviewed-by: Samuel Just <sjust@redhat.com>
16 months agoMerge pull request #55760 from cbodley/wip-64568
Casey Bodley [Tue, 27 Feb 2024 16:05:51 +0000 (16:05 +0000)]
Merge pull request #55760 from cbodley/wip-64568

test/rgw: increase timeouts in unittest_rgw_dmclock_scheduler

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
16 months agomds: check file layout in mknod 55207/head
Yantao xue [Tue, 30 Jan 2024 09:14:43 +0000 (17:14 +0800)]
mds: check file layout in mknod
Fixes: https://tracker.ceph.com/issues/64061
Signed-off-by: Xue Yantao <xueyantao2114@163.com>
16 months agoMerge pull request #55752 from rhcs-dashboard/fix-vol-create
Pedro Gonzalez Gomez [Tue, 27 Feb 2024 12:27:23 +0000 (13:27 +0100)]
Merge pull request #55752 from rhcs-dashboard/fix-vol-create

mgr/dashboard: fix volume creation with multiple hosts

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
16 months agodoc/rados: add "change public network" procedure 55782/head
Zac Dover [Mon, 26 Feb 2024 10:03:48 +0000 (20:03 +1000)]
doc/rados: add "change public network" procedure

Add a procedure to /doc/rados/operations/add-or-rm-mons.rst that
explains how to change the public_network in a Ceph cluster deployed
with cephadm. This procedure was developed by Eugen Block, and can be
seen in its original form here:
https://heiterbiswolkig.blogs.nde.ag/2024/02/22/cephadm-change-public-network/

Co-authored-by: Eugen Block <eblock@nde.ag>
Signed-off-by: Zac Dover <zac.dover@proton.me>
16 months agocrimson/os/seastore: also remove xattrs when removing onodes 55772/head
Xuehan Xu [Tue, 27 Feb 2024 08:27:58 +0000 (16:27 +0800)]
crimson/os/seastore: also remove xattrs when removing onodes

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
16 months agomgr/dashboard: replace piechart plugin charts with native pie chart 55757/head
Aashish Sharma [Mon, 26 Feb 2024 09:32:19 +0000 (15:02 +0530)]
mgr/dashboard: replace piechart plugin charts with native pie chart
panel

Fixes: https://tracker.ceph.com/issues/64579
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
16 months agocrimson/os/seastore: get_attrs should return all attrs
Xuehan Xu [Tue, 27 Feb 2024 08:18:57 +0000 (16:18 +0800)]
crimson/os/seastore: get_attrs should return all attrs

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
16 months agocrimson/os/seastore: attr related debug outputs
Xuehan Xu [Tue, 27 Feb 2024 08:06:02 +0000 (16:06 +0800)]
crimson/os/seastore: attr related debug outputs

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
16 months agoMerge PR #52859 into main
Venky Shankar [Tue, 27 Feb 2024 05:53:13 +0000 (11:23 +0530)]
Merge PR #52859 into main

* refs/pull/52859/head:
qa: test cases to make sure invalid paths don't get updated
mgr/nfs: use helper to validate cephfs path
mgr/nfs: validate path before updating a cephfs export
mgr/nfs: add a helper to validate cephfs path

Reviewed-by: Venky Shankar <vshankar@redhat.com>
16 months agoMerge PR #54687 into main
Venky Shankar [Tue, 27 Feb 2024 05:50:54 +0000 (11:20 +0530)]
Merge PR #54687 into main

* refs/pull/54687/head:
mds: allow lock state to be LOCK_MIX_SYNC in replica for filelock

Reviewed-by: Venky Shankar <vshankar@redhat.com>
16 months agoMerge PR #55435 into main
Venky Shankar [Tue, 27 Feb 2024 05:47:13 +0000 (11:17 +0530)]
Merge PR #55435 into main

* refs/pull/55435/head:
qa: Fix fs/full suite

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
16 months agoMerge pull request #55751 from cyx1231st/wip-fix-test-socket
Samuel Just [Mon, 26 Feb 2024 23:26:00 +0000 (15:26 -0800)]
Merge pull request #55751 from cyx1231st/wip-fix-test-socket

test/crimson/test_socket: complete write-side errors in test_unexpected_down()

Reviewed-by: Samuel Just <sjust@redhat.com>
16 months agoMerge pull request #54999 from Matan-B/wip-matanb-mon-osd-epochs
Yuri Weinstein [Mon, 26 Feb 2024 15:47:57 +0000 (07:47 -0800)]
Merge pull request #54999 from Matan-B/wip-matanb-mon-osd-epochs

mon/OSDMonitor: fix get_min_last_epoch_clean()

Reviewed-by: Samuel Just <sjust@redhat.com>
16 months agotest/rgw: increase timeouts in unittest_rgw_dmclock_scheduler 55760/head
Casey Bodley [Mon, 26 Feb 2024 14:38:52 +0000 (09:38 -0500)]
test/rgw: increase timeouts in unittest_rgw_dmclock_scheduler

1ms sleeps are generally below the timer's resolution. increase run_for()
durations to 50ms to make the tests far less sensitive to timing. in
practice, none of the sleeps actually wait the full 50ms

Fixes: https://tracker.ceph.com/issues/64568
Signed-off-by: Casey Bodley <cbodley@redhat.com>
16 months agoclient: check mds down status bofore getting mds_gid_t from mdsmap 52258/head
yite.gu [Mon, 29 Jan 2024 10:26:20 +0000 (18:26 +0800)]
client: check mds down status bofore getting mds_gid_t from mdsmap

Get mds_gid_t from up of MDSMap, will cause to core dump if target
mds_rank_t does not exist up map:

from: src/mds/MDSMap.h
  const auto& get_info(mds_rank_t m) const {
    return mds_info.at(up.at(m));
  }

reproduct:
1. ceph fs fail <fs_name>
2. curl -X GET "example.com:8080/api/cephfs/1/clients" ...
up.at(m) will cause to core dump.

Fixes: https://tracker.ceph.com/issues/61844
Signed-off-by: Yite Gu <yitegu0@gmail.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 agomgr/dashboard: fix volume creation with multiple hosts 55752/head
Pedro Gonzalez Gomez [Thu, 22 Feb 2024 10:06:21 +0000 (11:06 +0100)]
mgr/dashboard: fix volume creation with multiple hosts

Fixes: https://tracker.ceph.com/issues/64559
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
16 months agotest/crimson/test_socket: complete write-side errors in test_unexpected_down() 55751/head
Yingxin Cheng [Mon, 26 Feb 2024 06:17:48 +0000 (14:17 +0800)]
test/crimson/test_socket: complete write-side errors in test_unexpected_down()

Related: https://tracker.ceph.com/issues/64457
Signed-off-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