]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
18 months agocrimson/osd: cleanup SubOpBlocker::emplace_back usage
Matan Breizman [Mon, 27 Nov 2023 16:08:01 +0000 (16:08 +0000)]
crimson/osd: cleanup SubOpBlocker::emplace_back usage

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
18 months agocrimson/osd/osd_operations/snaptrim_event: using snap_trim_*_ret_t
Matan Breizman [Mon, 27 Nov 2023 12:11:38 +0000 (12:11 +0000)]
crimson/osd/osd_operations/snaptrim_event: using snap_trim_*_ret_t

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
18 months agocrimson/osd/osd_operations/snaptrim_event: move SubOpBlocker to seperate file
Matan Breizman [Mon, 27 Nov 2023 11:33:48 +0000 (11:33 +0000)]
crimson/osd/osd_operations/snaptrim_event: move SubOpBlocker to seperate file

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
18 months agocrimson/osd/osd_operations/snaptrim_event: add op lifetime comment
Matan Breizman [Mon, 27 Nov 2023 11:33:28 +0000 (11:33 +0000)]
crimson/osd/osd_operations/snaptrim_event: add op lifetime comment

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
18 months agoRevert "crimson/osd/osd_operations/snaptrim_event: fix lifetime on finally()"
Matan Breizman [Mon, 27 Nov 2023 09:49:38 +0000 (09:49 +0000)]
Revert "crimson/osd/osd_operations/snaptrim_event: fix lifetime on finally()"

This reverts commit 84c5b6c578c1e64807eca5098d51193ee71e6106.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
18 months agoRevert "crimson/osd/osd_operations/snaptrim_event: lifetime fixes"
Matan Breizman [Mon, 27 Nov 2023 09:48:46 +0000 (09:48 +0000)]
Revert "crimson/osd/osd_operations/snaptrim_event: lifetime fixes"

This reverts commit abceb1652239629ed11187a5fc670a3b1a3a5bb1.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
18 months agoMerge pull request #54870 from Svelar/crimson_g_conf
Samuel Just [Tue, 9 Jan 2024 02:55:55 +0000 (18:55 -0800)]
Merge pull request #54870 from Svelar/crimson_g_conf

crimson: add set_val and rm_val to global conf

Reviewed-by: Samuel Just <sjust@redhat.com>
18 months agoMerge pull request #52315 from ronen-fr/wip-rf-rgw-tasserts
Casey Bodley [Mon, 8 Jan 2024 19:30:32 +0000 (19:30 +0000)]
Merge pull request #52315 from ronen-fr/wip-rf-rgw-tasserts

test/rgw: annotating variables with maybe_unused

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
18 months agoMerge pull request #55088 from cbodley/wip-make-dist-wget
Laura Flores [Mon, 8 Jan 2024 18:00:27 +0000 (12:00 -0600)]
Merge pull request #55088 from cbodley/wip-make-dist-wget

18 months agoMerge pull request #54587 from cbodley/wip-45736
Casey Bodley [Mon, 8 Jan 2024 17:49:38 +0000 (17:49 +0000)]
Merge pull request #54587 from cbodley/wip-45736

rgw: add headers to guide cache update in 304 response

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
18 months agoMerge pull request #54715 from rkachach/fix_issue_63678
Adam King [Mon, 8 Jan 2024 16:40:09 +0000 (11:40 -0500)]
Merge pull request #54715 from rkachach/fix_issue_63678

mgr/rook: fixing inconsistencies on the dashboard 'services' view

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
18 months agoMerge pull request #54676 from rkachach/fix_list_devices_issue
Adam King [Mon, 8 Jan 2024 16:38:35 +0000 (11:38 -0500)]
Merge pull request #54676 from rkachach/fix_list_devices_issue

mgr/rook: fixing devices listing on rook

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
18 months agomake-dist: don't use --continue option for wget 55088/head
Casey Bodley [Mon, 8 Jan 2024 16:24:18 +0000 (08:24 -0800)]
make-dist: don't use --continue option for wget

the boost jfrog mirror is broken and returns an HTML error page instead
of the archive. the file size of this page is 11534 bytes

when download_from() retries the download from download.ceph.com, the -c
option tells it to resume the download of the existing file. the
resulting boost_1_82_0.tar.bz2 ends up with the correct total file size
of 121325129 bytes, but the first 11534 bytes still correspond to the
HTML from jfrog. that causes the sha256sum mismatch

remove the -c option so that wget fetches the archive in its entirety

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoMerge pull request #55081 from petrutlucian94/boost_mirror
Ilya Dryomov [Mon, 8 Jan 2024 11:56:51 +0000 (12:56 +0100)]
Merge pull request #55081 from petrutlucian94/boost_mirror

win32_deps_build.sh: change Boost URL

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
18 months agoMerge pull request #55075 from zdover23/wip-doc-2024-01-07-radosgw-admin-quota
zdover23 [Mon, 8 Jan 2024 10:31:21 +0000 (20:31 +1000)]
Merge pull request #55075 from zdover23/wip-doc-2024-01-07-radosgw-admin-quota

doc/radosgw: edit admin.rst - quota

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
18 months agodoc/radosgw: edit admin.rst - quota 55075/head
Zac Dover [Sun, 7 Jan 2024 12:10:59 +0000 (22:10 +1000)]
doc/radosgw: edit admin.rst - quota

Edit the "Quota Management" section (all of it) in
doc/radosgw/admin.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
18 months agowin32_deps_build.sh: change Boost URL 55081/head
Lucian Petrut [Mon, 8 Jan 2024 08:44:51 +0000 (08:44 +0000)]
win32_deps_build.sh: change Boost URL

The Boost download URL is broken again [1], we'll switch to a
working mirror.

[1] https://github.com/boostorg/boost/issues/842

Fixes: https://tracker.ceph.com/issues/63952
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
18 months agoMerge pull request #54525 from myoungwon/wip-delta-overwrite-inplace-replay
Yingxin [Mon, 8 Jan 2024 01:24:21 +0000 (09:24 +0800)]
Merge pull request #54525 from myoungwon/wip-delta-overwrite-inplace-replay

crimson/os/seastore:  introduce inplace rewrite for RBM

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
18 months agoMerge pull request #54613 from Matan-B/wip-matanb-crimson-build-inc-maps
Matan Breizman [Sun, 7 Jan 2024 12:38:19 +0000 (14:38 +0200)]
Merge pull request #54613 from Matan-B/wip-matanb-crimson-build-inc-maps

crimson/osd: Support incremental maps

Reviewed-by: Samuel Just <sjust@redhat.com>
18 months agoMerge pull request #54996 from ronen-fr/wip-rf-active-primary
Ronen Friedman [Sat, 6 Jan 2024 06:06:16 +0000 (08:06 +0200)]
Merge pull request #54996 from ronen-fr/wip-rf-active-primary

osd/scrub: add a "clean primary" base state

Reviewed-by: Samuel Just <sjust@redhat.com>
18 months agoMerge pull request #55069 from ceph/wip-rgw-adminops-user-info-doc-update
zdover23 [Fri, 5 Jan 2024 23:20:39 +0000 (09:20 +1000)]
Merge pull request #55069 from ceph/wip-rgw-adminops-user-info-doc-update

doc: update rgw admin api req params for get user info

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
18 months agodoc: update rgw admin api req params for get user info 55069/head
Ali Maredia [Fri, 5 Jan 2024 20:13:41 +0000 (20:13 +0000)]
doc: update rgw admin api req params for get user info

Signed-off-by: Ali Maredia <amaredia@redhat.com>
18 months agoMerge pull request #54993 from ljflores/wip-balancer-status-detail-documentation
Laura Flores [Fri, 5 Jan 2024 18:30:02 +0000 (12:30 -0600)]
Merge pull request #54993 from ljflores/wip-balancer-status-detail-documentation

18 months agoMerge pull request #54890 from kamoltat/wip-ksirivad-fix-63389
Yuri Weinstein [Fri, 5 Jan 2024 15:40:50 +0000 (07:40 -0800)]
Merge pull request #54890 from kamoltat/wip-ksirivad-fix-63389

src/mon/OSDMonitor.cc: more descriptive loggings for crc mismatch

Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
18 months agoMerge pull request #54708 from amathuria/wip-amathuria-bz-2134786-fix-norecover
Yuri Weinstein [Fri, 5 Jan 2024 15:40:11 +0000 (07:40 -0800)]
Merge pull request #54708 from amathuria/wip-amathuria-bz-2134786-fix-norecover

mgr/pg_autoscaler: add check for norecover flag

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
18 months agoMerge pull request #52380 from kamoltat/wip-ksirivad-fix-tracker-59564
Yuri Weinstein [Fri, 5 Jan 2024 15:38:53 +0000 (07:38 -0800)]
Merge pull request #52380 from kamoltat/wip-ksirivad-fix-tracker-59564

mon/ConnectionTracker.cc: disregard connection scores from mon_rank = -1

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
18 months agoMerge pull request #48175 from amathuria/wip-add-test-case-bz-2011756
Yuri Weinstein [Fri, 5 Jan 2024 15:37:54 +0000 (07:37 -0800)]
Merge pull request #48175 from amathuria/wip-add-test-case-bz-2011756

DaemonServer.cc: fix config show command for RGW daemons

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
18 months agoosd/scrub: avoid "over clearing" queued_or_active flag 54996/head
Ronen Friedman [Thu, 28 Dec 2023 19:41:19 +0000 (13:41 -0600)]
osd/scrub: avoid "over clearing" queued_or_active flag

If two StartScrub messages are received in quick succession, the earlier
one might clear the queued_or_active flag as it fails for being from an old
interval.
When that happens - a 3'rd scrub request will actually be allowed to go
through, while the scrubber is still handling the second one.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
18 months agoosd/scrub: manage queue registration lifetime in the FSM
Ronen Friedman [Sat, 23 Dec 2023 16:18:41 +0000 (10:18 -0600)]
osd/scrub: manage queue registration lifetime in the FSM

As the state of 'being registered in the OSDs scrub queue'
corresponds to the PrimaryActive FSM state.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
18 months agoMerge pull request #55065 from zdover23/wip-doc-2024-01-05-radosgw-admin-add-remove...
Anthony D'Atri [Fri, 5 Jan 2024 14:32:54 +0000 (09:32 -0500)]
Merge pull request #55065 from zdover23/wip-doc-2024-01-05-radosgw-admin-add-remove-admin-caps

doc/radosrgw: edit admin.rst

18 months agodoc/radosrgw: edit admin.rst 55065/head
Zac Dover [Fri, 5 Jan 2024 11:11:59 +0000 (21:11 +1000)]
doc/radosrgw: edit admin.rst

Edit "Add / Remove Admin Capabilities" in doc/radosgw/admin.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
18 months agocrimson/os/seastore/cache: return false explicitly if delta is not replayed 54525/head
Myoungwon Oh [Fri, 5 Jan 2024 06:46:43 +0000 (15:46 +0900)]
crimson/os/seastore/cache: return false explicitly if delta is not replayed

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
18 months agocrimson/os/seastore: check correct crc for inplace-rewritten extents after replay...
Myoungwon Oh [Wed, 20 Dec 2023 11:35:10 +0000 (20:35 +0900)]
crimson/os/seastore: check correct crc for inplace-rewritten extents  after replay is done

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
18 months agotest/crimson/seastore: fix overflow issue and make len > 0 when set_contents is called
Myoungwon Oh [Sun, 17 Dec 2023 09:04:10 +0000 (18:04 +0900)]
test/crimson/seastore: fix overflow issue and make len > 0 when set_contents is called

set_contents causes the overflow at times because
alloc_extent is allowed to use uint32_t.

Specifically, in random_writes case, PADDING_SIZE is 256<<10,
whereas set_contents's len is uint16_t.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
18 months agocrimson/os/seastore/epm: detect transaction confict during rbm write using OOL
Myoungwon Oh [Tue, 12 Dec 2023 09:22:13 +0000 (18:22 +0900)]
crimson/os/seastore/epm: detect transaction confict during rbm write using OOL

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
18 months agocrimson/os/seastore: introduce modified_region in DATA_BLOCK to keep track of modifie...
Myoungwon Oh [Sun, 17 Dec 2023 08:51:22 +0000 (17:51 +0900)]
crimson/os/seastore: introduce modified_region in DATA_BLOCK to keep track of modified region

It has a limitation to keep track of the modified region using the existing
deltas because we can not get the correct region in two cases: 1) a case where replay
is done and 2) duplicate_for_write. This commit introduces modified region
to solve the problem.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
18 months agocrimson/os/seastore: write only modified region when rewriting the extent in an inpla...
Myoungwon Oh [Sun, 10 Dec 2023 03:34:03 +0000 (12:34 +0900)]
crimson/os/seastore: write only modified region when rewriting the extent in an inplace manner

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
18 months agotest/crimson/seastore: add a random overwrite test to test_objec_date_handler
myoungwon oh [Thu, 16 Nov 2023 13:52:47 +0000 (13:52 +0000)]
test/crimson/seastore: add a random overwrite test to test_objec_date_handler

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
18 months agocrimson/os/seastore/cache: reset version to 1 if inplace write occurs before in prepa...
Myoungwon Oh [Tue, 12 Dec 2023 09:55:47 +0000 (18:55 +0900)]
crimson/os/seastore/cache: reset version to 1 if inplace write occurs before in prepare_record

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
18 months agoMerge pull request #54425 from linuxbox2/wip-lcnotify-cleanup
Matt Benjamin [Fri, 5 Jan 2024 02:37:24 +0000 (21:37 -0500)]
Merge pull request #54425 from linuxbox2/wip-lcnotify-cleanup

rgwlc:  additional lc notify cleanups

18 months agoMerge pull request #54889 from phlogistonjohn/jjm-cephadm-build-with-wheels
Adam King [Fri, 5 Jan 2024 01:12:30 +0000 (20:12 -0500)]
Merge pull request #54889 from phlogistonjohn/jjm-cephadm-build-with-wheels

cephadm: build with wheels, enabling pyyaml dependency

Reviewed-by: Guillaume Abrioux <gabrioux@ibm.com>
18 months agoMerge pull request #54722 from phlogistonjohn/jjm-cephadm-sidecars
Adam King [Fri, 5 Jan 2024 01:11:41 +0000 (20:11 -0500)]
Merge pull request #54722 from phlogistonjohn/jjm-cephadm-sidecars

cephadm: add support for sidecar containers

Reviewed-by: Adam King <adking@redhat.com>
18 months agorgwlc: even current object versions have a unique instance 54425/head
Matt Benjamin [Wed, 15 Nov 2023 18:39:18 +0000 (13:39 -0500)]
rgwlc:  even current object versions have a unique instance

Fixes: https://tracker.ceph.com/issues/63546
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
18 months agorgwlc: additional lc notify cleanups
Matt Benjamin [Wed, 8 Nov 2023 19:02:33 +0000 (14:02 -0500)]
rgwlc:  additional lc notify cleanups

Follow the same formula to build up obj_state and version_id
in all call sites.

Resolves: rhbz#2163667

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
18 months agoMerge pull request #50055 from cbodley/wip-rgw-polymorphic-executor
Casey Bodley [Thu, 4 Jan 2024 20:19:54 +0000 (20:19 +0000)]
Merge pull request #50055 from cbodley/wip-rgw-polymorphic-executor

rgw/beast: switch back to polymorphic executor

Reviewed-by: Mark Kogan <mkogan@ibm.com>
18 months agoMerge pull request #54903 from cbodley/wip-63829
Casey Bodley [Thu, 4 Jan 2024 20:19:08 +0000 (20:19 +0000)]
Merge pull request #54903 from cbodley/wip-63829

radosgw-admin: 'zone set' won't overwrite existing default-placement

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
18 months agoMerge pull request #54505 from adamemerson/wip-lazyfifo-no-mutex-over-coro
Casey Bodley [Thu, 4 Jan 2024 20:18:38 +0000 (20:18 +0000)]
Merge pull request #54505 from adamemerson/wip-lazyfifo-no-mutex-over-coro

rgw/multisite: Fix deadlock by not holding mutex over coroutine

Reviewed-by: Casey Bodley <cbodley@redhat.com>
18 months agoMerge pull request #49594 from Matan-B/wip-matanb-crimson-calc-subsets
Samuel Just [Thu, 4 Jan 2024 18:13:40 +0000 (10:13 -0800)]
Merge pull request #49594 from Matan-B/wip-matanb-crimson-calc-subsets

crimson: Support Partial Object Recovery

Reviewed-by: Samuel Just <sjust@redhat.com>
18 months agoMerge pull request #55022 from yuvalif/wip-yuval-63901
Yuval Lifshitz [Thu, 4 Jan 2024 17:19:43 +0000 (19:19 +0200)]
Merge pull request #55022 from yuvalif/wip-yuval-63901

rgw/kafka: make the connection idle timeout configurable

reviwed-by: cbodley

18 months agoMerge pull request #54967 from yuvalif/wip-yuval-63859
Yuval Lifshitz [Thu, 4 Jan 2024 17:19:01 +0000 (19:19 +0200)]
Merge pull request #54967 from yuvalif/wip-yuval-63859

rgw/notifications/lc: handle publish_commit() failures as warnings

reviewed-by: dang, thotz

18 months agocrimson/osd: Keep track of modified_ranges 49594/head
Matan Breizman [Sun, 1 Jan 2023 11:41:34 +0000 (11:41 +0000)]
crimson/osd: Keep track of modified_ranges

* `modifies_ranges` interval_set is added to osd_op_params_t
* keep track of modified_ranges while executing relevant ops
* Add `osd_op_params` parameter to `PGBackend::remove()`.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
18 months agocrimson/osd/replicated_recovery_backend: handle_pull_response() - recalc_subsets()
Matan Breizman [Wed, 4 Jan 2023 12:45:51 +0000 (12:45 +0000)]
crimson/osd/replicated_recovery_backend: handle_pull_response() - recalc_subsets()

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
18 months agomson/osd/replicated_recovery_backend: Introduce prep_push_to_repli…
Matan Breizman [Sun, 31 Dec 2023 15:28:12 +0000 (15:28 +0000)]
mson/osd/replicated_recovery_backend: Introduce prep_push_to_repli…
…ca()

Intelligently push an object to a replica.  make use of existing
clones/heads and dup data ranges where possible.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
18 months agocrimson/osd/replicated_recovery_backend: seperate prep_push_to_replica and prep_push
Matan Breizman [Sun, 31 Dec 2023 15:00:35 +0000 (15:00 +0000)]
crimson/osd/replicated_recovery_backend: seperate prep_push_to_replica and prep_push

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
18 months agorename prep_push to prep_push_to_replica
Matan Breizman [Sun, 31 Dec 2023 14:38:30 +0000 (14:38 +0000)]
rename prep_push to prep_push_to_replica

dismiss head_ctx

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
18 months agocrimson/osd/replicated_recovery_backend: prepare_pull to support calc_clone_subsets
Matan Breizman [Sun, 31 Dec 2023 12:09:38 +0000 (12:09 +0000)]
crimson/osd/replicated_recovery_backend: prepare_pull to support calc_clone_subsets

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
18 months agocrimson/osd/object_metadata_helper: Introduce calc_*_subsets
Matan Breizman [Mon, 9 Jan 2023 14:07:20 +0000 (16:07 +0200)]
crimson/osd/object_metadata_helper: Introduce calc_*_subsets

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
18 months agoMerge pull request #55037 from ronen-fr/wip-rf-crush-dummy
Ronen Friedman [Thu, 4 Jan 2024 12:51:57 +0000 (14:51 +0200)]
Merge pull request #55037 from ronen-fr/wip-rf-crush-dummy

test/crush: removed unused code

Reviewed-by: Laura Flores <lflores@redhat.com>
18 months agoMerge pull request #53319 from leonid-s-usov/vstart-localhost-for-real
Leonid S. Usov [Thu, 4 Jan 2024 12:15:35 +0000 (14:15 +0200)]
Merge pull request #53319 from leonid-s-usov/vstart-localhost-for-real

vstart.sh: make sure that --localhost does only bind to 127.0.0.1 in all cases

18 months agoMerge pull request #54883 from Svelar/memstore
Rongqi Sun [Thu, 4 Jan 2024 06:44:06 +0000 (14:44 +0800)]
Merge pull request #54883 from Svelar/memstore

os/memstore: deep copy on partial bufferptrs on setattrs

18 months agoMerge pull request #54884 from Svelar/memory_is_zero_dev
Rongqi Sun [Thu, 4 Jan 2024 06:43:44 +0000 (14:43 +0800)]
Merge pull request #54884 from Svelar/memory_is_zero_dev

inline_memory: optimized mem_is_zero for aarch64 by neon intrinsic

18 months agoMerge pull request #55048 from zdover23/wip-doc-2024-01-03-radosgw-admin-add-remove...
zdover23 [Thu, 4 Jan 2024 02:33:32 +0000 (12:33 +1000)]
Merge pull request #55048 from zdover23/wip-doc-2024-01-03-radosgw-admin-add-remove-a-key

doc/radosgw: edit "Add/Remove a Key"

Reviewed-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
18 months agoMerge pull request #54214 from athanatos/sjust/wip-crimson-scrub
Samuel Just [Wed, 3 Jan 2024 23:26:45 +0000 (15:26 -0800)]
Merge pull request #54214 from athanatos/sjust/wip-crimson-scrub

crimson: add initial scrub support

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
Reviewed-by: Matan Breizman <mbreizma@redhat.com>
18 months agoMerge pull request #55053 from zdover23/wip-doc-2023-01-04-release-note-cleanup-follo...
Anthony D'Atri [Wed, 3 Jan 2024 21:32:37 +0000 (16:32 -0500)]
Merge pull request #55053 from zdover23/wip-doc-2023-01-04-release-note-cleanup-following-55049

doc/releases: edit reef.rst

18 months agoMerge pull request #54994 from ceph/wip-lflores-upgrade-stale-bot
Laura Flores [Wed, 3 Jan 2024 17:35:53 +0000 (11:35 -0600)]
Merge pull request #54994 from ceph/wip-lflores-upgrade-stale-bot

.github/workflows: upgrade stale bot

18 months agodoc/rados/operations: document `ceph balancer status detail` 54993/head
Laura Flores [Fri, 22 Dec 2023 22:55:29 +0000 (22:55 +0000)]
doc/rados/operations: document `ceph balancer status detail`

Document change in https://github.com/ceph/ceph/pull/54801

Signed-off-by: Laura Flores <lflores@ibm.com>
18 months agocepahdm: add some specific tests for daemon id systemd name generation 54722/head
John Mulligan [Wed, 3 Jan 2024 14:47:47 +0000 (09:47 -0500)]
cepahdm: add some specific tests for daemon id systemd name generation

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agodoc/radosgw: edit "Add/Remove a Key" 55048/head
Zac Dover [Wed, 3 Jan 2024 08:41:51 +0000 (18:41 +1000)]
doc/radosgw: edit "Add/Remove a Key"

Edit the section "Add/Remove a Key" in doc/radosgw/admin.rst. Each
operation (e.g. "Adding an S3 key pair for a user", "Removing an S3 key
pair for a user") now has its own subsection. This increased granularity
should make it easier in the future to link to each of these specific
operations, if needed.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
18 months agodoc/releases: edit reef.rst 55053/head
Zac Dover [Wed, 3 Jan 2024 14:20:51 +0000 (00:20 +1000)]
doc/releases: edit reef.rst

Make minor corrections to doc/releases/reef.rst. These corrections were
suggested by Anthony D'Atri in https://github.com/ceph/ceph/pull/55049.

Signed-off-by: Zac Dover <zac.dover@proton.me>
18 months agorgw/notifications/lc: handle publish_commit() failures as warnings 54967/head
Yuval Lifshitz [Tue, 19 Dec 2023 17:33:38 +0000 (17:33 +0000)]
rgw/notifications/lc: handle publish_commit() failures as warnings

Fixes: https://tracker.ceph.com/issues/63859
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
18 months agoMerge pull request #53582 from rhcs-dashboard/chartjs-upgrade
Aashish Sharma [Wed, 3 Jan 2024 07:26:33 +0000 (12:56 +0530)]
Merge pull request #53582 from rhcs-dashboard/chartjs-upgrade

mgr/dashboard: chartjs and ng2-charts version upgrade

Reviewed-by: Nizamudeen A <nia@redhat.com>
18 months agoMerge PR #54825 into main
Venky Shankar [Wed, 3 Jan 2024 04:14:14 +0000 (09:44 +0530)]
Merge PR #54825 into main

* refs/pull/54825/head:
mds: change priority of mds rss perf counter to useful

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
18 months agoMerge pull request #54607 from athanatos/sjust/wip-async-recovery-62338-release-note
Samuel Just [Wed, 3 Jan 2024 01:32:18 +0000 (17:32 -0800)]
Merge pull request #54607 from athanatos/sjust/wip-async-recovery-62338-release-note

PendingReleaseNotes: add release note for 62338

Reviewed-by: Neha Ojha <nojha@redhat.com>
18 months agoPendingReleaseNotes: add release note for 62338 54607/head
Samuel Just [Wed, 22 Nov 2023 03:12:12 +0000 (03:12 +0000)]
PendingReleaseNotes: add release note for 62338

See https://tracker.ceph.com/issues/62338 and
2fc5486e.

Signed-off-by: Samuel Just <sjust@redhat.com>
18 months agoMerge pull request #54024 from Matan-B/wip-matanb-snap_seq_inc
Yuri Weinstein [Tue, 2 Jan 2024 17:01:34 +0000 (09:01 -0800)]
Merge pull request #54024 from Matan-B/wip-matanb-snap_seq_inc

osd/osd_types: don't increment snap_seq on removal

Reviewed-by: Samuel Just <sjust@redhat.com>
18 months agocehphadm: disable restarting init containers service
John Mulligan [Tue, 19 Dec 2023 19:10:39 +0000 (14:10 -0500)]
cehphadm: disable restarting init containers service

Disable the Restart= line in the init containers systemd template.
It is commented out as there are probably more appropriate workarounds
to use in the future but this should fix testing on centos8 based
systems.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add stop and poststop commands to init container service
John Mulligan [Mon, 11 Dec 2023 20:44:41 +0000 (15:44 -0500)]
cephadm: add stop and poststop commands to init container service

Now that there is a more robust init_containers.run script, we can use
the new stop and poststop subcommands from the systemd unit.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: convert init containers script to use a template
John Mulligan [Mon, 11 Dec 2023 19:45:46 +0000 (14:45 -0500)]
cephadm: convert init containers script to use a template

Convert the init containers run script to be based on a template, like
the sidecar run scripts are. The new script is loosely based on the
sidecars run script but only does actions in batches - logically
iterating over each init container configured.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: move init container script generation to a function
John Mulligan [Tue, 5 Dec 2023 21:20:57 +0000 (16:20 -0500)]
cephadm: move init container script generation to a function

Move the generation of the init container run script to a small function
fixing a missing `set -e` along the way. This isolates the logic of
generating this run script.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: call functions instead of executing rm in rm_cluster
John Mulligan [Sun, 19 Nov 2023 21:35:06 +0000 (16:35 -0500)]
cephadm: call functions instead of executing rm in rm_cluster

Convert a bunch of invocations of rm via a subprocess to function calls.
This should make it easier (or possible?) to test the function
in the unit test framework as well as possibly saving a few resources.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: remove a non-functional line in _rm_cluster
John Mulligan [Sun, 19 Nov 2023 21:06:38 +0000 (16:06 -0500)]
cephadm: remove a non-functional line in _rm_cluster

Remove a line from _rm_cluster that has no effect. The line uses
call_throws to execute an `rm -rf` command. The argument contains
asterisk chars that indicate that the file(s)/dir(s) to be created are
expected to match the given pattern. However, globs do not work in this
context in contemporary versions of cephadm.

To double check I added the following temporary unit test:
```
def test_does_it_glob(tmp_path):
    from cephadmlib.call_wrappers import call_throws

    d1 = (tmp_path / 'dir1')
    d1.mkdir()
    fns = ['f1.txt', 'f2.txt', 'f3.txt', 'f4']
    for fn in fns:
        with open(d1/fn, "w") as fh:
            fh.write("xxx")
    assert d1.exists()
    for fn in fns:
        assert (d1 / fn).exists()

    ctx = FakeContext()
    call_throws(ctx, ['rm', '-rf', f'{d1}/*.txt'])
    print('files:', os.listdir(d1))
    assert d1.exists()
    for fn in fns:
        if fn.endswith('.txt'):
            assert not (d1 / fn).exists()
        else:
            assert (d1 / fn).exists()
```

If globs worked in this context this test would have passed. It does
not. I confirmed that the current implementation of call/call_wrapper
does not execute the command in a shell context.

I wondered if it was possible that an earlier version of cephadm did
execute this command in a shell context and some changes along the way
changed the behavior. I tracked the origin of the line back to
16ebc620349f6e7c9afa6b992c85900f56fcfca3 the first change to implement
rm-cluster. In this commit the code uses subprocess.check_output
directly. I am familiar with check_output and unless `shell=True` is
passed this function doesn't execute the args in a shell context.  The
`shell=True` argument is not passed to check_output. This means that the
very first implementation of this line suffered from the same issue
- it would have no effect on any files except one named with actual
  asterisk (`*`) characters.

While I'm sure there was a good intention behind this line, the fact
that it persisted in the code so long in a non-functional state and no
one noticed in both production and qa testing makes me feel that it can
be safely removed with no negative effect. Removing the line simplifies
the code and avoids needing to spend effort unit-testing or manually
checking a fix.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add a unit test to check sidecar removal
John Mulligan [Sun, 19 Nov 2023 20:39:52 +0000 (15:39 -0500)]
cephadm: add a unit test to check sidecar removal

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: update rm cluster to remove sidecar/init-ctr services
John Mulligan [Sun, 19 Nov 2023 12:56:46 +0000 (07:56 -0500)]
cephadm: update rm cluster to remove sidecar/init-ctr services

A previous patch updated the rm-daemon functionality to remove sidecar
and init-container systemd services. This patch does the same for the
rm-cluster codepath.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: update _rm_cluster to call terminate_service
John Mulligan [Sun, 19 Nov 2023 00:09:29 +0000 (19:09 -0500)]
cephadm: update _rm_cluster to call terminate_service

The terminate_service function was added to encapsulate the act of
terminating a systemd service. The rm-deamon handler was updated to use
this function previously; this commit updates rm-cluster function(s)
to do the same. This needed a bunch of test updates do to how the tests
were mocking commands.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add support to remove sidecar/init-ctr systemd units
John Mulligan [Sat, 18 Nov 2023 19:03:34 +0000 (14:03 -0500)]
cephadm: add support to remove sidecar/init-ctr systemd units

Add support to the command_rm_daemon function to remove systemd services
and corresponding unit files for any sidecars or init-containers
associated with a primary daemon.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: replace some calls to rm with fs function calls
John Mulligan [Sat, 18 Nov 2023 18:07:57 +0000 (13:07 -0500)]
cephadm: replace some calls to rm with fs function calls

This should be a little cleaner, perhaps a tiny performance improvement,
and most importantly work better with the virtual-fs provided for the
unit tests and make this function more testable in the future.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: minor reorgs to command_rm_daemon
John Mulligan [Sat, 18 Nov 2023 16:50:29 +0000 (11:50 -0500)]
cephadm: minor reorgs to command_rm_daemon

Make a few small chanes to command_rm_daemon to clean it up in
preparation for future changes. Move the construction of a
DaemonIdentity earlier and use the service name derived directly from it
if possible. I didn't remove the old approach of looking up a service
name in the listing because I don't know if doing so would break
old/adopted services and there's no unit test coverage for that.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add a terminate_service systemd function
John Mulligan [Sun, 19 Nov 2023 00:00:38 +0000 (19:00 -0500)]
cephadm: add a terminate_service systemd function

Add a function that encapsulates the common 3-step process found in
cephadm of stopping, resetting errors, and disabling a service.
This will be used to handle new services to stop as well as cleaning
up some places where the three steps are performed inline.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add sidecars_from_dropin function
John Mulligan [Sat, 18 Nov 2023 18:59:19 +0000 (13:59 -0500)]
cephadm: add sidecars_from_dropin function

Add a sidecars_from_dropin function that takes a minimal PathInfo object
and returns a PathInfo populated with sidecars information based on
reading the content of the dropin file. This will be useful when we need
information on configured sidecars but are not on the deploy path.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add method for parsing a sub identity from a service name
John Mulligan [Sat, 18 Nov 2023 18:58:33 +0000 (13:58 -0500)]
cephadm: add method for parsing a sub identity from a service name

This will become handy later when we need DaemonSubIdentity objects and
are not on the deploy path.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add unlink_file function
John Mulligan [Sat, 18 Nov 2023 18:57:48 +0000 (13:57 -0500)]
cephadm: add unlink_file function

Add the unlink_file function to file_utils. This fills in a gap between
python 3.6 and features provided in pathlib.Path in later versions of
python. Adds an option to ignore all errors for good measure.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: rename {get,lookup}_unit_name_by_daemon_name
John Mulligan [Sat, 18 Nov 2023 16:35:36 +0000 (11:35 -0500)]
cephadm: rename {get,lookup}_unit_name_by_daemon_name

Rename get_unit_name_by_daemon_name to lookup__unit_name_by_daemon_name
to emphasize that the function does a full lookup (via the daemon list)
to determine the systemd service name for the given values and that
there's a potential performance implication to doing that.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: avoid errors when calling sub-ident method
John Mulligan [Fri, 17 Nov 2023 19:43:06 +0000 (14:43 -0500)]
cephadm: avoid errors when calling sub-ident method

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: convert iscsi daemon form to use sidecars
John Mulligan [Fri, 17 Nov 2023 20:41:17 +0000 (15:41 -0500)]
cephadm: convert iscsi daemon form to use sidecars

Convert the iscsi container daemon form class to produce a sidecar
container for the tcmu runner and reduce the amount of special casing
for iscsi.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocepahdm: add support for sidecars to container daemon forms
John Mulligan [Sun, 15 Oct 2023 16:57:42 +0000 (12:57 -0400)]
cepahdm: add support for sidecars to container daemon forms

Add support for producing sidecar containers to the container daemon
form type and pass the sidecars through to the unit/script management
function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add function for writing sidecar script
John Mulligan [Fri, 17 Nov 2023 20:31:03 +0000 (15:31 -0500)]
cephadm: add function for writing sidecar script

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add template for sidecar run script
John Mulligan [Fri, 17 Nov 2023 20:20:29 +0000 (15:20 -0500)]
cephadm: add template for sidecar run script

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: switch to new style init containers
John Mulligan [Fri, 17 Nov 2023 20:08:24 +0000 (15:08 -0500)]
cephadm: switch to new style init containers

Convert the call that writes out files for a daemon to use the new
dedicated systemd-unit support for init containers.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: black format systemd_unit.py
John Mulligan [Fri, 17 Nov 2023 19:34:52 +0000 (14:34 -0500)]
cephadm: black format systemd_unit.py

Signed-off-by: John Mulligan <jmulligan@redhat.com>
18 months agocephadm: add support for systemd unit files for init/sidecar ctrs
John Mulligan [Fri, 17 Nov 2023 19:34:24 +0000 (14:34 -0500)]
cephadm: add support for systemd unit files for init/sidecar ctrs

Signed-off-by: John Mulligan <jmulligan@redhat.com>