]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
20 months agodoc/glossary: add "Quorum" to glossary 54497/head
Zac Dover [Tue, 14 Nov 2023 13:40:42 +0000 (23:40 +1000)]
doc/glossary: add "Quorum" to glossary

Add the term "Quorum" to the glossary and link to the part of
architecture.rst concerning Monitors. The sticky header at the top of
the docs.ceph.com website gets in the way of the location linked to in
this commit, but fatigue and disgust prevent me from spending time today
trial-and-erroring my way through the hostile and ill-documented
wilderness of scroll-margin so that the link goes where it should.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agoMerge PR #54259 into main
Venky Shankar [Wed, 15 Nov 2023 04:53:20 +0000 (10:23 +0530)]
Merge PR #54259 into main

* refs/pull/54259/head:
mds,client: update the oldest_client_tid via the renew caps
mds: add trim_completed_request_list() helper

Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
20 months agoMerge pull request #54401 from adk3798/osd-rm-stop-reweight
Adam King [Tue, 14 Nov 2023 20:21:55 +0000 (15:21 -0500)]
Merge pull request #54401 from adk3798/osd-rm-stop-reweight

mgr/cephadm: fix reweighting of OSD when OSD removal is stopped

Reviewed-by: Michael Fritch <mfritch@suse.com>
20 months agoMerge pull request #54399 from phlogistonjohn/jjm-cephadm-reorg-ctr-mounts
Adam King [Tue, 14 Nov 2023 20:20:36 +0000 (15:20 -0500)]
Merge pull request #54399 from phlogistonjohn/jjm-cephadm-reorg-ctr-mounts

cephadm: reorganize container mounts functions

Reviewed-by: Adam King <adking@redhat.com>
20 months agoMerge pull request #54496 from zdover23/wip-doc-2023-11-14-rados-troubleshooting...
zdover23 [Tue, 14 Nov 2023 17:06:21 +0000 (03:06 +1000)]
Merge pull request #54496 from zdover23/wip-doc-2023-11-14-rados-troubleshooting-mon-initial-rewrite

doc/rados: edit "troubleshooting-mon"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
20 months agoMerge pull request #54499 from yuvalif/wip-yuval-63530
zdover23 [Tue, 14 Nov 2023 16:57:46 +0000 (02:57 +1000)]
Merge pull request #54499 from yuvalif/wip-yuval-63530

doc/rgw/notifications: specify which event types are enabled by default

Reviewed-by: Zac Dover <zac.dover@proton.me>
20 months agodoc/rados: edit "troubleshooting-mon" 54496/head
Zac Dover [Tue, 14 Nov 2023 13:03:28 +0000 (23:03 +1000)]
doc/rados: edit "troubleshooting-mon"

Edit the text in the "Initial Troubleshooting" section of
doc/rados/troubleshooting/troubleshooting-mon.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agodoc/rgw/notifications: specify which event types are enabled by default 54499/head
Yuval Lifshitz [Tue, 14 Nov 2023 15:28:45 +0000 (15:28 +0000)]
doc/rgw/notifications: specify which event types are enabled by default

Fixes: https://tracker.ceph.com/issues/63530
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
20 months agoMerge pull request #54431 from Matan-B/wip-matanb-crimson-extend-snaptrimsubevent...
Matan Breizman [Tue, 14 Nov 2023 15:15:48 +0000 (17:15 +0200)]
Merge pull request #54431 from Matan-B/wip-matanb-crimson-extend-snaptrimsubevent-lifetime

crimson/osd/osd_operations/snaptrim_event: fix lifetime management

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Radosław Zarzyński <rzarzyns@redhat.com>
20 months agoMerge pull request #54416 from Matan-B/wip-matanb-crimson-extend-pg-lifetime
Matan Breizman [Tue, 14 Nov 2023 15:14:34 +0000 (17:14 +0200)]
Merge pull request #54416 from Matan-B/wip-matanb-crimson-extend-pg-lifetime

crimson/osd/pg: extend pg lifetime on snap_trimq iteration

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Radosław Zarzyński <rzarzyns@redhat.com>
20 months agoMerge pull request #54375 from ajarr/wip-63421
Ilya Dryomov [Tue, 14 Nov 2023 11:21:09 +0000 (12:21 +0100)]
Merge pull request #54375 from ajarr/wip-63421

pybind/mgr: remove __del__() of mgr modules

Reviewed-by: Wido den Hollander <wido@42on.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
20 months agoMerge pull request #54479 from anthonyeleven/anthonyeleven/ceph
Anthony D'Atri [Mon, 13 Nov 2023 16:38:13 +0000 (11:38 -0500)]
Merge pull request #54479 from anthonyeleven/anthonyeleven/ceph

doc/start: fix typo in hardware-recommendations.rst

20 months agopybind/mgr: remove __del__() of mgr modules 54375/head
Ramana Raja [Thu, 2 Nov 2023 21:44:10 +0000 (17:44 -0400)]
pybind/mgr: remove __del__() of mgr modules

It's strongly recommended for objects that have references to
external resources (e.g., files) to explicitly release them.
Python doesn't guarantee garbage collection of objects and hence
doesn't guarantee freeing of external resources that occur on
garbage collection.

The __del__() methods in the python mgr modules may not even be
called since garbage collection of objects is not guaranteed in python.
And some of the __del__() methods try to cleanup that seem redundant.

- In volumes/module.py, vc.shutdown() is called in Module.shutdown().
  No need to call it again in Module.__del__()

- In telegraf/basesocket.py, BaseSocker.close() is called in
  BaseSocket.__exit__(). No need to call it again in
  BaseSocket.__del__().

- In mgr_module.py, MgrModuleLoggingMixin._unconfigure_logging() is
  called in MgrModule.__init__() and MgrStandbyModule.__init__(). No
  need to call it in MgrModule.__del__() and
  MgrStandbyModule.__del__().|

- In dashboard/services/cephfs.py, the libcephfs mount is not
  shutdown explicitly by the mgr module. However, the cython libcephfs
  bindings has a LibCephFS.__dealloc__() finalizer method that calls
  LibCephFS.shutdown(). This should unmount and cleanup the ceph mount
  handle.

Remove the __del__() of the python mgr modules.

Fixes: https://tracker.ceph.com/issues/63421
Signed-off-by: Ramana Raja <rraja@redhat.com>
20 months agocrimson/osd/pg: PG::on_active_actmap() indention 54416/head
Matan Breizman [Sun, 12 Nov 2023 13:53:59 +0000 (13:53 +0000)]
crimson/osd/pg: PG::on_active_actmap() indention

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
20 months agocrimson/osd/pg: extend pg lifetime on snap_trimq iteration
Matan Breizman [Wed, 8 Nov 2023 13:07:29 +0000 (13:07 +0000)]
crimson/osd/pg: extend pg lifetime on snap_trimq iteration

Beacuse the loop's returned future is ignored,
we should cover the scenario where the pg is removed and the
snap_trimq iteration didn't complete yet.

Fixes: https://tracker.ceph.com/issues/61653
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
20 months agoMerge pull request #53655 from ifed01/wip-ifed-peering-cleanup
Yuri Weinstein [Mon, 13 Nov 2023 15:29:07 +0000 (07:29 -0800)]
Merge pull request #53655 from ifed01/wip-ifed-peering-cleanup

osd: getting rid off redundant std::map/set::count() calls.

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
20 months agoMerge pull request #53597 from ifed01/wip-ifed-bluefs-perf-counters
Yuri Weinstein [Mon, 13 Nov 2023 15:28:39 +0000 (07:28 -0800)]
Merge pull request #53597 from ifed01/wip-ifed-bluefs-perf-counters

os/bluestore: add more bluefs perf counters

Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
20 months agoMerge pull request #53530 from ifed01/wip-ifed-fast-shutdown-assert
Yuri Weinstein [Mon, 13 Nov 2023 15:27:39 +0000 (07:27 -0800)]
Merge pull request #53530 from ifed01/wip-ifed-fast-shutdown-assert

osd: do not assert on fast shutdown timeout

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
20 months agoMerge pull request #52855 from Matan-B/wip-matanb-monstore-osd_snap
Yuri Weinstein [Mon, 13 Nov 2023 15:27:10 +0000 (07:27 -0800)]
Merge pull request #52855 from Matan-B/wip-matanb-monstore-osd_snap

tools/ceph_monstore_tool: additional commands and doc

Reviewed-by: Nitzan Mordechai <nmordech@redhat.com>
20 months agoMerge pull request #52406 from Matan-B/wip-matanb-mon-44069-commits
Yuri Weinstein [Mon, 13 Nov 2023 15:26:05 +0000 (07:26 -0800)]
Merge pull request #52406 from Matan-B/wip-matanb-mon-44069-commits

mon/Config*: Cleanups and ConfigMap unit test

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
20 months agodoc/start: fix typo in hardware-recommendations.rst 54479/head
Anthony D'Atri [Mon, 13 Nov 2023 13:58:44 +0000 (08:58 -0500)]
doc/start: fix typo in hardware-recommendations.rst

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
20 months agoMerge pull request #54473 from zdover23/wip-doc-2023-11-13-rados-troubleshooting...
zdover23 [Mon, 13 Nov 2023 13:53:15 +0000 (23:53 +1000)]
Merge pull request #54473 from zdover23/wip-doc-2023-11-13-rados-troubleshooting-mon-initial

doc/rados: format "initial troubleshooting"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
20 months agodoc/rados: format "initial troubleshooting" 54473/head
Zac Dover [Mon, 13 Nov 2023 10:57:07 +0000 (20:57 +1000)]
doc/rados: format "initial troubleshooting"

Format the steps in the "Initial Troubleshooting" section of
doc/rados/troubleshooting/troubleshooting-mon.rst. A near-future PR (not
this one) will add context to this section and explain that the steps
described here are the first steps that you should undertake when you
determine that you have an unresponsive or down Monitor. This PR is
merely for formatting.

Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agoMerge PR #54338 into main
Patrick Donnelly [Sun, 12 Nov 2023 15:25:07 +0000 (10:25 -0500)]
Merge PR #54338 into main

* refs/pull/54338/head:
script: enable checkout of specific sha1 as base

Reviewed-by: Venky Shankar <vshankar@redhat.com>
20 months agocrimson/osd/osd_operations/snaptrim_event: fix lifetime management 54431/head
Matan Breizman [Thu, 9 Nov 2023 09:39:23 +0000 (09:39 +0000)]
crimson/osd/osd_operations/snaptrim_event: fix lifetime management

The operation's id and future returned when starting SnapTrimObjSubEvent
is emplaced into subop_blocker.
Later on, we await the completion of all the started operations futures.
Before this patch, we only stored the op id in the subop_blocker vector
which allowed `op` to go out of scope and lose all its references
(and get deleted) before exiting.

Storing the operation as a reference instead of the id
will maintain the SnapTrimObjSubEvent operation lifetime.

Fixes: https://tracker.ceph.com/issues/63299
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
20 months agoMerge pull request #54457 from zdover23/wip-doc-2023-11-12-rados-config-ceph-conf...
zdover23 [Sun, 12 Nov 2023 14:00:40 +0000 (00:00 +1000)]
Merge pull request #54457 from zdover23/wip-doc-2023-11-12-rados-config-ceph-conf-config-ceph

doc/config: edit "ceph-conf.rst"

Reviewed-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
20 months agoMerge pull request #54458 from zdover23/wip-doc-2023-11-12-rados-troubleshooting...
Anthony D'Atri [Sun, 12 Nov 2023 13:48:40 +0000 (08:48 -0500)]
Merge pull request #54458 from zdover23/wip-doc-2023-11-12-rados-troubleshooting-mon-parallel-structure

doc/rados: parallelize t-mon headings

20 months agodoc/rados: parallelize t-mon headings 54458/head
Zac Dover [Sun, 12 Nov 2023 10:52:09 +0000 (20:52 +1000)]
doc/rados: parallelize t-mon headings

Give parallel structure to the questions in the Q&A section of the "The
Cluster Has Quorum But At Least One Monitor Is Down" subsection of the
"Most Common Monitor Issues" section of
doc/rados/troubleshooting/troubleshooting-mon.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agodoc/config: edit "ceph-conf.rst" 54457/head
Zac Dover [Sun, 12 Nov 2023 10:21:41 +0000 (20:21 +1000)]
doc/config: edit "ceph-conf.rst"

Edit the first section of doc/rados/configuration/ceph-conf.rst.
Initially I just wanted to change "series" to "set", but once I got my
hands dirty I ended up simplifying some sentences.

Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agocephadm: use customize_container_mounts in get_container_mounts 54399/head
John Mulligan [Sat, 4 Nov 2023 23:48:08 +0000 (19:48 -0400)]
cephadm: use customize_container_mounts in get_container_mounts

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: change ceph & exporter to customize_container_mounts method
John Mulligan [Sat, 4 Nov 2023 23:41:25 +0000 (19:41 -0400)]
cephadm: change ceph & exporter to customize_container_mounts method

Unlike the other types Ceph and CephExporter share the underlying
method. There was no other use of get_container_mounts on the class
so it could be converted to be customize_container_mounts.
Because there's an extra arg that passes from get_container_mounts
top-level function to Ceph.get_ceph_mounts, that function was not
changed.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add customize_container_mounts method to monitoring class
John Mulligan [Sat, 4 Nov 2023 23:33:07 +0000 (19:33 -0400)]
cephadm: add customize_container_mounts method to monitoring class

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add customize_container_mounts method to nfs class
John Mulligan [Sat, 4 Nov 2023 23:24:48 +0000 (19:24 -0400)]
cephadm: add customize_container_mounts method to nfs class

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add customize_container_mounts method to haproxy class
John Mulligan [Sat, 4 Nov 2023 23:18:24 +0000 (19:18 -0400)]
cephadm: add customize_container_mounts method to haproxy class

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add customize_container_mounts method to keepalived class
John Mulligan [Fri, 20 Oct 2023 19:03:11 +0000 (15:03 -0400)]
cephadm: add customize_container_mounts method to keepalived class

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add customize_container_mounts method to nvmeof class
John Mulligan [Fri, 20 Oct 2023 19:00:25 +0000 (15:00 -0400)]
cephadm: add customize_container_mounts method to nvmeof class

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add customize_container_mounts method to iscsi class
John Mulligan [Fri, 20 Oct 2023 18:57:50 +0000 (14:57 -0400)]
cephadm: add customize_container_mounts method to iscsi class

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add customize_container_mounts method to custom container
John Mulligan [Sat, 4 Nov 2023 23:05:35 +0000 (19:05 -0400)]
cephadm: add customize_container_mounts method to custom container

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: only call get_container_mounts for types that have mounts
John Mulligan [Fri, 20 Oct 2023 18:39:28 +0000 (14:39 -0400)]
cephadm: only call get_container_mounts for types that have mounts

This helps clarify what types will eventually have to be converted
away from calling get_container_mounts directly and to using common
methods.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: move volume mounts assignment to a variable
John Mulligan [Sat, 4 Nov 2023 22:39:07 +0000 (18:39 -0400)]
cephadm: move volume mounts assignment to a variable

Move the call to get_container_mounts out of the function call block.
This will aid with the next refactoring steps, so that the uses
of get_container_mounts can be brought into the get_container call
directly.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agoMerge pull request #54452 from zdover23/wip-doc-2023-11-11-rados-troubleshooting...
zdover23 [Sat, 11 Nov 2023 12:28:33 +0000 (22:28 +1000)]
Merge pull request #54452 from zdover23/wip-doc-2023-11-11-rados-troubleshooting-mon-common-issues-5-of-x

doc/rados: edit t-mon "common issues" (5 of x)

Reviewed-by: Anthony D'Atri <anthony.datri@gmai.com>
20 months agodoc/rados: edit t-mon "common issues" (5 of x) 54452/head
Zac Dover [Sat, 11 Nov 2023 03:45:42 +0000 (13:45 +1000)]
doc/rados: edit t-mon "common issues" (5 of x)

Edit the fifth part of the section "Most Common Monitor Issues" in
doc/rados/troubleshooting/troubleshooting-mon.rst.

Follows https://github.com/ceph/ceph/pull/54440.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agoMerge pull request #49914 from adk3798/monitoring-teuth-test
Adam King [Fri, 10 Nov 2023 22:09:12 +0000 (17:09 -0500)]
Merge pull request #49914 from adk3798/monitoring-teuth-test

qa/cephadm: basic test for monitoring stack

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
20 months agoMerge pull request #54398 from phlogistonjohn/jjm-cephadm-reorg-ctr-binds
Adam King [Fri, 10 Nov 2023 22:07:09 +0000 (17:07 -0500)]
Merge pull request #54398 from phlogistonjohn/jjm-cephadm-reorg-ctr-binds

cephadm: reorganize container binds functions

Reviewed-by: Adam King <adking@redhat.com>
20 months agoMerge pull request #54046 from adk3798/warn-hosts-drain-spec
Adam King [Fri, 10 Nov 2023 22:05:51 +0000 (17:05 -0500)]
Merge pull request #54046 from adk3798/warn-hosts-drain-spec

mgr/cephadm: warn when draining host explicitly listed in placement

Reviewed-by: John Mulligan <jmulligan@redhat.com>
20 months agoMerge pull request #54450 from cbodley/wip-test-rgw-rados-includes
Casey Bodley [Fri, 10 Nov 2023 18:08:16 +0000 (18:08 +0000)]
Merge pull request #54450 from cbodley/wip-test-rgw-rados-includes

test/rgw: clean up unused include dirs

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
20 months agoMerge pull request #54448 from ceph/wip-make-down-dependencies-explicit
Casey Bodley [Fri, 10 Nov 2023 18:07:53 +0000 (18:07 +0000)]
Merge pull request #54448 from ceph/wip-make-down-dependencies-explicit

rgw: make subclass dependencies explicit

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
20 months agoscript: enable checkout of specific sha1 as base 54338/head
Patrick Donnelly [Fri, 3 Nov 2023 17:46:08 +0000 (13:46 -0400)]
script: enable checkout of specific sha1 as base

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
20 months agotest/rgw: clean up unused include dirs 54450/head
Casey Bodley [Fri, 10 Nov 2023 14:20:11 +0000 (09:20 -0500)]
test/rgw: clean up unused include dirs

store/rados was renamed to driver/rados, so these include directories
aren't required

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: make subclass dependencies explicit 54448/head
J. Eric Ivancich [Thu, 9 Nov 2023 21:41:04 +0000 (16:41 -0500)]
rgw: make subclass dependencies explicit

As part of the Zipper project generic back-end code is being teased
apart from rados-specific back-end code. This is a work in progress,
so currently generic code and other subclasses of StoreDriver (and
related high-level classes) depend on the rados-specific declarations.
Some of these dependencies are not always obvious since
src/rgw/driver/rados was put on the include path. That is now removed,
so any includes needing files from that subclass have to give a more
fully specified path.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
20 months agoMerge pull request #50419 from myoungwon/wip-rbm-partial-overwrite
Yingxin [Fri, 10 Nov 2023 01:52:04 +0000 (09:52 +0800)]
Merge pull request #50419 from myoungwon/wip-rbm-partial-overwrite

crimson/os/seastore: introduce delta-based overwrite

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
20 months agoMerge pull request #54379 from cbodley/wip-rgw-sal-bucket-owner
Casey Bodley [Thu, 9 Nov 2023 22:35:45 +0000 (22:35 +0000)]
Merge pull request #54379 from cbodley/wip-rgw-sal-bucket-owner

rgw/sal: Bucket owner as rgw_user

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
20 months agoMerge pull request #54440 from zdover23/wip-doc-2023-11-10-rados-troubleshooting...
zdover23 [Thu, 9 Nov 2023 22:10:54 +0000 (08:10 +1000)]
Merge pull request #54440 from zdover23/wip-doc-2023-11-10-rados-troubleshooting-mon-common-issues-4-of-x

doc/rados: edit t-mon "common issues" (4 of x)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
20 months agoMerge pull request #54415 from jincreator/cls-fmt-ftbfs
Casey Bodley [Thu, 9 Nov 2023 22:00:37 +0000 (22:00 +0000)]
Merge pull request #54415 from jincreator/cls-fmt-ftbfs

cls: fix unable to link with system-installed fmt

Reviewed-by: Casey Bodley <cbodley@redhat.com>
20 months agodoc/rados: edit t-mon "common issues" (4 of x) 54440/head
Zac Dover [Thu, 9 Nov 2023 19:50:21 +0000 (05:50 +1000)]
doc/rados: edit t-mon "common issues" (4 of x)

Edit the fourth part of the section "Most Common Monitor Issues" in
doc/rados/troubleshooting/troubleshooting-mon.rst.

Follows https://github.com/ceph/ceph/pull/54432.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agocephadm: convert get_container_binds to use class based approach 54398/head
John Mulligan [Fri, 20 Oct 2023 18:22:40 +0000 (14:22 -0400)]
cephadm: convert get_container_binds to use class based approach

Since all types affected by get_container_binds now have the common
customize_container_binds, use a generic class-based approach by
creating an instance of ContainerDaemonForm and calling the method.
All other classes have a customize_container_binds that is a no-op.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: only call get_container_binds on types that have binds
John Mulligan [Fri, 20 Oct 2023 17:56:31 +0000 (13:56 -0400)]
cephadm: only call get_container_binds on types that have binds

This is a step towards not calling get_container_binds in get_container.
A future commit will replace uses of get_container_binds with direct
uses of common class methods.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: move bind mounts assignment to a variable
John Mulligan [Fri, 20 Oct 2023 17:49:50 +0000 (13:49 -0400)]
cephadm: move bind mounts assignment to a variable

Move the call to get_container_binds out of the function call.
This will aid with the next refactoring steps, so that the uses
of get_container_binds can be brought into the get_container call
directly.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add customize_container_binds method to custom container
John Mulligan [Sat, 4 Nov 2023 22:19:57 +0000 (18:19 -0400)]
cephadm: add customize_container_binds method to custom container

Add a customize_container_binds function to the CustomContainer daemon
type class and use it from the common get_container_binds function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: covert nvmeof type to provide a customize_container_binds method
John Mulligan [Sat, 4 Nov 2023 22:08:34 +0000 (18:08 -0400)]
cephadm: covert nvmeof type to provide a customize_container_binds method

Convert the CephNvmeof type's get_container_binds to
customize_container_binds and use it in the generic method.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: covert iscsi type to provide a customize_container_binds method
John Mulligan [Sat, 4 Nov 2023 22:03:40 +0000 (18:03 -0400)]
cephadm: covert iscsi type to provide a customize_container_binds method

Convert the CephIscsi type's get_container_binds to
customize_container_binds and use it in the generic method.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: ensure the iscsi test can create iscsi daemon class
John Mulligan [Sat, 4 Nov 2023 21:57:59 +0000 (17:57 -0400)]
cephadm: ensure the iscsi test can create iscsi daemon class

Ensure that the iscsi test can call CephIscsi.create inside other
functions by passing a required, but fake, gateway config file.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: always pass ctx to customize_container_{binds,mounts}
John Mulligan [Sat, 4 Nov 2023 20:59:33 +0000 (16:59 -0400)]
cephadm: always pass ctx to customize_container_{binds,mounts}

These functions often derive the binds and/or mounts from the context
variable. Thus we should have the base class method accept the context.
Not all subclassess will use it but it will be there for those that do.
Also, fix the type for customize_container_mounts - it should be a dict
not a list.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agoqa/cephadm: adjust host drain test to handle explicit placement warning 54046/head
Adam King [Mon, 6 Nov 2023 16:19:09 +0000 (11:19 -0500)]
qa/cephadm: adjust host drain test to handle explicit placement warning

Since we're adding a warning if any host is listed explicitly
in the placement of any service when removing the host,
we need to adjust the host drain test that removes a host
without the --force flag to not have the explicit hostname
in the placement for the mon service.

Signed-off-by: Adam King <adking@redhat.com>
20 months agomgr/cephadm: warn when draining host explicitly listed in placement
Adam King [Mon, 16 Oct 2023 19:15:54 +0000 (15:15 -0400)]
mgr/cephadm: warn when draining host explicitly listed in placement

In the case you apply a spec like

```
service_type: node-exporter
placement:
  hosts:
  - host3
```

and then you run `ceph orch host drain host3`, cephadm will remove
the daemon from that host and the placement would now match nothing.

This is definitely an issue that should be able to be bypassed as
it generally isn't serious, but it would be good to let users
know they have the host listed explicitly in placements like this
when they want to drain it.

Fixes: https://tracker.ceph.com/issues/63220
Signed-off-by: Adam King <adking@redhat.com>
20 months agoMerge pull request #54387 from phlogistonjohn/jjm-cephadm-isolate-mounts-code
Adam King [Thu, 9 Nov 2023 19:05:58 +0000 (14:05 -0500)]
Merge pull request #54387 from phlogistonjohn/jjm-cephadm-isolate-mounts-code

cephadm: isolate mounts code in methods

Reviewed-by: Adam King <adking@redhat.com>
20 months agorgw/sal: Bucket owner as rgw_user 54379/head
Casey Bodley [Tue, 7 Nov 2023 01:26:28 +0000 (20:26 -0500)]
rgw/sal: Bucket owner as rgw_user

stop maintaining a User pointer for the bucket owner, and use the
stored rgw_user owner directly

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agoMerge pull request #54432 from zdover23/wip-doc-2023-11-09-rados-troubleshooting...
Anthony D'Atri [Thu, 9 Nov 2023 14:04:42 +0000 (09:04 -0500)]
Merge pull request #54432 from zdover23/wip-doc-2023-11-09-rados-troubleshooting-mon-common-issues-3-of-x

doc/rados: edit t-mon "common issues" (3 of x)

20 months agocrimson/os/seastore/object_data_handler: prevent from being overwritten if cloned 50419/head
Myoungwon Oh [Fri, 3 Nov 2023 06:47:24 +0000 (15:47 +0900)]
crimson/os/seastore/object_data_handler: prevent from being overwritten if cloned

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
20 months agotest/crimsons/seastore/object_data_handler: add overwrite test cases
Myoungwon Oh [Fri, 22 Sep 2023 09:03:18 +0000 (18:03 +0900)]
test/crimsons/seastore/object_data_handler: add overwrite test cases

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
20 months agocrimson/os/seastore: store data as a delta using mutable extent when overwriting
Myoungwon Oh [Wed, 20 Sep 2023 01:05:56 +0000 (10:05 +0900)]
crimson/os/seastore: store data as a delta using mutable extent when overwriting

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
20 months agodoc/rados: edit t-mon "common issues" (3 of x) 54432/head
Zac Dover [Thu, 9 Nov 2023 10:20:20 +0000 (20:20 +1000)]
doc/rados: edit t-mon "common issues" (3 of x)

Edit the second part of the section "Most Common Monitor Issues" in
doc/rados/troubleshooting/troubleshooting-mon.rst.

Follows https://github.com/ceph/ceph/pull/54417.

Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agoMerge pull request #54392 from guits/cv-revert-52429
Guillaume Abrioux [Thu, 9 Nov 2023 07:54:06 +0000 (08:54 +0100)]
Merge pull request #54392 from guits/cv-revert-52429

ceph-volume: Revert "ceph-volume: fix raw list for lvm devices"

20 months agoMerge pull request #54412 from zdover23/wip-doc-2023-11-08-rados-troubleshooting...
zdover23 [Thu, 9 Nov 2023 04:25:06 +0000 (14:25 +1000)]
Merge pull request #54412 from zdover23/wip-doc-2023-11-08-rados-troubleshooting-mon-top-matter

doc/rados: edit t-shooting-mon.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
20 months agorgw/sal: remove Bucket::get_acl_owner()
Casey Bodley [Sat, 4 Nov 2023 20:40:21 +0000 (16:40 -0400)]
rgw/sal: remove Bucket::get_acl_owner()

was only used under the line by rados and dbstores

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agoMerge pull request #50599 from cbodley/wip-rgw-sal-forward
Casey Bodley [Wed, 8 Nov 2023 18:54:28 +0000 (18:54 +0000)]
Merge pull request #50599 from cbodley/wip-rgw-sal-forward

rgw: move forward_request_to_master() out of sal

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
20 months agoceph-volume: fix raw list for non-existent device 54392/head
Matthew Booth [Tue, 7 Nov 2023 19:58:16 +0000 (19:58 +0000)]
ceph-volume: fix raw list for non-existent device

ceph-volume should not crash when given a device which doesn't exist.

Fixes: https://tracker.ceph.com/issues/63391
Signed-off-by: Matthew Booth <mbooth@redhat.com>
(cherry picked from commit e009b1a319c834a504947423ae1dd55387809235)

20 months agocls: fix unable to link with system-installed fmt 54415/head
Jinkyu Yi [Wed, 8 Nov 2023 13:08:22 +0000 (22:08 +0900)]
cls: fix unable to link with system-installed fmt

Signed-off-by: Jinkyu Yi <jincreator@jincreator.net>
20 months agoMerge pull request #50212 from rishabh-d-dave/fs-swap-subcmd
Rishabh Dave [Wed, 8 Nov 2023 15:48:27 +0000 (21:18 +0530)]
Merge pull request #50212 from rishabh-d-dave/fs-swap-subcmd

cephfs: add command "ceph fs swap"

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
20 months agoceph-volume: Revert "ceph-volume: fix raw list for lvm devices"
Guillaume Abrioux [Tue, 7 Nov 2023 13:39:50 +0000 (14:39 +0100)]
ceph-volume: Revert "ceph-volume: fix raw list for lvm devices"

This reverts commit e5e429617c1c27dcd631171f65d30571e32f7266.
This commit introduced a regression, see linked tracker for details.

Fixes: https://tracker.ceph.com/issues/63391
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
20 months agoMerge pull request #54417 from zdover23/wip-doc-2023-11-08-rados-troubleshooting...
zdover23 [Wed, 8 Nov 2023 15:08:28 +0000 (01:08 +1000)]
Merge pull request #54417 from zdover23/wip-doc-2023-11-08-rados-troubleshooting-mon-common-issues-2-of-x

doc/rados: edit t-mon "common issues" (2 of x)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
20 months agoMerge pull request #54397 from phlogistonjohn/jjm-buildpy-latin1-fix
Adam King [Wed, 8 Nov 2023 15:01:47 +0000 (10:01 -0500)]
Merge pull request #54397 from phlogistonjohn/jjm-buildpy-latin1-fix

cephadm: work around pip failure on some envs

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
20 months agodoc/rados: edit t-shooting-mon.rst 54412/head
Zac Dover [Wed, 8 Nov 2023 07:56:29 +0000 (17:56 +1000)]
doc/rados: edit t-shooting-mon.rst

Improve the front matter of the section "Troubleshooting Monitors" in
doc/rados/troubleshooting/troubleshooting-mon.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agoMerge pull request #54413 from zdover23/wip-doc-2023-11-08-rados-troubleshooting...
Anthony D'Atri [Wed, 8 Nov 2023 13:49:37 +0000 (08:49 -0500)]
Merge pull request #54413 from zdover23/wip-doc-2023-11-08-rados-troubleshooting-mon-common-issues-1-of-x

doc/rados: edit t-mon "common issues" (1 of x)

20 months agodoc/rados: edit t-mon "common issues" (2 of x) 54417/head
Zac Dover [Wed, 8 Nov 2023 13:24:06 +0000 (23:24 +1000)]
doc/rados: edit t-mon "common issues" (2 of x)

Edit the second part of the section "Most Common Monitor Issues" in
doc/rados/troubleshooting/troubleshooting-mon.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agodoc/rados: edit t-mon "common issues" (1 of x) 54413/head
Zac Dover [Wed, 8 Nov 2023 09:07:40 +0000 (19:07 +1000)]
doc/rados: edit t-mon "common issues" (1 of x)

Edit the first part of the section "Most Common Monitor Issues" in
doc/rados/troubleshooting/troublehsooting-mon.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agoMerge pull request #54402 from athanatos/sjust/wip-fix-tmdriver
Samuel Just [Wed, 8 Nov 2023 02:22:36 +0000 (18:22 -0800)]
Merge pull request #54402 from athanatos/sjust/wip-fix-tmdriver

crimson/tools/store_nbd/tm_driver: use TransactionManager::remove

Reviewed-by: Xuehan Xu <xuxuehan@qianxin.com>
20 months agocrimson/tools/store_nbd/tm_driver: use TransactionManager::remove 54402/head
Samuel Just [Tue, 7 Nov 2023 19:32:12 +0000 (11:32 -0800)]
crimson/tools/store_nbd/tm_driver: use TransactionManager::remove

231c7ac removed TransactionManager::dec_ref, adjust store_nbd/tm_driver
to use TransactionManager::remove instead.

Signed-off-by: Samuel Just <sjust@redhat.com>
20 months agoMerge pull request #54158 from michaelalang/master
Adam King [Tue, 7 Nov 2023 21:28:27 +0000 (16:28 -0500)]
Merge pull request #54158 from michaelalang/master

[cephadm](BUG): honor --skip-firewalld in section Open ports explicitly required for the daemon

Reviewed-by: Adam King <adking@redhat.com>
20 months agomgr/cephadm: fix reweighting of OSD when OSD removal is stopped 54401/head
Adam King [Tue, 7 Nov 2023 20:49:57 +0000 (15:49 -0500)]
mgr/cephadm: fix reweighting of OSD when OSD removal is stopped

Previously, when you ran "ceph orch osd rm stop <osd-id>"
cephadm would pass in a new OSD object to the removal
queue that would not have any of the fields set previously
for the OSD. This was mostly fine when removing it from
the queue as those fields were no longer needed, but an
exception was the initial weight, which you need if
you want to set the weight back when you stop removal.

This patch changes it so it will now remove the actual
OSD object the removal queue stores so that we will
get to use the previously set original weight. It also
changes when we grab the original weight to make it
happen earlier and adds it to the to_json so it survives
any potential mgr failovers.

Fixes: https://tracker.ceph.com/issues/63481
Signed-off-by: Adam King <adking@redhat.com>
20 months agocephadm: work around pip failure on some envs 54397/head
John Mulligan [Tue, 7 Nov 2023 17:32:45 +0000 (12:32 -0500)]
cephadm: work around pip failure on some envs

Work around an encoding/locale issue when the dashboard tests are run
(ubuntu 20.04).
The build.py changes brought in a9d1c62ca86 were validated for package
builds, teuthology, and other CI jobs but a different error was masking
this failure in the dashboard ci job.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agoMerge pull request #54178 from leonid-s-usov/balance-after-stop
Rishabh Dave [Tue, 7 Nov 2023 18:02:10 +0000 (23:32 +0530)]
Merge pull request #54178 from leonid-s-usov/balance-after-stop

mds/MDBalancer: ignore queued callbacks if MDS is not active

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
20 months agoMerge pull request #54149 from mihalicyn/ceph_mds_request_head_legacy_fallback_fix
Rishabh Dave [Tue, 7 Nov 2023 17:59:43 +0000 (23:29 +0530)]
Merge pull request #54149 from mihalicyn/ceph_mds_request_head_legacy_fallback_fix

MClientRequest: properly handle ceph_mds_request_head_legacy for ext_num_retry, ext_num_fwd, owner_uid, owner_gid

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
20 months agoMerge pull request #53912 from joscollin/wip-B63099-fix-prev-snapshot-none
Rishabh Dave [Tue, 7 Nov 2023 17:58:23 +0000 (23:28 +0530)]
Merge pull request #53912 from joscollin/wip-B63099-fix-prev-snapshot-none

client: avoid getvxattr op for ceph.mirror* attrs

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
20 months agoMerge pull request #53887 from lxbsz/wip-fix-check-access
Rishabh Dave [Tue, 7 Nov 2023 17:55:44 +0000 (23:25 +0530)]
Merge pull request #53887 from lxbsz/wip-fix-check-access

client: two fix for checking mds auth access in client side

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
20 months agoMerge pull request #53899 from rishabh-d-dave/before-fs-rename-fail-fs
Rishabh Dave [Tue, 7 Nov 2023 17:52:42 +0000 (23:22 +0530)]
Merge pull request #53899 from rishabh-d-dave/before-fs-rename-fail-fs

 cephfs,mon: fs rename must require FS to be offline and refuse_client_session to be set

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
20 months agorgw/sal: rename Bucket::remove_bucket() to remove() 50599/head
Casey Bodley [Wed, 4 Oct 2023 16:49:10 +0000 (12:49 -0400)]
rgw/sal: rename Bucket::remove_bucket() to remove()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw/sal: remove forward-to-master functions from Driver
Casey Bodley [Sat, 18 Mar 2023 21:51:25 +0000 (17:51 -0400)]
rgw/sal: remove forward-to-master functions from Driver

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: add free function forward_iam_request_to_master()
Casey Bodley [Sat, 18 Mar 2023 21:42:56 +0000 (17:42 -0400)]
rgw: add free function forward_iam_request_to_master()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agorgw: add free function rgw_forward_request_to_master()
Casey Bodley [Sat, 18 Mar 2023 20:55:58 +0000 (16:55 -0400)]
rgw: add free function rgw_forward_request_to_master()

Signed-off-by: Casey Bodley <cbodley@redhat.com>