]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 months agocrimson/osd/backfill_state: discard CancelBackfill events when the 60485/head
Xuehan Xu [Fri, 25 Oct 2024 04:16:16 +0000 (12:16 +0800)]
crimson/osd/backfill_state: discard CancelBackfill events when the
backfill is done

Fixes: https://tracker.ceph.com/issues/68719
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
8 months agoMerge pull request #60433 from indirasawant/doc_fix_1
Anthony D'Atri [Tue, 22 Oct 2024 22:48:06 +0000 (18:48 -0400)]
Merge pull request #60433 from indirasawant/doc_fix_1

doc/cephfs: rearrange subvolume group information

8 months agodoc/cephfs: rearrange subvolume group information 60433/head
Indira Sawant [Tue, 22 Oct 2024 21:45:10 +0000 (16:45 -0500)]
doc/cephfs: rearrange subvolume group information

Rearranging the documentation to align it with CephFS encapsulation design.

Signed-off-by: Indira Sawant <indira.sawant@ibm.com>
8 months agoMerge pull request #60423 from zdover23/wip-doc-2024-10-22-cephadm-services-smb
Zac Dover [Tue, 22 Oct 2024 20:17:21 +0000 (06:17 +1000)]
Merge pull request #60423 from zdover23/wip-doc-2024-10-22-cephadm-services-smb

doc/cephadm: correct "ceph orch apply" command

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
8 months agodoc/cephadm: correct "ceph orch apply" command 60423/head
Zac Dover [Tue, 22 Oct 2024 11:30:02 +0000 (21:30 +1000)]
doc/cephadm: correct "ceph orch apply" command

s/orch apply/ceph orch apply/ in a command where "ceph" was missing.

This was reported by Eugen Block to Zac Dover on 22 Oct 2024 through
Slack.

Co-authored-by: Eugen Block <eblock@nde.ag>
Signed-off-by: Zac Dover <zac.dover@proton.me>
8 months agoMerge PR #60106 into main
Patrick Donnelly [Tue, 22 Oct 2024 01:00:21 +0000 (21:00 -0400)]
Merge PR #60106 into main

* refs/pull/60106/head:
msg/async/ProtocolV2: pass `desc` as `std::string_view` to write()

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
8 months agoMerge PR #60174 into main
Patrick Donnelly [Tue, 22 Oct 2024 00:57:15 +0000 (20:57 -0400)]
Merge PR #60174 into main

* refs/pull/60174/head:
common/Finisher: pass name as std::string_view to ctor
common/Finisher: add method get_thread_name()
mgr/ActivePyModule: build thread name with fmt
mgr/ActivePyModule: return std::string_view instead of std::string copy
common/Finisher: use fmt to build strings
common/Finisher: un-inline ctor and dtor
common/Finisher: add `const` to several fields
common/Finisher: merge duplicate field initializers
common/Finisher: call notify_one() instead of notify_all()
common/Finisher: wake up after pushing to the queue
common/Finisher: do not wake up the thread if already running
common/Finisher: call logger without holding the lock
common/Finisher: use `std::lock_guard` instead of `std::unique_lock`
common/Finisher: merge all queue() container methods into one template

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
8 months agoMerge PR #60214 into main
Patrick Donnelly [Tue, 22 Oct 2024 00:56:01 +0000 (20:56 -0400)]
Merge PR #60214 into main

* refs/pull/60214/head:
mds/MDCache: use `auto`
mds/CDir: use the erase() return value
mds/MDCache: remove unnecessary empty() check
mds/MDCache: use the erase() return value
mds/MDCache: pass iterator by value

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
8 months agoMerge PR #60216 into main
Patrick Donnelly [Tue, 22 Oct 2024 00:54:15 +0000 (20:54 -0400)]
Merge PR #60216 into main

* refs/pull/60216/head:
common/options: pass name as rvalue reference
common/config: use libfmt to build strings
common/config: use emplace_back() instead of push_back()
common/HeartbeatMap: pass name as rvalue reference
common/config_obs_mgr: use the erase() return value
common/SloppyCRCMap: use the erase() return value
common: disable `boost::intrusive::constant_time_size`

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
8 months agoMerge PR #60220 into main
Patrick Donnelly [Tue, 22 Oct 2024 00:53:44 +0000 (20:53 -0400)]
Merge PR #60220 into main

* refs/pull/60220/head:
msg/async/AsyncConnection: move the writeCallback instead of copying it
msg/async/AsyncConnection: do not wrap writeCallback in `std::optional`
msg/async/frames_v2: use zero-initialization instead of memset()
msg/async/Event: use zero-initialization instead of memset()
msg/Message: use zero-initialization instead of memset()
msg/async/ProtocolV2: eliminate redundant std::map lookups
msg/async/ProtocolV[12]: reverse the std::map sort order
msg/async/ProtocolV[12]: use `auto`
msg/async/ProtocolV[12]: use range-based `for`
msg/async/ProtocolV1: use zero-initialization instead of memset()

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
8 months agoMerge PR #60324 into main
Patrick Donnelly [Tue, 22 Oct 2024 00:51:33 +0000 (20:51 -0400)]
Merge PR #60324 into main

* refs/pull/60324/head:
mds/Beacon: set a thread name

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
8 months agoMerge pull request #59470 from adk3798/cephadm-staggered-upgrade-test-wait-check...
Adam King [Mon, 21 Oct 2024 18:54:56 +0000 (14:54 -0400)]
Merge pull request #59470 from adk3798/cephadm-staggered-upgrade-test-wait-check-rgw-versions

qa/cephadm: wait a bit before checking rgw daemons upgraded w/ `ceph versions`

Reviewed-by: Guillaume Abrioux <gabrioux@ibm.com>
8 months agoMerge pull request #60225 from MaxKellermann/ceph_context_atomic
Casey Bodley [Mon, 21 Oct 2024 17:07:20 +0000 (13:07 -0400)]
Merge pull request #60225 from MaxKellermann/ceph_context_atomic

common/ceph_context: use std::atomic<std::shared_ptr<T>>

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 months agoMerge PR #60341 into main
Patrick Donnelly [Mon, 21 Oct 2024 16:20:21 +0000 (12:20 -0400)]
Merge PR #60341 into main

* refs/pull/60341/head:
doc/dev: add walkthrough for CephFS kernel development

Reviewed-by: Anthony D Atri <anthony.datri@gmail.com>
8 months agoMerge pull request #60045 from AliMasarweh/wip-alimasa-notif-list-bucket
Ali Masarwa [Mon, 21 Oct 2024 13:34:57 +0000 (16:34 +0300)]
Merge pull request #60045 from AliMasarweh/wip-alimasa-notif-list-bucket

RGW|Bucket notification: fix for v2 topics rgw-admin list operation

Reviewed-by: yuvalif<ylifshit@redhat.com>
8 months agoMerge pull request #56849 from frittentheke/issue_64321_alerts
afreen23 [Mon, 21 Oct 2024 12:09:56 +0000 (17:39 +0530)]
Merge pull request #56849 from frittentheke/issue_64321_alerts

Add multi-cluster support (showMultiCluster=True) to alerts

Reviewed-by: Afreen Misbah <afreen@ibm.com>
8 months agoMerge pull request #60401 from rhcs-dashboard/cephfs
afreen23 [Mon, 21 Oct 2024 11:57:58 +0000 (17:27 +0530)]
Merge pull request #60401 from rhcs-dashboard/cephfs

mgr/dashboard: Removing duplicate cephfs constant file & importing correct default_subvolumegroup.

Reviewed-by: Afreen Misbah <afreen@ibm.com>
8 months agoMerge pull request #59926 from JonBailey1993/JonBailey1993/ceph_test_rados_io_sequenc...
Jon Bailey [Mon, 21 Oct 2024 08:50:44 +0000 (09:50 +0100)]
Merge pull request #59926 from JonBailey1993/JonBailey1993/ceph_test_rados_io_sequence_interactive

test/osd: Add interactive mode to ceph_test_rados_io_sequence

Reviewed-by: Nitzan Mordechai <nmordech@redhat.com>
8 months agoRGW|Bucket notification: fix for v2 topics rgw-admin list operation 60045/head
Ali Masarwa [Sun, 29 Sep 2024 12:00:13 +0000 (15:00 +0300)]
RGW|Bucket notification: fix for v2 topics rgw-admin list operation

Signed-off-by: Ali Masarwa <amasarwa@redhat.com>
8 months agoAdd multi-cluster support (showMultiCluster=True) to alerts 56849/head
Christian Rohmann [Fri, 26 Jan 2024 14:05:52 +0000 (15:05 +0100)]
Add multi-cluster support (showMultiCluster=True) to alerts

Following PR https://github.com/ceph/ceph/pull/55495 fixing the
dashboard in regards to multiple clusters storing their metrics
in a single Prometheus instance, this PR addresses the issues
for alerts.

Fixes: https://tracker.ceph.com/issues/64321
Signed-off-by: Christian Rohmann <christian.rohmann@inovex.de>
9 months agodoc/dev: add walkthrough for CephFS kernel development 60341/head
Patrick Donnelly [Tue, 15 Oct 2024 21:12:28 +0000 (17:12 -0400)]
doc/dev: add walkthrough for CephFS kernel development

Specifically, an opinionated walkthrough of how to setup an environment for a
built kernel, networking a VM to sepia, and mounting a remote Ceph cluster.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
9 months agomgr/dashboard: Removing duplicate cephfs constant file & importing correct default_su... 60401/head
Dnyaneshwari [Fri, 18 Oct 2024 15:58:37 +0000 (21:28 +0530)]
mgr/dashboard: Removing duplicate cephfs constant file & importing correct default_subvolumegroup.

Fixes: https://tracker.ceph.com/issues/68623
Signed-off-by: Dnyaneshwari Talwekar <dtalweka@redbat.com>
9 months agoMerge pull request #60323 from aclamk/wip-aclamk-fix-68528
Adam Kupczyk [Fri, 18 Oct 2024 15:56:46 +0000 (17:56 +0200)]
Merge pull request #60323 from aclamk/wip-aclamk-fix-68528

os/bluestore: Fix repair of multilabel when collides with BlueFS

9 months agoMerge pull request #59420 from rishabh-d-dave/max-mds-confirm
Rishabh Dave [Fri, 18 Oct 2024 14:34:18 +0000 (20:04 +0530)]
Merge pull request #59420 from rishabh-d-dave/max-mds-confirm

mon,cephfs: require confirmation when changing max_mds on unhealthy cluster

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
9 months agoMerge pull request #60331 from MaxKellermann/CodingStyle_fwd
Ilya Dryomov [Fri, 18 Oct 2024 14:08:51 +0000 (16:08 +0200)]
Merge pull request #60331 from MaxKellermann/CodingStyle_fwd

CodingStyle: allow C++ forward declarations

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
9 months agoMerge pull request #58084 from asm0deuz/mgmt_gtw_e2e 60380/head
Adam King [Fri, 18 Oct 2024 13:05:43 +0000 (09:05 -0400)]
Merge pull request #58084 from asm0deuz/mgmt_gtw_e2e

mgmt-gateway: add e2e testing

Reviewed-by: Adam King <adking@redhat.com>
9 months agoMerge pull request #60328 from cbodley/wip-mstart-doc
Casey Bodley [Fri, 18 Oct 2024 12:36:29 +0000 (08:36 -0400)]
Merge pull request #60328 from cbodley/wip-mstart-doc

rgw: document and label mstart.sh and related scripts

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
Reviewed-by: Shilpa Jagannath <smanjara@redhat.com>
9 months agoMerge pull request #58486 from rishabh-d-dave/ignore-osd-down
Rishabh Dave [Fri, 18 Oct 2024 11:46:23 +0000 (17:16 +0530)]
Merge pull request #58486 from rishabh-d-dave/ignore-osd-down

qa/cephfs: ignore when specific OSD is reported down during upgrade

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
9 months agoMerge pull request #59712 from rishabh-d-dave/mgr-vol-clone-stats-snap
Rishabh Dave [Fri, 18 Oct 2024 11:45:40 +0000 (17:15 +0530)]
Merge pull request #59712 from rishabh-d-dave/mgr-vol-clone-stats-snap

qa/cephfs: test clone progress reporter after subvol is deleted but...

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
9 months agoMerge pull request #59848 from rishabh-d-dave/mgr-vol-wakeup-timeout
Rishabh Dave [Fri, 18 Oct 2024 11:44:42 +0000 (17:14 +0530)]
Merge pull request #59848 from rishabh-d-dave/mgr-vol-wakeup-timeout

mgr/vol: use pre-defined timeout period instead of hardcoded value

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
9 months agoMerge pull request #60008 from rishabh-d-dave/mgr-util-improve
Rishabh Dave [Fri, 18 Oct 2024 11:36:12 +0000 (17:06 +0530)]
Merge pull request #60008 from rishabh-d-dave/mgr-util-improve

mgr/mgr_util: improvements for RTimer

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
9 months agoMerge pull request #60027 from rishabh-d-dave/mgr-vol-progbar-id
Rishabh Dave [Fri, 18 Oct 2024 11:35:39 +0000 (17:05 +0530)]
Merge pull request #60027 from rishabh-d-dave/mgr-vol-progbar-id

mgr/vol: don't define progress bar ID repeatedly

Reviewed-by: Venky Shankar <vshankar@redhat.com>
9 months agoMerge pull request #59782 from aclamk/wip-aclamk-fix-67596-allocmap
Adam Kupczyk [Fri, 18 Oct 2024 06:49:16 +0000 (08:49 +0200)]
Merge pull request #59782 from aclamk/wip-aclamk-fix-67596-allocmap

os/bluestore: Fix ceph-bluestore-tool allocmap command

9 months agomgmt-gateway: add e2e testing 58084/head
Teoman ONAY [Mon, 17 Jun 2024 11:16:48 +0000 (13:16 +0200)]
mgmt-gateway: add e2e testing

Add mgmt-gateway teuthology test scenarios

Signed-off-by: Teoman ONAY <tonay@ibm.com>
9 months agoMerge pull request #60202 from athanatos/sjust/wip-crimson-io
Samuel Just [Thu, 17 Oct 2024 18:09:26 +0000 (11:09 -0700)]
Merge pull request #60202 from athanatos/sjust/wip-crimson-io

crimson: replace do_osd_ops* with simpler, more general mechanism

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Matan Breizman <mbreizma@redhat.com>
9 months agoMerge pull request #60223 from guits/replace-osd-enhancement
Adam King [Thu, 17 Oct 2024 16:12:16 +0000 (12:12 -0400)]
Merge pull request #60223 from guits/replace-osd-enhancement

orch: disk replacement enhancement

Reviewed-by: Adam King <adking@redhat.com>
9 months agoMerge pull request #60347 from avanthakkar/rm-smb-dump-everything
Adam King [Thu, 17 Oct 2024 14:44:32 +0000 (10:44 -0400)]
Merge pull request #60347 from avanthakkar/rm-smb-dump-everything

mgr/smb: rm all `smb dump` commands

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
9 months agoMerge pull request #60167 from jmolmo/add_daemon_health_metric
Juan Miguel Olmo [Thu, 17 Oct 2024 14:39:37 +0000 (16:39 +0200)]
Merge pull request #60167 from jmolmo/add_daemon_health_metric

exporter: New metric for report ceph daemons health

9 months agoMerge pull request #59514 from kevinzs2048/add-uadk-doc
Zac Dover [Thu, 17 Oct 2024 13:25:15 +0000 (23:25 +1000)]
Merge pull request #59514 from kevinzs2048/add-uadk-doc

Compressor: Add UADK document

Reviewed-by: Zac Dover <zac.dover@proton.me>
9 months agoMerge pull request #60173 from rhcs-dashboard/fix-lc
afreen23 [Thu, 17 Oct 2024 11:41:54 +0000 (17:11 +0530)]
Merge pull request #60173 from rhcs-dashboard/fix-lc

mgr/dashboard: fix lifecycle issues

Reviewed-by: Afreen Misbah <afreen@ibm.com>
9 months agoMerge pull request #60260 from ShwetaBhosale1/new_cephadm_command_to_list_default_images
Adam King [Thu, 17 Oct 2024 11:12:01 +0000 (07:12 -0400)]
Merge pull request #60260 from ShwetaBhosale1/new_cephadm_command_to_list_default_images

cephadm: Added cephadm command to list all the default images

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
9 months agoMerge pull request #55808 from neesingh-rh/wip-63700
Venky Shankar [Thu, 17 Oct 2024 06:31:27 +0000 (12:01 +0530)]
Merge pull request #55808 from neesingh-rh/wip-63700

cephfs-shell: fixing cephfs-shell test failures

Reviewed-by: Venky Shankar <vshankar@redhat.com>
9 months agomgr/dashboard: fix lifecycle issues 60173/head
Pedro Gonzalez Gomez [Mon, 7 Oct 2024 19:22:20 +0000 (21:22 +0200)]
mgr/dashboard: fix lifecycle issues

Fixes: https://tracker.ceph.com/issues/68434
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
9 months agoMerge pull request #58292 from neesingh-rh/wip-vol-method-name-change
Venky Shankar [Thu, 17 Oct 2024 05:21:16 +0000 (10:51 +0530)]
Merge pull request #58292 from neesingh-rh/wip-vol-method-name-change

mgr/vol : shortening the name of helper method

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
9 months agocephadm: Added new cephadm command to list all the default images 60260/head
Shweta Bhosale [Wed, 9 Oct 2024 09:23:30 +0000 (14:53 +0530)]
cephadm: Added new cephadm command to list all the default images

Fixes: https://tracker.ceph.com/issues/68438
Signed-off-by: Shweta Bhosale <Shweta.Bhosale1@ibm.com>
9 months agoMerge pull request #60058 from mchangir/log-save-thread-name-in-log-entries
Yuri Weinstein [Wed, 16 Oct 2024 20:42:33 +0000 (13:42 -0700)]
Merge pull request #60058 from mchangir/log-save-thread-name-in-log-entries

log: save/fetch thread name infra

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
9 months agoMerge PR #60317 into main
Patrick Donnelly [Wed, 16 Oct 2024 19:34:40 +0000 (15:34 -0400)]
Merge PR #60317 into main

* refs/pull/60317/head:
.github: detect GPL license in PRs

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
9 months agoMerge PR #59996 into main
Patrick Donnelly [Wed, 16 Oct 2024 19:32:00 +0000 (15:32 -0400)]
Merge PR #59996 into main

* refs/pull/59996/head:
mailmap: Add dashboard new joinees in maps

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
9 months agoMerge pull request #60053 from rkachach/fix_issue_68315
Adam King [Wed, 16 Oct 2024 18:07:30 +0000 (14:07 -0400)]
Merge pull request #60053 from rkachach/fix_issue_68315

mgr/cephadm: move Grafana's subpath handling logic to grafan config

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
9 months agomgr/smb: rm all `smb dump` commands 60347/head
Avan Thakkar [Wed, 16 Oct 2024 07:59:34 +0000 (13:29 +0530)]
mgr/smb: rm all `smb dump` commands

Fixes: https://tracker.ceph.com/issues/68545
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
9 months agoMerge pull request #59680 from adk3798/bootstrap-apply-spec-fail-continue
Adam King [Wed, 16 Oct 2024 15:49:38 +0000 (11:49 -0400)]
Merge pull request #59680 from adk3798/bootstrap-apply-spec-fail-continue

cephadm: add ability to continue on failure when applying multiple specs

Reviewed-by: John Mulligan <jmulligan@redhat.com>
9 months agoMerge pull request #60077 from adk3798/cephadm-ganesha-conf-allow-set-io-flusher...
Adam King [Wed, 16 Oct 2024 15:37:14 +0000 (11:37 -0400)]
Merge pull request #60077 from adk3798/cephadm-ganesha-conf-allow-set-io-flusher-fail

mgr/cephadm: add "allow_set_io_flusher_fail = true;" to ganesha conf

Reviewed-by: Guillaume Abrioux <gabrioux@ibm.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
9 months agoMerge pull request #60300 from avanthakkar/add-smb-ok-to-stop
Adam King [Wed, 16 Oct 2024 15:35:27 +0000 (11:35 -0400)]
Merge pull request #60300 from avanthakkar/add-smb-ok-to-stop

mgr/cephadm: add ok_to_stop func for smb service

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Anoop C S <anoopcs@cryptolab.net>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
9 months agoMerge pull request #60112 from anoopcs9/cephadm-smb-add-ctdb-loglevel
Adam King [Wed, 16 Oct 2024 15:31:54 +0000 (11:31 -0400)]
Merge pull request #60112 from anoopcs9/cephadm-smb-add-ctdb-loglevel

cephadm/smb: Add a provision to specify ctdb log level

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
9 months agoMerge pull request #60263 from afreen23/wip-api-update
afreen23 [Wed, 16 Oct 2024 15:23:05 +0000 (20:53 +0530)]
Merge pull request #60263 from afreen23/wip-api-update

mgr/dashboard: Adapt gateway group changes in nvmeof UI

Reviewed-by: Afreen Misbah <afreen@ibm.com>
9 months agoexporter: New metric for report ceph daemons health 60167/head
Juan Miguel Olmo Martínez [Mon, 7 Oct 2024 14:55:51 +0000 (16:55 +0200)]
exporter: New metric for report ceph daemons health

Ceph exporter provide metrics to report ceph daemons communication health using
 the admin socket

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2146728
       https://tracker.ceph.com/issues/68428

Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
9 months agoMerge pull request #60306 from cbodley/wip-osdc-rm-completion
Casey Bodley [Wed, 16 Oct 2024 14:01:07 +0000 (10:01 -0400)]
Merge pull request #60306 from cbodley/wip-osdc-rm-completion

osdc: remove unused overloads for async::Completion

Reviewed-by: Adam Emerson <aemerson@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
9 months agoorch: disk replacement enhancement 60223/head
Guillaume Abrioux [Wed, 31 Jul 2024 14:36:48 +0000 (14:36 +0000)]
orch: disk replacement enhancement

This introduces a new `ceph orch device replace` command in order to
improve the user experience when it comes to replacing the underlying
device of an OSD.

Fixes: https://tracker.ceph.com/issues/68456
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
9 months agoceph-volume: address mypy errors in disk.py
Guillaume Abrioux [Wed, 9 Oct 2024 15:00:53 +0000 (15:00 +0000)]
ceph-volume: address mypy errors in disk.py

typical error:

```
ceph_volume/util/disk.py:1374: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "str")  [assignment]
```

This commits addresses it.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
9 months agoceph-volume: address test_activate_dmcrypt_tpm
Guillaume Abrioux [Wed, 9 Oct 2024 14:59:38 +0000 (14:59 +0000)]
ceph-volume: address test_activate_dmcrypt_tpm

This mocks the call to `luks_close()`, otherwise this test
fails when run on a system where `cryptsetup` isn't available.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
9 months agoMerge PR #59503 into main
Venky Shankar [Wed, 16 Oct 2024 13:36:32 +0000 (19:06 +0530)]
Merge PR #59503 into main

* refs/pull/59503/head:
client: Resolve symlink from dirfd for empty pathname
client: Fix symlink open with O_PATH and O_NOFOLLOW

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
9 months agoos/bluestore: Fix repair of multilabel when collides with BlueFS 60323/head
Adam Kupczyk [Tue, 15 Oct 2024 12:41:22 +0000 (12:41 +0000)]
os/bluestore: Fix repair of multilabel when collides with BlueFS

The problem was that BDEV_FIRST_LABEL_POSITION was removed from
bdev_label_valid_locations set.
Now, if label at BDEV_FIRST_LABEL_POSITION is valid, it is in the set.

Fixes: https://tracker.ceph.com/issues/68528
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
9 months agoMerge pull request #60055 from guits/tracker_68312
Guillaume Abrioux [Wed, 16 Oct 2024 07:35:49 +0000 (09:35 +0200)]
Merge pull request #60055 from guits/tracker_68312

ceph-volume: drop unnecessary call to `get_single_lv()`

9 months agoMerge pull request #60291 from rhcs-dashboard/NFS-subvol-list
Nizamudeen A [Wed, 16 Oct 2024 06:40:32 +0000 (12:10 +0530)]
Merge pull request #60291 from rhcs-dashboard/NFS-subvol-list

mgr/dashboard: The subvolumes are missing from the dropdown menu on the "Create NFS export" page

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
9 months agoMerge pull request #60256 from joscollin/wip-doc-update-key-idea
Zac Dover [Wed, 16 Oct 2024 05:14:12 +0000 (15:14 +1000)]
Merge pull request #60256 from joscollin/wip-doc-update-key-idea

doc: update Key Idea in cephfs-mirroring.rst

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Zac Dover <zac.dover@proton.me>
9 months agoMerge pull request #60222 from rhcs-dashboard/group-name-bug
afreen23 [Tue, 15 Oct 2024 18:30:17 +0000 (00:00 +0530)]
Merge pull request #60222 from rhcs-dashboard/group-name-bug

mgr/dashboard: fix group name bugs in the nvmeof API

Reviewed-by: Afreen Misbah <afreen@ibm.com>
9 months agoMerge pull request #60060 from guits/move-to-quay-io
Adam King [Tue, 15 Oct 2024 18:01:37 +0000 (14:01 -0400)]
Merge pull request #60060 from guits/move-to-quay-io

cephadm: pull container images from quay.io

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
9 months agoMerge pull request #60241 from rhcs-dashboard/sync-policy-display-zonegroup
afreen23 [Tue, 15 Oct 2024 17:08:00 +0000 (22:38 +0530)]
Merge pull request #60241 from rhcs-dashboard/sync-policy-display-zonegroup

mgr/dashboard: sync policy's in Object >> Multi-site >> Sync-policy does not show the zonegroup to which policy belongs to

Reviewed-by: Afreen Misbah <afreen@ibm.com>
9 months agomailmap: Add dashboard new joinees in maps 59996/head
Afreen Misbah [Thu, 26 Sep 2024 11:42:23 +0000 (17:12 +0530)]
mailmap: Add dashboard new joinees in maps

- Afreen Misbah
- Dnyaneshwari Talwekar
- Naman Munet
- Prachi Goel
- Puja Shahu

Signed-off-by: Afreen Misbah <afreen@ibm.com>
9 months agoMerge pull request #60125 from cbodley/wip-doc-rgw-index-filenames
Casey Bodley [Tue, 15 Oct 2024 16:50:00 +0000 (12:50 -0400)]
Merge pull request #60125 from cbodley/wip-doc-rgw-index-filenames

doc/dev/radosgw: update paths that moved under src/rgw/driver/rados/

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
9 months agoMerge pull request #60128 from cbodley/wip-doc-rgw-multisite-secondary-commit
Casey Bodley [Tue, 15 Oct 2024 16:49:45 +0000 (12:49 -0400)]
Merge pull request #60128 from cbodley/wip-doc-rgw-multisite-secondary-commit

doc/radosgw/multisite: fix Configuring Secondary Zones -> Updating the Period

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
9 months agomgr/dashboard: Adapt gateway group changes in nvmeof UI 60263/head
Afreen Misbah [Fri, 11 Oct 2024 15:28:56 +0000 (20:58 +0530)]
mgr/dashboard: Adapt gateway group changes in nvmeof UI

- Added gateway group param in namespace request - GET, POST, PATCH, DELETE
- Added gateway group param in Listeners request - GET
- Added gateway group param in Initiators - GET, POST, DELETE

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

Signed-off-by: Afreen Misbah <afreen@ibm.com>
9 months agoCodingStyle: allow C++ forward declarations 60331/head
Max Kellermann [Tue, 15 Oct 2024 15:52:45 +0000 (17:52 +0200)]
CodingStyle: allow C++ forward declarations

The Google coding guide opposes to forward declarations, but I
disagree with that opinion.  In my opinion, forward declarations are
useful.  Ceph build times are miserable due to header dependency bloat
and template bloat, both of which can be reduced using forward
declarations.

All cons listed in https://google.github.io/styleguide/cppguide.html

> Forward declarations can hide a dependency, allowing user code to
> skip necessary recompilation when headers change.

That is a pro, not a con.  Skipping (unnecessary) recompilation is a
good thing, it's the goal of forward declarations.

> A forward declaration as opposed to an #include statement makes it
> difficult for automatic tooling to discover the module defining the
> symbol.

That certainly depends on the tools one uses, but I cannot imagine
today's IDEs are limited to one compilation unit.

> A forward declaration may be broken by subsequent changes to the
> library.

True, and that will lead to a compiler error.

> Forward declarations of functions and templates can prevent the
> header owners from making otherwise-compatible changes to their
> APIs, such as widening a parameter type, adding a template parameter
> with a default value, or migrating to a new namespace.

Forward declarations do not prevent any of that.  But if you change
the "real" declaration, all incompatible forward declarations will
cause a compiler error.

> Forward declaring symbols from namespace std:: yields undefined
> behavior.

Sad, but true.  But that is not an argument against forward
declarations for Ceph's own types.

> It can be difficult to determine whether a forward declaration or a
> full #include is needed.

If it compiles without the `#include`, then the forward declaration is
fine.  (Or the primary header happened to be already included by
somebody else.)

> Replacing an #include with a forward declaration can silently change
> the meaning of code: [...] If the #include was replaced with forward
> decls for B and D, test() would call f(void*).

True, but this is a contrived example, and is bad coding style because
it is error prone.  Casts to `void*` can and should be avoided.  There
are rare examples where such casts are necessary (boundary to C APIs),
and then it's very unusual to pass derived incomplete types.

> Forward declaring multiple symbols from a header can be more verbose
> than simply #includeing the header.

True, but that misses the point of forward declarations.

> Structuring code to enable forward declarations (e.g., using pointer
> members instead of object members) can make the code slower and more
> complex.

True, but that is not a property of forward declarations.  I don't
suggest doing such a thing.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
9 months agocommon/io_exerciser: Add assertion on failure of IO validation 59926/head
JonBailey1993 [Mon, 7 Oct 2024 09:39:24 +0000 (10:39 +0100)]
common/io_exerciser: Add assertion on failure of IO validation

Assert on failure of IO validation so it's clearer and error has occurred and state of the system will not move beyond the error point.

Signed-off-by: Jon Bailey <jonathan.bailey1@ibm.com>
9 months agotest/osd: Add interactive mode to ceph_test_rados_io_sequence
JonBailey1993 [Mon, 23 Sep 2024 10:23:18 +0000 (11:23 +0100)]
test/osd: Add interactive mode to ceph_test_rados_io_sequence

Reorganisers the main function to be more modular, moving functionality into a TestRunner object and anonymous namespaces.
Adds a new "interactive" test mode that allows you to direct the order of operations rather than using the preset sequences. This allows complete precise control of the tool when you want to test specific IOs.

Signed-off-by: Jon Bailey <jonathan.bailey1@ibm.com>
9 months agotest/osd: Remove unnecessary whitespace
JonBailey1993 [Thu, 19 Sep 2024 16:14:12 +0000 (17:14 +0100)]
test/osd: Remove unnecessary whitespace

Removes unnecessary whitespace in the ceph_test_rados_io_sequence class

Signed-off-by: Jon Bailey <jonathan.bailey1@ibm.com>
9 months agorgw: add mstart-related scripts to CODEOWNERS and labeler 60328/head
Casey Bodley [Tue, 15 Oct 2024 15:30:37 +0000 (11:30 -0400)]
rgw: add mstart-related scripts to CODEOWNERS and labeler

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 months agorgw: document mstart.sh and related scripts
Casey Bodley [Tue, 15 Oct 2024 15:29:53 +0000 (11:29 -0400)]
rgw: document mstart.sh and related scripts

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 months agomds/Beacon: set a thread name 60324/head
Max Kellermann [Fri, 11 Oct 2024 20:02:24 +0000 (22:02 +0200)]
mds/Beacon: set a thread name

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
9 months agodoc: update Key Idea in cephfs-mirroring.rst 60256/head
Jos Collin [Fri, 11 Oct 2024 05:03:47 +0000 (10:33 +0530)]
doc: update Key Idea in cephfs-mirroring.rst

Updates the snapdiff feature and it's url.

Signed-off-by: Jos Collin <jcollin@redhat.com>
9 months agoMerge pull request #59706 from Matan-B/wip-matanb-cleanup-snapmap
SrinivasaBharathKanta [Tue, 15 Oct 2024 14:19:02 +0000 (19:49 +0530)]
Merge pull request #59706 from Matan-B/wip-matanb-cleanup-snapmap

osd/PG: make use of SnapMapper::update_snap_map

9 months agoMerge pull request #59844 from spuiuk/mgr_smb_add_public_addrs_cli
Adam King [Tue, 15 Oct 2024 13:43:28 +0000 (09:43 -0400)]
Merge pull request #59844 from spuiuk/mgr_smb_add_public_addrs_cli

mgr/smb: accept public_addrs on cli when creating cluster

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
9 months agoMerge pull request #60238 from anoopcs9/cephadm-add-net-raw-ctdbd
Adam King [Tue, 15 Oct 2024 13:41:49 +0000 (09:41 -0400)]
Merge pull request #60238 from anoopcs9/cephadm-add-net-raw-ctdbd

cephadm/smb: Add NET_RAW capability to deploy ctdbd

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
9 months agoMerge pull request #60221 from rhcs-dashboard/fix-68461-main
Adam King [Tue, 15 Oct 2024 13:02:34 +0000 (09:02 -0400)]
Merge pull request #60221 from rhcs-dashboard/fix-68461-main

mgr/cephadm: Update multi-site configs before deploying  daemons on rgw service create

Reviewed-by: Adam King <adking@redhat.com>
9 months agoMerge PR #60302 into main
Patrick Donnelly [Tue, 15 Oct 2024 13:01:29 +0000 (09:01 -0400)]
Merge PR #60302 into main

* refs/pull/60302/head:
doc/governance: update my CSC email
mailmap: add my ibm email

Reviewed-by: Anthony D Atri <anthony.datri@gmail.com>
9 months ago.github: detect GPL license in PRs 60317/head
Ernesto Puerta [Tue, 15 Oct 2024 12:09:48 +0000 (14:09 +0200)]
.github: detect GPL license in PRs

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
9 months agomgr/cephadm: disabling nginx buffering for grafana location 60053/head
Redouane Kachach [Tue, 15 Oct 2024 11:34:32 +0000 (13:34 +0200)]
mgr/cephadm: disabling nginx buffering for grafana location

Disabling Nginx buffering for Grafana, as it may lead to errors or
delays while loading the main Grafana page, particularly when
receiving JavaScript files.

Fixes: https://tracker.ceph.com/issues/68315
Signed-off-by: Redouane Kachach <rkachach@ibm.com>
9 months agolog: thread name save/fetch infra 60058/head
Milind Changire [Fri, 27 Sep 2024 10:40:22 +0000 (16:10 +0530)]
log: thread name save/fetch infra

* pthread name is saved in a thread_local storage
* the thread_local name is copied into Entry object's ctor
* Log::dump_recent() reads the thread name from the Entry
  object's data member when dumping logs

Fixes: https://tracker.ceph.com/issues/50743
Signed-off-by: Milind Changire <mchangir@redhat.com>
9 months agoclient: Resolve symlink from dirfd for empty pathname 59503/head
Anoop C S [Tue, 27 Aug 2024 10:20:44 +0000 (15:50 +0530)]
client: Resolve symlink from dirfd for empty pathname

man readlinkat(2)[1] points at a special case for readlinkat() syscall
as follows:

. . .
Since Linux 2.6.39, pathname can be an empty string, in which case the
call operates on the symbolic link referred to by dirfd (which should
have been obtained using open(2) with the O_PATH and O_NOFOLLOW flags).
. . .

man open(2)[2] further explains the need for such a special case when
a symlink is opened with O_PATH and O_NOFOLLOW:

. . .
If  pathname is a symbolic link and the O_NOFOLLOW flag is also
specified, then the call returns a file descriptor referring to the
symbolic link.  This file descriptor can be used as the dirfd argument
in calls to fchownat(2), fstatat(2), linkat(2), and readlinkat(2) with
an empty pathname to have the calls operate on the symbolic link.
. . .

Accordingly have a check to resolve symlinks out of dirfd when empty
pathnames are encountered within readlinkat(). In addition to that
match the standard file system behavior to return ENOENT instead of
EINVAL when the inode pointed to by dirfd is not a symbolic link with
empty pathnames.

Fixes: https://tracker.ceph.com/issues/67833
[1] https://www.man7.org/linux/man-pages/man2/readlinkat.2.html
[2] https://www.man7.org/linux/man-pages/man2/open.2.html

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
9 months agoclient: Fix symlink open with O_PATH and O_NOFOLLOW
Anoop C S [Thu, 29 Aug 2024 06:23:44 +0000 (11:53 +0530)]
client: Fix symlink open with O_PATH and O_NOFOLLOW

man open(2)[1] says the following for O_PATH:

. . .
If  pathname is a symbolic link and the O_NOFOLLOW flag is also
specified, then the call returns a file descriptor referring to the
symbolic link.  This file descriptor can be used as the dirfd argument
in calls to fchownat(2), fstatat(2), linkat(2), and readlinkat(2) with
an empty pathname to have the calls operate on the symbolic link.
. . .

symlink check within may_open() failed to consider the O_PATH flag
resulting in a ELOOP error to the client. In order to return a valid
file descriptor we introduce a check for the presence of O_PATH in
the client provided flags.

Fixes: https://tracker.ceph.com/issues/67833
[1] https://www.man7.org/linux/man-pages/man2/open.2.html

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
9 months agoMerge pull request #60212 from VallariAg/nvmeof-labeler
Vallari Agrawal [Tue, 15 Oct 2024 07:59:41 +0000 (13:29 +0530)]
Merge pull request #60212 from VallariAg/nvmeof-labeler

labeler: add nvmeof labelers

9 months agomgr/dashboard: The subvolumes are missing from the dropdown menu on the "Create NFS... 60291/head
Dnyaneshwari [Mon, 14 Oct 2024 04:26:45 +0000 (09:56 +0530)]
mgr/dashboard: The subvolumes are missing from the dropdown menu on the "Create NFS export" page

Fixes: https://tracker.ceph.com/issues/68519
Signed-off-by: Dnyaneshwari Talwekar <dtalweka@redhat.com>
9 months agocrimson: remove unused OpsExecuter::rollback_obc_if_modified overload 60202/head
Samuel Just [Tue, 1 Oct 2024 20:11:31 +0000 (13:11 -0700)]
crimson: remove unused OpsExecuter::rollback_obc_if_modified overload

Signed-off-by: Samuel Just <sjust@redhat.com>
9 months agocrimson: OpsExecuter no longer needs to be a lw shared ptr
Samuel Just [Tue, 1 Oct 2024 20:05:03 +0000 (13:05 -0700)]
crimson: OpsExecuter no longer needs to be a lw shared ptr

ClientRequest and InternalClientRequest can declare them
as auto variables.

Signed-off-by: Samuel Just <sjust@redhat.com>
9 months agocrimson: remove now unused PG::do_osd_ops* and log_reply
Samuel Just [Thu, 26 Sep 2024 22:49:59 +0000 (22:49 +0000)]
crimson: remove now unused PG::do_osd_ops* and log_reply

Signed-off-by: Samuel Just <sjust@redhat.com>
9 months agocrimson: clarify ops_executer.h comment
Samuel Just [Thu, 10 Oct 2024 16:22:28 +0000 (16:22 +0000)]
crimson: clarify ops_executer.h comment

Signed-off-by: Samuel Just <sjust@redhat.com>
9 months agocrimson: convert InternalClientRequest::do_request to use *_executer rather than...
Samuel Just [Thu, 26 Sep 2024 22:43:35 +0000 (22:43 +0000)]
crimson: convert InternalClientRequest::do_request to use *_executer rather than do_osd_ops*

Signed-off-by: Samuel Just <sjust@redhat.com>
9 months agocrimson: factor out InternalClientRequest::do_process
Samuel Just [Thu, 26 Sep 2024 22:30:59 +0000 (22:30 +0000)]
crimson: factor out InternalClientRequest::do_process

Signed-off-by: Samuel Just <sjust@redhat.com>
9 months agocrimson: switch ClientRequest::do_request to use *_executer rather than do_osd_ops
Samuel Just [Thu, 26 Sep 2024 22:15:48 +0000 (15:15 -0700)]
crimson: switch ClientRequest::do_request to use *_executer rather than do_osd_ops

Signed-off-by: Samuel Just <sjust@redhat.com>
9 months agocrimson: introduce PG::run_executer,submit_executer
Samuel Just [Thu, 26 Sep 2024 21:10:06 +0000 (14:10 -0700)]
crimson: introduce PG::run_executer,submit_executer

These are intended to replace do_osd_ops*.  The implementation
is simpler and does not involve passing success and failure
callbacks.  It also moves responsibility for dealing with
the MOSDOpReply and client related error handling over to
ClientRequest.

do_osd_op* will be removed once users are switched over.

Signed-off-by: Samuel Just <sjust@redhat.com>