]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 months agoMerge pull request #61397 from amathuria/wip-amat-test-osdmap-pruning
SrinivasaBharathKanta [Mon, 3 Feb 2025 15:43:28 +0000 (21:13 +0530)]
Merge pull request #61397 from amathuria/wip-amat-test-osdmap-pruning

mon/test_mon_osdmap_prune: Use first_pinned instead of first_committed

5 months agoMerge pull request #61365 from Matan-B/wip-matanb-snapmapper-logs
SrinivasaBharathKanta [Mon, 3 Feb 2025 15:43:09 +0000 (21:13 +0530)]
Merge pull request #61365 from Matan-B/wip-matanb-snapmapper-logs

osd/SnapMapper: Improve logging

5 months agoMerge pull request #61328 from adamemerson/wip-64191
SrinivasaBharathKanta [Mon, 3 Feb 2025 15:42:43 +0000 (21:12 +0530)]
Merge pull request #61328 from adamemerson/wip-64191

test/neorados: Silence mismatched new/delete warning

5 months agoMerge pull request #60945 from NitzanMordhai/wip-nitzan-crushwrapper-corpus-squid
SrinivasaBharathKanta [Mon, 3 Feb 2025 15:42:19 +0000 (21:12 +0530)]
Merge pull request #60945 from NitzanMordhai/wip-nitzan-crushwrapper-corpus-squid

dencoder tests fix type backwards incompatible checks

5 months agoMerge pull request #61577 from ronen-fr/wip-rf-just-me
Ronen Friedman [Sun, 2 Feb 2025 14:22:07 +0000 (16:22 +0200)]
Merge pull request #61577 from ronen-fr/wip-rf-just-me

osd/scrub: remove unnecessary loop

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 months agoMerge pull request #61538 from leonidc/fix-duplicated-optimized
leonidc [Sun, 2 Feb 2025 14:05:02 +0000 (16:05 +0200)]
Merge pull request #61538 from leonidc/fix-duplicated-optimized

nvmeofgw* : fix duplicated optimized host's pathes

5 months agoMerge pull request #61590 from ronen-fr/wip-rf-noinfo-repair
Ronen Friedman [Sun, 2 Feb 2025 14:02:21 +0000 (16:02 +0200)]
Merge pull request #61590 from ronen-fr/wip-rf-noinfo-repair

osd/scrub: discard repair_oinfo_oid()

Reviewed-by: Samuel Just <sjust@redhat.com>
5 months agoMerge pull request #61394 from ronen-fr/wip-rf-cacher-v2
Ronen Friedman [Sun, 2 Feb 2025 13:55:09 +0000 (15:55 +0200)]
Merge pull request #61394 from ronen-fr/wip-rf-cacher-v2

common: modify md_config_obs_impl API

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 months agoMerge pull request #60426 from ronen-fr/wip-rf-svwperf
Ronen Friedman [Sun, 2 Feb 2025 13:49:49 +0000 (15:49 +0200)]
Merge pull request #60426 from ronen-fr/wip-rf-svwperf

common/perf_counters: enabling 'find()' by logger name

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 months agoMerge pull request #61613 from zdover23/wip-doc-2025-02-02-architecture 61617/head
Zac Dover [Sat, 1 Feb 2025 21:38:32 +0000 (07:38 +1000)]
Merge pull request #61613 from zdover23/wip-doc-2025-02-02-architecture

doc/architecture: remove sentence

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
5 months agodoc/architecture: remove sentence 61613/head
Zac Dover [Sat, 1 Feb 2025 21:15:32 +0000 (07:15 +1000)]
doc/architecture: remove sentence

Remove a sentence that is more marketing than reference.

Signed-off-by: Zac Dover <zac.dover@proton.me>
5 months agoMerge pull request #61561 from athanatos/sjust/wip-crimson-recovery-69412
Samuel Just [Fri, 31 Jan 2025 18:44:49 +0000 (10:44 -0800)]
Merge pull request #61561 from athanatos/sjust/wip-crimson-recovery-69412

crimson: take obc lock during push commit on primary

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
5 months agoMerge pull request #61001 from MaxKellermann/common_includes
Ilya Dryomov [Fri, 31 Jan 2025 10:50:57 +0000 (11:50 +0100)]
Merge pull request #61001 from MaxKellermann/common_includes

common: add missing includes

Reviewed-by: Adam Emerson <aemerson@redhat.com>
5 months agoMerge pull request #61598 from idryomov/wip-rbd-migration-https-doc
Ilya Dryomov [Thu, 30 Jan 2025 23:01:10 +0000 (00:01 +0100)]
Merge pull request #61598 from idryomov/wip-rbd-migration-https-doc

doc/rbd: use https links in live import examples

Reviewed-by: Zac Dover <zac.dover@proton.me>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
5 months agocrimson/.../replicated_recovery_backend: take excl lock while pushes commit 61561/head
Samuel Just [Wed, 22 Jan 2025 02:41:48 +0000 (18:41 -0800)]
crimson/.../replicated_recovery_backend: take excl lock while pushes commit

Fixes: https://tracker.ceph.com/issues/69412
Signed-off-by: Samuel Just <sjust@redhat.com>
5 months agocrimson/.../replicated_recovery_backend: route pushes earlier
Samuel Just [Wed, 22 Jan 2025 02:47:09 +0000 (18:47 -0800)]
crimson/.../replicated_recovery_backend: route pushes earlier

Let ReplicatedRecoveryBackend::handle_recovery_op route pushes
between handle_push and handle_pull_response instead of
ReplicatedRecoveryBackend::handle_push.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 months agodoc/rbd: use https links in live import examples 61598/head
Ilya Dryomov [Thu, 30 Jan 2025 19:30:18 +0000 (20:30 +0100)]
doc/rbd: use https links in live import examples

Even though it's explicitly said that "http" stream can be used to
import via both HTTP and HTTPS, it can still be confusing that "type":
"http" is expected to go with "url": "https://...".  Switch example
URLs from HTTP to HTTPS to make it more obvious.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 months agoMerge pull request #57551 from linuxbox2/wip-rgwlc-66111
Matt Benjamin [Thu, 30 Jan 2025 17:15:36 +0000 (12:15 -0500)]
Merge pull request #57551 from linuxbox2/wip-rgwlc-66111

rgwlc: send pool transition notifications too

5 months agoMerge pull request #60250 from aainscow/interval_set_enhancements
Alex Ainscow [Thu, 30 Jan 2025 17:06:00 +0000 (17:06 +0000)]
Merge pull request #60250 from aainscow/interval_set_enhancements

include: interval_set: Relax requirements and enhance performance of interval sets

5 months agoMerge pull request #61135 from rkachach/fix_issue_cephadm_services_registry
Adam King [Thu, 30 Jan 2025 16:43:58 +0000 (11:43 -0500)]
Merge pull request #61135 from rkachach/fix_issue_cephadm_services_registry

mgr/cephadm: using service registry pattern for cephadm services

Reviewed-by: Adam King <adking@redhat.com>
5 months agoMerge pull request #59480 from bill-scales/ec_partial_read
Bill Scales [Thu, 30 Jan 2025 16:17:25 +0000 (16:17 +0000)]
Merge pull request #59480 from bill-scales/ec_partial_read

Further EC partial stripe read fixes

5 months agoMerge pull request #61591 from gbregman/main
Gil Bregman [Thu, 30 Jan 2025 15:59:11 +0000 (17:59 +0200)]
Merge pull request #61591 from gbregman/main

mgr/cephadm/nvmeof: Add verify_listener_ip field to NVMeOF configuration

5 months agoMerge PR #61537 into main
Venky Shankar [Thu, 30 Jan 2025 12:44:05 +0000 (18:14 +0530)]
Merge PR #61537 into main

* refs/pull/61537/head:
libcephfs_proxy: implement ceph_readdir_r()

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Anoop C S <anoopcs@cryptolab.net>
5 months agomgr/cephadm/nvmeof: Add verify_listener_ip field to NVMeOF configuration and remove... 61591/head
Gil Bregman [Thu, 30 Jan 2025 11:33:51 +0000 (13:33 +0200)]
mgr/cephadm/nvmeof: Add verify_listener_ip field to NVMeOF configuration and remove obsolete enable_key_encryption
Fixes https://tracker.ceph.com/issues/69731

Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
5 months agoMerge pull request #61540 from idryomov/wip-69679
Ilya Dryomov [Thu, 30 Jan 2025 10:23:16 +0000 (11:23 +0100)]
Merge pull request #61540 from idryomov/wip-69679

mon/OSDMonitor: relax cap enforcement for unmanaged snapshots

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 months agoosd/scrub: discard repair_oinfo_oid() 61590/head
Ronen Friedman [Thu, 30 Jan 2025 09:27:58 +0000 (03:27 -0600)]
osd/scrub: discard repair_oinfo_oid()

repair_oinfo_oid(), called every scrub, has a very specific
functionality: fix the object ID specified in the Object Info
attribute, if different from the ID of the owning object.

This fix was added in 2017, as a response to a unique failure
scenario that was observed in Sepia - probably following a
filesystem bug. See https://tracker.ceph.com/issues/18409 &
https://tracker.ceph.com/issues/20471.

The limited functionality of repair_oinfo_oid() -
only repairing this one specific issue, and only if the OI_ATTR
exists and is decodable - does not justify the overhead of
running it every scrub.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
5 months agoosd/scrub: remove unnecessary loop 61577/head
Ronen Friedman [Wed, 29 Jan 2025 19:09:36 +0000 (13:09 -0600)]
osd/scrub: remove unnecessary loop

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
5 months agoMerge pull request #61471 from idryomov/wip-65889-more
Ilya Dryomov [Thu, 30 Jan 2025 08:38:29 +0000 (09:38 +0100)]
Merge pull request #61471 from idryomov/wip-65889-more

cls/rbd: don't use read API for write-like methods

Reviewed-by: Ramana Raja <rraja@redhat.com>
5 months agocommon: ceph_context: make use of get_tracked_keys() 61394/head
Ronen Friedman [Wed, 15 Jan 2025 07:49:46 +0000 (01:49 -0600)]
common: ceph_context: make use of get_tracked_keys()

modify some configuration object registrations
in common/ceph_context to use the updated
md_config_obs_t::get_tracked_keys() API

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
5 months agoMerge pull request #61545 from Hezko/nvmeof-cli-add-cmnds 60583/head
Hezko [Thu, 30 Jan 2025 07:07:27 +0000 (09:07 +0200)]
Merge pull request #61545 from Hezko/nvmeof-cli-add-cmnds

mgr/dashboard: Add additional API and CLI endpoints

5 months agoMerge pull request #61465 from ArbitCode/wip-raja-fix-multipart-upload-cant-get-obj-tag
Raja [Thu, 30 Jan 2025 06:29:44 +0000 (11:59 +0530)]
Merge pull request #61465 from ArbitCode/wip-raja-fix-multipart-upload-cant-get-obj-tag

RGW:fix obj by multipart upload cant get tag

5 months agoMerge pull request #61510 from dmick/container-no-repo-creds
Dan Mick [Wed, 29 Jan 2025 19:18:24 +0000 (11:18 -0800)]
Merge pull request #61510 from dmick/container-no-repo-creds

container/build.sh: don't require repo creds on NO_PUSH

5 months agoMerge pull request #61566 from zdover23/wip-doc-2025-01-30-cephadm-services-osd
Zac Dover [Wed, 29 Jan 2025 17:29:34 +0000 (03:29 +1000)]
Merge pull request #61566 from zdover23/wip-doc-2025-01-30-cephadm-services-osd

doc/cephadm: simplify confusing math proposition

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
5 months agoMerge pull request #61530 from aza547/ssl_cert
Adam King [Wed, 29 Jan 2025 16:28:18 +0000 (11:28 -0500)]
Merge pull request #61530 from aza547/ssl_cert

cephadm: rgw: allow specifying the ssl_certificate by filepath

Reviewed-by: Adam King <adking@redhat.com>
5 months agoMerge pull request #61511 from phlogistonjohn/jjm-ctr-label-ceph
Adam King [Wed, 29 Jan 2025 16:25:09 +0000 (11:25 -0500)]
Merge pull request #61511 from phlogistonjohn/jjm-ctr-label-ceph

container: add label ceph=True back

Reviewed-by: Adam King <adking@redhat.com>
5 months agoMerge pull request #61565 from AliMasarweh/wip-alimasa-bn-policy-with-tenant
Ali Masarwa [Wed, 29 Jan 2025 15:48:12 +0000 (17:48 +0200)]
Merge pull request #61565 from AliMasarweh/wip-alimasa-bn-policy-with-tenant

RGW | bucket notifications: support cross tenant operations

Reviewed-by: yuvalif<ylifshit@redhat.com>
5 months agoMerge pull request #61559 from linuxbox2/wip-new-zppbits
Matt Benjamin [Wed, 29 Jan 2025 14:50:35 +0000 (09:50 -0500)]
Merge pull request #61559 from linuxbox2/wip-new-zppbits

rgw: update to latest zpp_bits.h to compile w/gcc-14 & clang 19

5 months agoMerge pull request #60246 from jamiepryde/SIMD-align-64
SrinivasaBharathKanta [Wed, 29 Jan 2025 14:16:23 +0000 (19:46 +0530)]
Merge pull request #60246 from jamiepryde/SIMD-align-64

erasure-code: Increase SIMD_ALIGN from 32 to 64

5 months agoMerge pull request #59679 from ceph/add-new-ec-plugins-for-qa
SrinivasaBharathKanta [Wed, 29 Jan 2025 14:15:32 +0000 (19:45 +0530)]
Merge pull request #59679 from ceph/add-new-ec-plugins-for-qa

qa/erasure-code: add new teuthology isa configs

5 months agodoc/cephadm: simplify confusing math proposition 61566/head
Zac Dover [Wed, 29 Jan 2025 14:05:59 +0000 (00:05 +1000)]
doc/cephadm: simplify confusing math proposition

s/This means that the exact device size is 3.64 * 1000, or 3640GB"/This
means that the exact device size is 3.64TB, or 3640 GB"/

In the original text, the number "3.64" appears to refer to a quantity
(and indeed, it is a quantity of Terabytes), but it is unlabeled. Also,
on repeated recent readings of this sentence I found it more puzzling
than enlightening. So I made this commit.

Signed-off-by: Zac Dover <zac.dover@proton.me>
5 months agoRGW | bucket notifications: support cross tenant operations 61565/head
Ali Masarwa [Wed, 29 Jan 2025 12:09:22 +0000 (14:09 +0200)]
RGW | bucket notifications: support cross tenant operations

Signed-off-by: Ali Masarwa <amasarwa@redhat.com>
5 months agoMerge pull request #61123 from rhcs-dashboard/raise-smb-msg-exception
Pedro Gonzalez Gomez [Wed, 29 Jan 2025 12:20:51 +0000 (13:20 +0100)]
Merge pull request #61123 from rhcs-dashboard/raise-smb-msg-exception

mgr/dashboard: smb raise exception for unsucessful resource update

Reviewed-by: Afreen Misbah <afreen@ibm.com>
5 months agolibcephfs_proxy: implement ceph_readdir_r() 61537/head
Xavi Hernandez [Mon, 27 Jan 2025 11:07:58 +0000 (12:07 +0100)]
libcephfs_proxy: implement ceph_readdir_r()

Signed-off-by: Xavi Hernandez <xhernandez@gmail.com>
5 months agoMerge pull request #61317 from rhcs-dashboard/add-smb-service-msg
afreen23 [Wed, 29 Jan 2025 09:28:37 +0000 (14:58 +0530)]
Merge pull request #61317 from rhcs-dashboard/add-smb-service-msg

mgr/dashboard: add warning message on smb service management

Reviewed-by: Afreen Misbah <afreen@ibm.com>
5 months agoMerge pull request #61033 from rhcs-dashboard/rgw-user-accounts-ui
Nizamudeen A [Wed, 29 Jan 2025 05:14:47 +0000 (10:44 +0530)]
Merge pull request #61033 from rhcs-dashboard/rgw-user-accounts-ui

mgr/dashboard: RGW user accounts UI

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
5 months agoMerge pull request #60819 from rhcs-dashboard/smb-cluster-form
afreen23 [Wed, 29 Jan 2025 05:09:22 +0000 (10:39 +0530)]
Merge pull request #60819 from rhcs-dashboard/smb-cluster-form

mgr/dashboard: create smb cluster

Reviewed-by: Afreen Misbah <afreen@ibm.com>
5 months agocrimson/.../replicate_recovery_backend: remove unnecessary check
Samuel Just [Wed, 22 Jan 2025 02:46:23 +0000 (18:46 -0800)]
crimson/.../replicate_recovery_backend: remove unnecessary check

Already checked in handle_recovery_op.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 months agocrimson/.../object_context_loader: add lock_excl_sync method
Samuel Just [Wed, 22 Jan 2025 03:26:35 +0000 (19:26 -0800)]
crimson/.../object_context_loader: add lock_excl_sync method

Signed-off-by: Samuel Just <sjust@redhat.com>
5 months agocrimson/.../object_context_loader: add obc get_obc_manager variant
Samuel Just [Wed, 22 Jan 2025 02:41:17 +0000 (18:41 -0800)]
crimson/.../object_context_loader: add obc get_obc_manager variant

Avoids extra lookup.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 months agocrimson/.../replicated_recovery_backend: move do_transaction to _handle_pull_response
Samuel Just [Wed, 22 Jan 2025 02:13:42 +0000 (02:13 +0000)]
crimson/.../replicated_recovery_backend: move do_transaction to _handle_pull_response

Signed-off-by: Samuel Just <sjust@redhat.com>
5 months agocrimson/.../replicated_recovery_backend: only call _committed_pushed_object if complete
Samuel Just [Wed, 15 Jan 2025 22:34:31 +0000 (22:34 +0000)]
crimson/.../replicated_recovery_backend: only call _committed_pushed_object if complete

Signed-off-by: Samuel Just <sjust@redhat.com>
5 months agocrimson/.../replicated_recovery_backend: convert handle_pull_response to coroutine
Samuel Just [Wed, 15 Jan 2025 22:34:09 +0000 (22:34 +0000)]
crimson/.../replicated_recovery_backend: convert handle_pull_response to coroutine

Signed-off-by: Samuel Just <sjust@redhat.com>
5 months agocrimson/.../replicated_recovery_backend: convert _handle_pull_response to coroutine
Samuel Just [Wed, 15 Jan 2025 22:15:36 +0000 (22:15 +0000)]
crimson/.../replicated_recovery_backend: convert _handle_pull_response to coroutine

Signed-off-by: Samuel Just <sjust@redhat.com>
5 months agocrimson/.../replicated_recovery_backend: convert submit_push_data to coroutine
Samuel Just [Fri, 10 Jan 2025 22:50:14 +0000 (22:50 +0000)]
crimson/.../replicated_recovery_backend: convert submit_push_data to coroutine

Signed-off-by: Samuel Just <sjust@redhat.com>
5 months agocrimson/.../replicated_recovery_backend: convert prep_push_target to coroutine
Samuel Just [Fri, 10 Jan 2025 22:46:43 +0000 (22:46 +0000)]
crimson/.../replicated_recovery_backend: convert prep_push_target to coroutine

Signed-off-by: Samuel Just <sjust@redhat.com>
5 months agocrimson/.../recovery_backend: convert to logging macros, some formatting changes
Samuel Just [Wed, 8 Jan 2025 00:51:18 +0000 (00:51 +0000)]
crimson/.../recovery_backend: convert to logging macros, some formatting changes

Signed-off-by: Samuel Just <sjust@redhat.com>
5 months agocrimson/.../replicated_recovery_backend: convert to logging macros, some formatting...
Samuel Just [Tue, 7 Jan 2025 20:55:48 +0000 (12:55 -0800)]
crimson/.../replicated_recovery_backend: convert to logging macros, some formatting changes

Signed-off-by: Samuel Just <sjust@redhat.com>
5 months agorgw: update to latest zpp_bits.h to compile w/gcc-14 & clang 19 61559/head
Matt Benjamin [Tue, 28 Jan 2025 20:07:06 +0000 (15:07 -0500)]
rgw: update to latest zpp_bits.h to compile w/gcc-14 & clang 19

Fixes: https://tracker.ceph.com/issues/69696
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
5 months agonvmeofgw*: 2 fixes - for duplicated optimized pathes and fix for GW startup 61538/head
Leonid Chernin [Tue, 21 Jan 2025 13:05:09 +0000 (13:05 +0000)]
nvmeofgw*: 2 fixes - for duplicated optimized  pathes and fix for GW startup
 1. fix duplicated optimized host's pathes - trigger process_gw_down upon
   fast-gw reboot, removed old fast-reboot handlers
 2. fix GW startup - trigger process_gw_down when expired WAIT_BLOCKLIST timer

Signed-off-by: Leonid Chernin <leonidc@il.ibm.com>
5 months agoMerge pull request #61549 from zdover23/2025-01-28-radosgw-multisite
Zac Dover [Tue, 28 Jan 2025 18:10:00 +0000 (04:10 +1000)]
Merge pull request #61549 from zdover23/2025-01-28-radosgw-multisite

doc/radosgw: s/zonegroup/pools/

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
5 months agoMerge pull request #60735 from adk3798/cephadm-remove-daemon-service-name
Adam King [Tue, 28 Jan 2025 17:03:03 +0000 (12:03 -0500)]
Merge pull request #60735 from adk3798/cephadm-remove-daemon-service-name

mgr/cephadm: set service name for DaemonDescription object used during daemon removal

Reviewed-by: John Mulligan <jmulligan@redhat.com>
5 months agoMerge pull request #61215 from ArbitCode/wip-rgw-raja-feature-64526
Raja [Tue, 28 Jan 2025 16:30:26 +0000 (22:00 +0530)]
Merge pull request #61215 from ArbitCode/wip-rgw-raja-feature-64526

RGW:support x-amz-expected-bucket-owner to verify bucket ownership wi…

5 months agomgr/dashboard: smb raise exception for unsucessful resource update 61123/head
Pedro Gonzalez Gomez [Tue, 17 Dec 2024 20:08:55 +0000 (21:08 +0100)]
mgr/dashboard: smb raise exception for unsucessful resource update

Adds a decorator to raise a DashboardException with the msg error of an unsucessful smb resource update

Fixes: https://tracker.ceph.com/issues/69286
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
5 months agodoc/radosgw: s/zonegroup/pools/ 61549/head
Zac Dover [Tue, 28 Jan 2025 06:30:24 +0000 (16:30 +1000)]
doc/radosgw: s/zonegroup/pools/

s/zonegroup/pools/, where this change makes the text clearer.

This change was made in reponse to an upstream comment on
https://pad.ceph.com/p/Report_Documentation_Bugs.

Fixes: https://tracker.ceph.com/issues/69689
Signed-off-by: Zac Dover <zac.dover@proton.me>
5 months agomgr/dashboard: Add additional cli endpoints to align with existing nvmeof cli 61545/head
Tomer Haskalovitch [Wed, 15 Jan 2025 09:49:18 +0000 (11:49 +0200)]
mgr/dashboard: Add additional cli endpoints to align with existing nvmeof cli

Added new endpoints to ceph cli and dashboard API to align with cli commands that already exist in existing nvmeof cli.

fixes: https://tracker.ceph.com/issues/62705

Signed-off-by: Tomer Haskalovitch <il033030@Tomers-MBP.lan>
5 months agoMerge pull request #61551 from leonidc/level_of_critical_mon_ev
leonidc [Tue, 28 Jan 2025 14:15:51 +0000 (16:15 +0200)]
Merge pull request #61551 from leonidc/level_of_critical_mon_ev

nvmeofgw*: change log level of critical nvmeof monitor events to 1

5 months agomgr/cephadm: using service registry pattern for cephadm services 61135/head
Redouane Kachach [Tue, 14 Jan 2025 09:38:13 +0000 (10:38 +0100)]
mgr/cephadm: using service registry pattern for cephadm services

This change includes mainly the following enhancements:
- Introduced a centralized `CephadmServiceRegistry` to manage service registration and initialization.
- Added dynamic discovery of service modules in the same directory using `pkgutil` and `importlib`.
- Implemented a decorator `@service_registry_decorator` for automatic registration of service classes.

Fixes: https://tracker.ceph.com/issues/69021
Signed-off-by: Redouane Kachach <rkachach@ibm.com>
5 months agoMerge pull request #61449 from mohit84/issue_69405
Matan Breizman [Tue, 28 Jan 2025 10:29:43 +0000 (12:29 +0200)]
Merge pull request #61449 from mohit84/issue_69405

neorados_pool_test: Call create_pool at the end of NeoRados delete_pool related test

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
5 months agoosd/OSDCap: fix misleading grammar comments 61540/head
Ilya Dryomov [Mon, 27 Jan 2025 11:29:54 +0000 (12:29 +0100)]
osd/OSDCap: fix misleading grammar comments

The restrictions on pool name and namespace have been independent of
each other for ages.  Specifying namespace[=]<namespace> doesn't require
specifying pool[=]<pool> like is currently suggested -- neither for
regular "allow" grants nor for "profile" grants.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 months agomon/OSDMonitor: relax cap enforcement for unmanaged snapshots
Ilya Dryomov [Fri, 24 Jan 2025 19:47:11 +0000 (20:47 +0100)]
mon/OSDMonitor: relax cap enforcement for unmanaged snapshots

Since commit 4972e054b32c ("mon/OSDMonitor: enforce caps when
creating/deleting unmanaged snapshots"), a) write access to the MON
service, b) write access to the OSD service for a pool or c) permission
for "osd pool op unmanaged-snap" command for a pool is required.  For
"profile rbd" we configure read-only access to the MON service and rely
on write access to the OSD service, however the corresponding check in
is_osd_writable() is too strict.

A OSD cap like "profile rbd namespace=myns" or "allow w namespace=myns"
allows write access to myns namespace of any pool, but is_osd_writable()
disallows operations with unmanaged snapshots with such a cap because
its match.pool_namespace.pool_name.empty() is true.  This condition
appears to serve as the "doesn't include support for the application
tag" guard, but it should actually be match.pool_tag.is_match_all()
(or match.pool_tag.application.empty() if open-coded) -- no restriction
on the pool name doesn't automatically mean that there is a restriction
on the application tag.

Fixes: https://tracker.ceph.com/issues/69679
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
5 months agomgr/dashboard: create smb cluster 60819/head
Dnyaneshwari [Tue, 19 Nov 2024 07:01:52 +0000 (12:31 +0530)]
mgr/dashboard: create smb cluster

Fixes: https://tracker.ceph.com/issues/69156
Signed-off-by: Dnyaneshwari Talwekar <dtalwekar@redhat.com>
5 months agonvmeofgw*: change log level of critical nvmeof monitor events to 1 61551/head
Leonid Chernin [Tue, 28 Jan 2025 08:23:38 +0000 (08:23 +0000)]
nvmeofgw*: change log level of critical nvmeof monitor events to 1

Signed-off-by: Leonid Chernin <leonidc@il.ibm.com>
5 months agoAllow passing ssl_certificate as an rgw_frontend_extra_arg. 61530/head
aza547 [Sun, 26 Jan 2025 18:10:59 +0000 (18:10 +0000)]
Allow passing ssl_certificate as an rgw_frontend_extra_arg.

Fixes: https://tracker.ceph.com/issues/69567
Signed-off-by: Alexander Hussein-Kershaw <alexhus@microsoft.com>
fix markup

5 months agoMerge pull request #61392 from Hezko/nvmeof-gw-info-cli
Hezko [Mon, 27 Jan 2025 17:53:58 +0000 (19:53 +0200)]
Merge pull request #61392 from Hezko/nvmeof-gw-info-cli

Dashboard: Introduce nvmeof cli commands

5 months agoMerge PR #60996 into main
Venky Shankar [Mon, 27 Jan 2025 16:23:25 +0000 (21:53 +0530)]
Merge PR #60996 into main

* refs/pull/60996/head:
mds/SimpleLock: add is_xlocked_by()
mds/SimpleLock: add has_xlock_by()

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
5 months agoMerge PR #61250 into main
Venky Shankar [Mon, 27 Jan 2025 16:20:40 +0000 (21:50 +0530)]
Merge PR #61250 into main

* refs/pull/61250/head:
mds: avoid acquiring the wrlock twice for a single request
mds: add 'mds_allow_async_dirops' opt to allow/disable async dirop

Reviewed-by: Venky Shankar <vshankar@redhat.com>
5 months agoMerge PR #61327 into main
Venky Shankar [Mon, 27 Jan 2025 16:19:27 +0000 (21:49 +0530)]
Merge PR #61327 into main

* refs/pull/61327/head:
client: Fix signed comparison warning

Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
5 months agointerval_set: Improve comments 60250/head
Alex Ainscow [Mon, 27 Jan 2025 11:51:35 +0000 (11:51 +0000)]
interval_set: Improve comments

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
5 months agoMerge pull request #60935 from rhcs-dashboard/smb-cluster-delete
Pedro Gonzalez Gomez [Mon, 27 Jan 2025 12:38:38 +0000 (13:38 +0100)]
Merge pull request #60935 from rhcs-dashboard/smb-cluster-delete

mgr/dashboard: delete smb cluster

Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Afreen Misbah <afreen@ibm.com>
5 months agointerval_set: Fix test_interval_set.cc
Alex Ainscow [Thu, 23 Jan 2025 16:56:25 +0000 (16:56 +0000)]
interval_set: Fix test_interval_set.cc

Here we duplicate all the original tests which used "insert" to verify they also pass with "union_insert". All new tests are modified to use "union_of" and "union_insert"

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
5 months agointerval_set: Add back insert()
Alex Ainscow [Thu, 23 Jan 2025 09:28:09 +0000 (09:28 +0000)]
interval_set: Add back insert()

A reviewer (see github) was concerned that the policing provided by insert() may have been required for some applications of insert_set. As such, I have re-instated the old insert method and instead refactored "union_insert". IU have also enhanced the comments.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
5 months agointerval_set: Review comments
Alex Ainscow [Thu, 23 Jan 2025 08:42:48 +0000 (08:42 +0000)]
interval_set: Review comments

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
5 months agointerval_map: Review comments
Alex Ainscow [Thu, 23 Jan 2025 08:39:53 +0000 (08:39 +0000)]
interval_map: Review comments

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
5 months agointerval_set: tests to cover interval set changes
Alex Ainscow [Wed, 8 Jan 2025 22:20:22 +0000 (22:20 +0000)]
interval_set: tests to cover interval set changes

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
5 months agointerval_set: align method to extend all intervals to be aligned with a specified...
Alex Ainscow [Wed, 8 Jan 2025 22:19:16 +0000 (22:19 +0000)]
interval_set: align method to extend all intervals to be aligned with a specified alignment

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
5 months agointerval_set: erase and subtract enhancements
Alex Ainscow [Wed, 8 Jan 2025 22:18:35 +0000 (22:18 +0000)]
interval_set: erase and subtract enhancements

The old erase would only allow intervals which exist to be erased. It is often useful to erase any interval, even if it does not exist or partially overlaps one or many intervals.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
5 months agointerval_set: Enhancements to improve efficiency of insert() and to allow more flexib...
Alex Ainscow [Wed, 8 Jan 2025 22:16:49 +0000 (22:16 +0000)]
interval_set: Enhancements to improve efficiency of insert() and to allow more flexibility.

The old insert was restrictive in ranges that could be added in. The new interface allows for a range to be added, whether it extends or joins other intervals.

Also change a number of interfaces to use the new insert.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
5 months agointerval_set: contains() returns true if a specified interval is entirely contained...
Alex Ainscow [Wed, 8 Jan 2025 22:14:02 +0000 (22:14 +0000)]
interval_set: contains() returns true if a specified interval is entirely contained within the set.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
5 months agointerval_map: tests. Tests to cover new function in interval map
Alex Ainscow [Wed, 8 Jan 2025 22:13:11 +0000 (22:13 +0000)]
interval_map: tests.  Tests to cover new function in interval map

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
5 months agointerval_map: contains() to determine if range is entirely contained within range.
Alex Ainscow [Wed, 8 Jan 2025 22:08:23 +0000 (22:08 +0000)]
interval_map: contains() to determine if range is entirely contained within range.

Determine, for a particular interval iterator, whether the specified range is entirely contained inside the interval.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
5 months agointerval_map: Add interfaces for getting start/end and lower ranges.
Alex Ainscow [Wed, 8 Jan 2025 22:04:56 +0000 (22:04 +0000)]
interval_map: Add interfaces for getting start/end and lower ranges.

 These new utilities add the ability to:
   get_lower_range: Return the lowest interval iterator which covers the specified range
   get_start_off(): return the first offset in the interval.
   get_end_off(): Return the end offset of the last interval
   contains(): Return true if specified is entirely contained within the interval map.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
5 months agoMerge pull request #60993 from MaxKellermann/types__backward_backward
Ilya Dryomov [Mon, 27 Jan 2025 11:03:13 +0000 (12:03 +0100)]
Merge pull request #60993 from MaxKellermann/types__backward_backward

include/types.h, tools/cephfs: remove _BACKWARD_BACKWARD_WARNING_H

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
5 months agomgr/dashboard: Introduce nvmeof cli 61392/head
Tomer Haskalovitch [Wed, 15 Jan 2025 09:49:18 +0000 (11:49 +0200)]
mgr/dashboard: Introduce nvmeof cli

Extends ceph cli with nvmeof commands

fixes: https://tracker.ceph.com/issues/62705

Signed-off-by: Tomer Haskalovitch <il033030@Tomers-MBP.lan>
5 months agomgr/dashboard: delete smb cluster 60935/head
Dnyaneshwari [Wed, 4 Dec 2024 05:51:11 +0000 (11:21 +0530)]
mgr/dashboard: delete smb cluster
Fixes: https://tracker.ceph.com/issues/69191
       https://tracker.ceph.com/issues/69605

Signed-off-by: Dnyaneshwari Talwekar <dtalweka@redhat.com>
5 months agoMerge pull request #57895 from rhcs-dashboard/kcli-multi-cluster
Nizamudeen A [Mon, 27 Jan 2025 06:41:18 +0000 (12:11 +0530)]
Merge pull request #57895 from rhcs-dashboard/kcli-multi-cluster

mgr/dashboard: adapt kcli plan to improve multi-cluster deployment

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
5 months agoMerge pull request #61382 from nbalacha/dashboard-typo
Nizamudeen A [Mon, 27 Jan 2025 05:46:00 +0000 (11:16 +0530)]
Merge pull request #61382 from nbalacha/dashboard-typo

mgr/dashboard: Typo in NVMe-oF create service

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
5 months agoMerge pull request #61525 from zdover23/wip-doc-2025-01-26-cephadm-host-management
Zac Dover [Sun, 26 Jan 2025 16:32:51 +0000 (02:32 +1000)]
Merge pull request #61525 from zdover23/wip-doc-2025-01-26-cephadm-host-management

doc/cephadm: correct note

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
5 months agoMerge pull request #61506 from ronen-fr/wip-rf-scrub-formatters
Ronen Friedman [Sun, 26 Jan 2025 07:51:31 +0000 (09:51 +0200)]
Merge pull request #61506 from ronen-fr/wip-rf-scrub-formatters

osd/scrub: use ObjectSection & ArraySection
Reviewed-by: Samuel Just <sjust@redhat.com>
5 months agodoc/cephadm: correct note 61525/head
Zac Dover [Sun, 26 Jan 2025 05:11:16 +0000 (15:11 +1000)]
doc/cephadm: correct note

Correct the English in a note in doc/cephadm/host-management.rst.

This commit was made in response to
https://github.com/ceph/ceph/pull/50340, which corrected some of this
note in Quincy.

Signed-off-by: Zac Dover <zac.dover@proton.me>
5 months agoMerge pull request #61520 from idryomov/wip-osdcap-syntax-doc
Ilya Dryomov [Sat, 25 Jan 2025 17:49:05 +0000 (18:49 +0100)]
Merge pull request #61520 from idryomov/wip-osdcap-syntax-doc

doc/rados: pool and namespace are independent osdcap restrictions

Reviewed-by: Zac Dover <zac.dover@proton.me>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>