]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
19 months agorgw: fix the ret cond check CreateBucket::Execute() 50790/head
Jane Zhu [Wed, 1 Nov 2023 16:32:52 +0000 (12:32 -0400)]
rgw: fix the ret cond check CreateBucket::Execute()

Signed-off-by: Juan Zhu <jzhu4@dev-10-34-20-139.pw1.bcc.bloomberg.com>
19 months agorgw: modify ret cond in middle of CreateBucket::Execute()
Ali Maredia [Wed, 20 Sep 2023 04:12:15 +0000 (04:12 +0000)]
rgw: modify ret cond in middle of CreateBucket::Execute()

Return prevents swift metadata from being removed
if bucket already exists.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
19 months agorgw/swift: convert underscores to hyphens in swift user metadata names
Jane Zhu [Tue, 8 Aug 2023 08:17:47 +0000 (04:17 -0400)]
rgw/swift: convert underscores to hyphens in swift user metadata names

Signed-off-by: Juan Zhu <jzhu4@dev-10-34-20-139.pw1.bcc.bloomberg.com>
19 months agorgw/swift: preserve dashes/underscores in swift user metadata names
Jane Zhu [Thu, 30 Mar 2023 05:23:55 +0000 (01:23 -0400)]
rgw/swift: preserve dashes/underscores in swift user metadata names

Signed-off-by: Juan Zhu <jzhu116@bloomberg.net>
19 months agoMerge pull request #54599 from cbodley/wip-crush-test-warnings
Casey Bodley [Wed, 22 Nov 2023 13:20:25 +0000 (13:20 +0000)]
Merge pull request #54599 from cbodley/wip-crush-test-warnings

crush: remove unused variables

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
19 months agoMerge pull request #53291 from petrutlucian94/unicode
Ilya Dryomov [Wed, 22 Nov 2023 11:03:59 +0000 (12:03 +0100)]
Merge pull request #53291 from petrutlucian94/unicode

common: Windows Unicode support

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
19 months agotest: fix Windows ::_creat 53291/head
Lucian Petrut [Mon, 6 Nov 2023 14:58:08 +0000 (14:58 +0000)]
test: fix Windows ::_creat

The Windows Universal C Runtime (ucrt) "_creat" function is no
longer POSIX compatible and requires Windows specific mode flags.

We got admin socket test failures after switching from msvcrt to
uscrt.

We'll address the issue with some platform checks.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
19 months agocommon: Windows Unicode CLI support
Lucian Petrut [Fri, 18 Aug 2023 12:25:52 +0000 (12:25 +0000)]
common: Windows Unicode CLI support

Windows CLI arguments use either ANSI (main()) or UTF-16 (wmain()).
Meanwhile, Ceph libraries expect UTF-8 and raise exceptions when
trying to use Unicode CLI arguments or log Unicode output:

  rbd.exe create test_unicode_șțăâ --size=32M
  terminate called after throwing an instance of 'std::runtime_error'
    what():  invalid utf8

We'll use a Windows application manifest, setting the "activeCodePage"
property [1][2]. This enables the Windows UCRT UTF-8 mode so that
functions that receive char* arguments will expect UTF-8 instead of ANSI,
including main(). One exception is CreateProcess, which will need the
UTF-16 form (CreateProcessW).

Despite the locale being set to utf-8, we'll have to explicitly set
the console output to utf-8 using SetConsoleOutputCP(CP_UTF8).

In order to use the UTF-8 locale, we'll have to switch the mingw-llvm
runtime from msvcrt to ucrt.

This also fixes ceph-dokan crashes that currently occur when non-ANSI
paths are logged.

[1] https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests#activecodepage
[2] https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
19 months agoMerge pull request #54566 from badone/wip-python-version-fedora-39 54567/head
Brad Hubbard [Tue, 21 Nov 2023 23:44:22 +0000 (09:44 +1000)]
Merge pull request #54566 from badone/wip-python-version-fedora-39

do_cmake.sh: set python version for Fedora 39

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
19 months agoMerge pull request #54447 from ceph/wip-fix-flight-load-bucket
J. Eric Ivancich [Tue, 21 Nov 2023 21:36:53 +0000 (16:36 -0500)]
Merge pull request #54447 from ceph/wip-fix-flight-load-bucket

rgw: fix flight load_bucket call

Reviewed-by: Casey Bodley <cbodley@redhat.com>
19 months agoMerge pull request #47208 from 5cs/fix-lambda-capture-by-ref
J. Eric Ivancich [Tue, 21 Nov 2023 21:36:27 +0000 (16:36 -0500)]
Merge pull request #47208 from 5cs/fix-lambda-capture-by-ref

rgwlc: lock_lambda overwrites ret val

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
19 months agoMerge pull request #54598 from zdover23/wip-doc-2023-11-22-rados-troubleshooting...
zdover23 [Tue, 21 Nov 2023 19:56:33 +0000 (05:56 +1000)]
Merge pull request #54598 from zdover23/wip-doc-2023-11-22-rados-troubleshooting-mon-recovering-broken-monmap

doc/rados: edit "recovering broken monmap"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
19 months agodoc/rados: edit "recovering broken monmap" 54598/head
Zac Dover [Tue, 21 Nov 2023 17:54:19 +0000 (03:54 +1000)]
doc/rados: edit "recovering broken monmap"

Edit the section "Recovering a monitor's broken monmap" 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>
19 months agocrush: remove unused variables 54599/head
Casey Bodley [Tue, 21 Nov 2023 18:44:40 +0000 (13:44 -0500)]
crush: remove unused variables

[161/715] Building CXX object src/crush/CMakeFiles/crush_objs.dir/CrushTester.cc.o
ceph/src/crush/CrushTester.cc:478:7: warning: variable 'num_devices_active' set but not used [-Wunused-but-set-variable]
  int num_devices_active = 0;
      ^
1 warning generated.
[165/715] Building CXX object src/crush/CMakeFiles/crush_objs.dir/CrushWrapper.cc.o
ceph/src/crush/CrushWrapper.cc:1579:9: warning: variable 'local_changed' set but not used [-Wunused-but-set-variable]
    int local_changed = 0;
        ^

Signed-off-by: Casey Bodley <cbodley@redhat.com>
19 months agoMerge pull request #52813 from cbodley/wip-59424
Casey Bodley [Tue, 21 Nov 2023 13:33:58 +0000 (13:33 +0000)]
Merge pull request #52813 from cbodley/wip-59424

qa/rgw: run s3tests against keystone ec2

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
19 months agoMerge pull request #53798 from asm0deuz/track_58812
Guillaume Abrioux [Tue, 21 Nov 2023 11:25:25 +0000 (12:25 +0100)]
Merge pull request #53798 from asm0deuz/track_58812

ceph-volume: fixes fallback to stat in is_device and is_partition

19 months agoMerge pull request #54513 from Matan-B/wip-matanb-crimson-snaptrimevent-lifetime
Samuel Just [Tue, 21 Nov 2023 03:16:37 +0000 (19:16 -0800)]
Merge pull request #54513 from Matan-B/wip-matanb-crimson-snaptrimevent-lifetime

crimson/osd/osd_operations/snaptrim_event: lifetime fixes

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
19 months agodo_cmake.sh: set python version for Fedora 39 54566/head
Brad Hubbard [Mon, 20 Nov 2023 04:43:31 +0000 (14:43 +1000)]
do_cmake.sh: set python version for Fedora 39

If do_cmake.sh is being exeuted on Fedora 39 set Python version to 3.12.
Remove versions for anything earlier than Fedora 37

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
19 months agoMerge pull request #54574 from zdover23/wip-doc-2023-11-21-rados-troubleshooting...
zdover23 [Mon, 20 Nov 2023 18:42:49 +0000 (04:42 +1000)]
Merge pull request #54574 from zdover23/wip-doc-2023-11-21-rados-troubleshooting-mon-understanding-mon-status

doc/rados: edit "understanding mon_status"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
19 months agoMerge pull request #54565 from zdover23/wip-doc-2023-11-20-radso-troubleshooting...
zdover23 [Mon, 20 Nov 2023 18:36:21 +0000 (04:36 +1000)]
Merge pull request #54565 from zdover23/wip-doc-2023-11-20-radso-troubleshooting-mon-admin-socket

doc/rados: edit "Using the Monitor's Admin Socket"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
19 months agodoc/rados: edit "understanding mon_status" 54574/head
Zac Dover [Mon, 20 Nov 2023 16:39:39 +0000 (02:39 +1000)]
doc/rados: edit "understanding mon_status"

Edit the section "Understanding mon_status" 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>
19 months agoMerge pull request #54571 from lxbsz/wip-63586-debuglog
Ilya Dryomov [Mon, 20 Nov 2023 15:36:59 +0000 (16:36 +0100)]
Merge pull request #54571 from lxbsz/wip-63586-debuglog

osd: log the number of extents for sparse read

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
19 months agoMerge pull request #54561 from zdover23/wip-doc-2023-11-20-documenting-ceph-url
zdover23 [Mon, 20 Nov 2023 15:24:27 +0000 (01:24 +1000)]
Merge pull request #54561 from zdover23/wip-doc-2023-11-20-documenting-ceph-url

doc/start: update release names

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
19 months agoosd: add more debug logs for sparse read 54571/head
Xiubo Li [Mon, 20 Nov 2023 14:04:12 +0000 (22:04 +0800)]
osd: add more debug logs for sparse read

This will be very important to get to know what exactly has happened
when client get a very large number of extents.

URL: https://tracker.ceph.com/issues/63586
Signed-off-by: Xiubo Li <xiubli@redhat.com>
19 months agorgwlc: lock_lambda overwrites ret val 47208/head
Tongliang Deng [Thu, 21 Jul 2022 11:54:12 +0000 (11:54 +0000)]
rgwlc: lock_lambda overwrites ret val

`lock_lambda` captures `ret` by reference, it will overwrites
returned value of `bucket_lc_process` when `wait_backoff` is called.

Fixes: c069eb7ff09b52003fa00a5cc83b1e52370032f5.
Signed-off-by: Tongliang Deng <dengtongliang@gmail.com>
19 months agoMerge pull request #54564 from barakda/nvmeof_bump_latest_version
barakda [Mon, 20 Nov 2023 13:19:08 +0000 (15:19 +0200)]
Merge pull request #54564 from barakda/nvmeof_bump_latest_version

nvmeof bump latest version

19 months agoceph-volume: fixes fallback to stat in is_device and is_partition 53798/head
Teoman ONAY [Tue, 3 Oct 2023 19:47:16 +0000 (21:47 +0200)]
ceph-volume: fixes fallback to stat in is_device and is_partition

os.stat (or lstat) cannot distinguish a block device from
a partition.

Fixes: https://tracker.ceph.com/issues/58812
Signed-off-by: Teoman ONAY <tonay@ibm.com>
20 months agoMerge pull request #51340 from Javlopez/feature/12087-upgrade-and-generate-grafana... wip-alimasa-multi-pubsub-etag
Aashish Sharma [Mon, 20 Nov 2023 06:03:07 +0000 (11:33 +0530)]
Merge pull request #51340 from Javlopez/feature/12087-upgrade-and-generate-grafana-dashboards

monitoring: add new dashboards

Fixes: https://tracker.ceph.com/issues/63592
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
20 months agodoc/start: update release names 54561/head
Zac Dover [Sun, 19 Nov 2023 14:47:40 +0000 (00:47 +1000)]
doc/start: update release names

Update "Quincy" to "Reef" and "Pacific" to "Quincy" in the section
"Viewing Old Ceph Documentation" in /doc/start/documenting-ceph.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 "Using the Monitor's Admin Socket" 54565/head
Zac Dover [Sun, 19 Nov 2023 20:32:09 +0000 (06:32 +1000)]
doc/rados: edit "Using the Monitor's Admin Socket"

Edit the section "Using the Monitor's Admin Socket" in
doc/rados/troubleshooting/troubleshooting-mon.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agonvmeof bump latest version 54564/head
barakda [Sun, 19 Nov 2023 20:24:09 +0000 (22:24 +0200)]
nvmeof bump latest version

Signed-off-by: barakda <barak.davidov@gmail.com>
20 months agoMerge pull request #54528 from yuvalif/wip-yuval-63532
Yuval Lifshitz [Sun, 19 Nov 2023 19:25:39 +0000 (21:25 +0200)]
Merge pull request #54528 from yuvalif/wip-yuval-63532

rgw/notifications: cleanup all coroutines after sending the notification

reviewed-by: cbodley

20 months agoMerge pull request #54545 from zdover23/wip-doc-2023-11-17-start-intro-osd-glossary
zdover23 [Sun, 19 Nov 2023 13:48:12 +0000 (23:48 +1000)]
Merge pull request #54545 from zdover23/wip-doc-2023-11-17-start-intro-osd-glossary

doc/start: explain "OSD"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
20 months agocrimson/osd/osd_operations/snaptrim_event: lifetime fixes 54513/head
Matan Breizman [Thu, 16 Nov 2023 09:38:04 +0000 (09:38 +0000)]
crimson/osd/osd_operations/snaptrim_event: lifetime fixes

```
    // SnapTrimEvent is a background operation,
    // it's lifetime is not guarnteed since the caller
    // returned future is being ignored. We should capture
    // a self reference thourhgout the entire execution
    // progress (not only on finally() continuations).
    // See: PG::on_active_actmap()
```

Sanitized backtrace:
```
DEBUG 2023-11-16 08:42:48,441 [shard 0] osd - snaptrim_event(id=21122, detail=SnapTrimEvent(pgid=3.1 snapid=3cb needs_pause=1)): interrupted crimson::common::actingset_changed (acting set changed

kernel callstack:
    #0 0x55e310e0ace7 in seastar::shared_mutex::unlock() (/usr/bin/ceph-osd+0x1edd0ce7)
    #1 0x55e313325d9c in auto seastar::futurize_invoke<crimson::OrderedConcurrentPhaseT<crimson::osd::SnapTrimEvent::WaitSubop>::ExitBarrier<crimson::OrderedConcurrentPhaseT<crimson::osd::SnapTrimEvent::WaitSubop>::BlockingEvent::Trigger<crimson::osd::SnapTrimEvent> >::exit()::{lambda()#1}&>(crimson::OrderedConcurrentPhaseT<crimson::osd::SnapTrimEvent::WaitSubop>::ExitBarrier<crimson::OrderedConcurrentPhaseT<crimson::osd::SnapTrimEvent::WaitSubop>::BlockingEvent::Trigger<crimson::osd::SnapTrimEvent> >::exit()::{lambda()#1}&) (/usr/bin/ceph-osd+0x212ebd9c)
    #2 0x55e3133260ef in _ZN7seastar20noncopyable_functionIFNS_6futureIvEEvEE17direct_vtable_forIZNS2_4thenIZN7crimson23OrderedConcurrentPhaseTINS7_3osd13SnapTrimEvent9WaitSubopEE11ExitBarrierINSC_13BlockingEvent7TriggerISA_EEE4exitEvEUlvE_S2_EET0_OT_EUlDpOT_E_E4callEPKS4_ (/usr/bin/ceph-osd+0x212ec0ef)
0x61500013365c is located 92 bytes inside of 472-byte region [0x615000133600,0x6150001337d8)
freed by thread T2 here:
    #0 0x7fb345ab73cf in operator delete(void*, unsigned long) (/lib64/libasan.so.6+0xb73cf)
    #1 0x55e313474863 in crimson::osd::SnapTrimEvent::~SnapTrimEvent() (/usr/bin/ceph-osd+0x2143a863)

previously allocated by thread T2 here:
    #0 0x7fb345ab6367 in operator new(unsigned long) (/lib64/libasan.so.6+0xb6367)
    #1 0x55e31183ac18 in auto crimson::OperationRegistryI::create_operation<crimson::osd::SnapTrimEvent, crimson::osd::PG*, SnapMapper&, snapid_t const&, bool const&>(crimson::osd::PG*&&, SnapMapper&, snapid_t const&, bool const&) (/usr/bin/ceph-osd+0x1f800c18)
SUMMARY: AddressSanitizer: heap-use-after-free (/usr/bin/ceph-osd+0x1edd0ce7) in seastar::shared_mutex::unlock()
```

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
20 months agocrimson/osd: avoid refcount mutations
Matan Breizman [Wed, 15 Nov 2023 14:27:05 +0000 (14:27 +0000)]
crimson/osd: avoid refcount mutations

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
20 months agorgw/notifications: cleanup all coroutines after sending the notification 54528/head
Yuval Lifshitz [Thu, 16 Nov 2023 15:47:06 +0000 (15:47 +0000)]
rgw/notifications: cleanup all coroutines after sending the notification

this is fixing a regression from: 6b6592f50b6b81fa13a330bcb91273ba7f25c0c9

Fixes: https://tracker.ceph.com/issues/63580
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
20 months agoMerge PR #54414 into main
Milind Changire [Sun, 19 Nov 2023 03:28:14 +0000 (08:58 +0530)]
Merge PR #54414 into main

* refs/pull/54414/head:
qa: run kernel_untar_build with newer tarball

Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
20 months agoMerge pull request #54523 from zdover23/wip-doc-2023-11-16-man-ceph-osd-grammar
zdover23 [Sat, 18 Nov 2023 18:12:16 +0000 (04:12 +1000)]
Merge pull request #54523 from zdover23/wip-doc-2023-11-16-man-ceph-osd-grammar

doc/man: edit ceph-osd description

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
20 months agodoc/start: explain "OSD" 54545/head
Zac Dover [Fri, 17 Nov 2023 09:24:14 +0000 (19:24 +1000)]
doc/start: explain "OSD"

Explain the initialism "OSD" and link to its definition in the glossary.
This PR is raised in response to an anonymous documentation bug that reads

  "Paragraph 2 uses the acronym OSD without any explanation.
   This makes it very difficult to understand this part of
   the documentation as there is no indication of what this
   acronym is until much further into the documentation. Replace
   first occurence of OSD with Object Storage Daemon (OSD) or
   link it to the glossary."
     -- https://pad.ceph.com/p/Report_Documentation_Bugs

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
20 months agodoc/man: edit ceph-osd description 54523/head
Zac Dover [Thu, 16 Nov 2023 11:14:13 +0000 (21:14 +1000)]
doc/man: edit ceph-osd description

Improve the English grammar and reduce the ambiguity and unclear writing
in the "Description" section of doc/man/8/ceph-osd.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 #52151 from myoungwon/wip-ceph-dedup-tool-memory
Samuel Just [Fri, 17 Nov 2023 18:40:11 +0000 (10:40 -0800)]
Merge pull request #52151 from myoungwon/wip-ceph-dedup-tool-memory

tools/ceph-dedup-tool: set memory threshold not to cause excessive  memory usage

Reviewed-by: Samuel Just <sjust@redhat.com>
20 months agoMerge pull request #54530 from yuw1/fix_typo
Anthony D'Atri [Fri, 17 Nov 2023 14:38:16 +0000 (09:38 -0500)]
Merge pull request #54530 from yuw1/fix_typo

ceph-menv:fix typo in README

20 months agoMerge pull request #54486 from pdvian/wip-app-release
Ilya Dryomov [Fri, 17 Nov 2023 10:35:44 +0000 (11:35 +0100)]
Merge pull request #54486 from pdvian/wip-app-release

PendingReleaseNotes: Add note for POOL_APP_NOT_ENABLED

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
20 months agoMerge pull request #53650 from rhcs-dashboard/fix-62969-main
Aashish Sharma [Fri, 17 Nov 2023 05:54:45 +0000 (11:24 +0530)]
Merge pull request #53650 from rhcs-dashboard/fix-62969-main

mgr/dashboard: Show the OSDs Out and Down panels as red whenever an OSD is in Out or Down state in Ceph Cluster grafana dashboard

Reviewed-by: Nizamudeen A <nia@redhat.com>
20 months agoceph-menv:fix typo in README 54530/head
yu.wang [Thu, 16 Nov 2023 17:38:58 +0000 (01:38 +0800)]
ceph-menv:fix typo in README

Signed-off-by: yu.wang <wangyu@wyu.space>
20 months agoMerge pull request #54490 from ceph/nvmeof-controllerid-spec
Adam King [Fri, 17 Nov 2023 00:44:52 +0000 (19:44 -0500)]
Merge pull request #54490 from ceph/nvmeof-controllerid-spec

mgr/cephadm: Expose nvmeof gateway configuration parameters through specifications

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Aviv Caro <Aviv.Caro@ibm.com>
20 months agoMerge pull request #54487 from phlogistonjohn/jjm-cephadm-zipimporter-wrkaround
Adam King [Fri, 17 Nov 2023 00:42:26 +0000 (19:42 -0500)]
Merge pull request #54487 from phlogistonjohn/jjm-cephadm-zipimporter-wrkaround

cephadm: workaround issues running cephadm with relative path

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
20 months agoMerge pull request #54403 from phlogistonjohn/jjm-cephadm-reorg-ctr-setup-methods
Adam King [Fri, 17 Nov 2023 00:41:26 +0000 (19:41 -0500)]
Merge pull request #54403 from phlogistonjohn/jjm-cephadm-reorg-ctr-setup-methods

cephadm: reorganize the remaining container setup methods

Reviewed-by: Adam King <adking@redhat.com>
20 months agoMerge pull request #54173 from phlogistonjohn/jjm-cephadm-jinja-2
Adam King [Fri, 17 Nov 2023 00:40:16 +0000 (19:40 -0500)]
Merge pull request #54173 from phlogistonjohn/jjm-cephadm-jinja-2

cephadm: expand support for dependencies bundled into the zipapp

Reviewed-by: Adam King <adking@redhat.com>
20 months agoMerge pull request #53803 from adk3798/regex-host-pattern
Adam King [Fri, 17 Nov 2023 00:38:52 +0000 (19:38 -0500)]
Merge pull request #53803 from adk3798/regex-host-pattern

mgr/cephadm: support for regex based host patterns

Reviewed-by: John Mulligan <jmulligan@redhat.com>
20 months agoMerge pull request #54529 from cbodley/wip-osd-scrubber-format-to
Casey Bodley [Thu, 16 Nov 2023 22:12:01 +0000 (22:12 +0000)]
Merge pull request #54529 from cbodley/wip-osd-scrubber-format-to

osd/scrubber: fix ambiguous call to format_to()

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
20 months agoPendingReleaseNotes: Add note for POOL_APP_NOT_ENABLED 54486/head
Prashant D [Mon, 13 Nov 2023 21:34:59 +0000 (16:34 -0500)]
PendingReleaseNotes: Add note for POOL_APP_NOT_ENABLED

Adds release notes for the fix added in #47560

Signed-off-by: Prashant D <pdhange@redhat.com>
20 months agorgw: fix flight load_bucket call 54447/head
J. Eric Ivancich [Thu, 9 Nov 2023 21:40:45 +0000 (16:40 -0500)]
rgw: fix flight load_bucket call

The interface to the load_bucket call changed when tenant and bucket
name are specified and user is no longer required. This updates the
flight call to load_bucket to reflect those changes.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
20 months agoosd/scrubber: fix ambiguous call to format_to() 54529/head
Casey Bodley [Thu, 16 Nov 2023 16:01:54 +0000 (11:01 -0500)]
osd/scrubber: fix ambiguous call to format_to()

new call to format_to() is ambiguous between std and fmt namespaces:

ceph/src/osd/scrubber/pg_scrubber.cc:654:26:   required from here
ceph/src/osd/scrubber/scrub_job.h:241:21: error: call of overloaded ‘format_to(fmt::v9::basic_format_context<fmt::v9::appender, char>::iterator, const char [60], const double&, double, const double&, const double&, const double&, const double&, const bool&)’ is ambiguous
...
ceph/src/fmt/include/fmt/core.h:3233:17: note: candidate: ‘OutputIt fmt::v9::format_to(OutputIt, format_string<T ...>, T&& ...) [with OutputIt = appender; T = {const double&, double, const double&, const double&, const double&, const double&, const bool&}; typename std::enable_if<detail::is_output_iterator<OutputIt, char>::value, int>::type <anonymous> = 0; format_string<T ...> = basic_format_string<char, const double&, double, const double&, const double&, const double&, const double&, const bool&>]’
 3233 | FMT_INLINE auto format_to(OutputIt out, format_string<T...> fmt, T&&... args)
      |                 ^~~~~~~~~
...
/usr/include/c++/13/format:3824:5: note: candidate: ‘_Out std::format_to(_Out, format_string<_Args ...>, _Args&& ...) [with _Out = fmt::v9::appender; _Args = {const double&, double, const double&, const double&, const double&, const double&, const bool&}; format_string<_Args ...> = basic_format_string<char, const double&, double, const double&, const double&, const double&, const double&, const bool&>]’
 3824 |     format_to(_Out __out, format_string<_Args...> __fmt, _Args&&... __args)
      |     ^~~~~~~~~

gcc (GCC) 13.2.1 20231011 (Red Hat 13.2.1-4)

Signed-off-by: Casey Bodley <cbodley@redhat.com>
20 months agoMerge pull request #54171 from smanjara/wip-fix-archive-version-status
Casey Bodley [Thu, 16 Nov 2023 15:42:00 +0000 (15:42 +0000)]
Merge pull request #54171 from smanjara/wip-fix-archive-version-status

rgw/multisite: set versioning status in archive zone upon bucket creation

Reviewed-by: Casey Bodley <cbodley@redhat.com>
20 months agocrimson/osd/osd_operations/snaptrim_event: fix lifetime on finally()
Matan Breizman [Wed, 15 Nov 2023 14:05:47 +0000 (14:05 +0000)]
crimson/osd/osd_operations/snaptrim_event: fix lifetime on finally()

Sanitized backtrace:
```
DEBUG 2023-11-14 15:23:50,871 [shard 0] osd - snaptrim_event(id=10610, detail=SnapTrimEvent(pgid=16.1a snapid=a needs_pause=0)): interrupted crimson::common::actingset_changed (acting set changed)

    #0 0x5653c613c071 in seastar::shared_mutex::unlock() (/usr/bin/ceph-osd+0x1ed27071)
    #1 0x5653c8670acf in auto seastar::futurize_invoke<crimson::OrderedConcurrentPhaseT<crimson::osd::SnapTrimEvent::WaitSubop>::ExitBarrier<crimson::OrderedConcurrentPhaseT<crimson::osd::SnapTrimEvent::WaitSubop>::BlockingEvent::Trigger<crimson::osd::SnapTrimEvent> >::exit()::{lambda()#1}&>(crimson::OrderedConcurrentPhaseT<crimson::osd::SnapTrimEvent::WaitSubop>::ExitBarrier<crimson::OrderedConcurrentPhaseT<crimson::osd::SnapTrimEvent::WaitSubop>::BlockingEvent::Trigger<crimson::osd::SnapTrimEvent> >::exit()::{lambda()#1}&) (/usr/bin/ceph-osd+0x2125bacf)
    #2 0x5653c8670e22 in _ZN7seastar20noncopyable_functionIFNS_6futureIvEEvEE17direct_vtable_forIZNS2_4thenIZN7crimson23OrderedConcurrentPhaseTINS7_3osd13SnapTrimEvent9WaitSubopEE11ExitBarrierINSC_13BlockingEvent7TriggerISA_EEE4exitEvEUlvE_S2_EET0_OT_EUlDpOT_E_E4callEPKS4_ (/usr/bin/ceph-osd+0x2125be22)

freed by thread T1 here:
    #0 0x7f10628b73cf in operator delete(void*, unsigned long) (/lib64/libasan.so.6+0xb73cf)
    #1 0x5653c8794bff in crimson::osd::SnapTrimEvent::~SnapTrimEvent() (/usr/bin/ceph-osd+0x2137fbff)

previously allocated by thread T1 here:
    #0 0x7f10628b6367 in operator new(unsigned long) (/lib64/libasan.so.6+0xb6367)

SUMMARY: AddressSanitizer: heap-use-after-free (/usr/bin/ceph-osd+0x1ed27071) in seastar::shared_mutex::unlock()
```

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
20 months agoMerge pull request #54514 from guits/fix-cv-raw-list
Guillaume Abrioux [Thu, 16 Nov 2023 09:29:15 +0000 (10:29 +0100)]
Merge pull request #54514 from guits/fix-cv-raw-list

ceph-volume: fix a regression in `raw list`

20 months agocephadm: workaround issues running cephadm with relative path 54487/head
John Mulligan [Tue, 14 Nov 2023 00:15:25 +0000 (19:15 -0500)]
cephadm: workaround issues running cephadm with relative path

Implement a workaround for the jinja2 package loader not correctly
finding a template inside the cephadmlib package when run as
a zipapp. See docstring in the shim class for more details.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agoceph-volume: fix a regression in `raw list` 54514/head
Guillaume Abrioux [Wed, 15 Nov 2023 15:03:10 +0000 (16:03 +0100)]
ceph-volume: fix a regression in `raw list`

'ceph-volume raw list' is broken for a specific use case (rook).

rook copies devices from /dev/ to /mnt for specific/internal needs.

when ceph-volume raw list is passed a device from /mnt then
ceph-volume ignores it and return an empty dict.
That prevent rook from creating OSDs properly.

https://tracker.ceph.com/issues/63545

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
20 months agoMerge pull request #54363 from ronen-fr/wip-rf-force-scrub
Ronen Friedman [Wed, 15 Nov 2023 16:12:22 +0000 (18:12 +0200)]
Merge pull request #54363 from ronen-fr/wip-rf-force-scrub

 osd/scrub: modify "scrub" & "deep_scrub" ASOK commands

Reviewed-by: Nitzan Mordechai <nmordech@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
20 months agoMerge pull request #54489 from Suyashd999/main
Ilya Dryomov [Wed, 15 Nov 2023 15:49:57 +0000 (16:49 +0100)]
Merge pull request #54489 from Suyashd999/main

qa/suites/rbd: Cleanup of MIRROR_IMAGE_MODE

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
20 months agoMerge PR #54471 into main
Milind Changire [Wed, 15 Nov 2023 15:45:15 +0000 (21:15 +0530)]
Merge PR #54471 into main

* refs/pull/54471/head:
qa: use correct imports to resolve fuse_mount and kernel_mount

Reviewed-by: Venky Shankar <vshankar@redhat.com>
20 months agotests/standalone: fix scrub-related tests following command changes 54363/head
Ronen Friedman [Thu, 9 Nov 2023 15:21:42 +0000 (09:21 -0600)]
tests/standalone: fix scrub-related tests following command changes

Using
ceph tell $pgid [deep]-scrub
to initiate an 'operator initiated' scrub, and
ceph tell $pgid schedule[-deep]-scrub
for causing a 'periodic scrub' to be scheduled.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
20 months agomgr/cephadm: Expose nvmeof gateway configuration parameters through specifications 54490/head
Alexander Indenbaum [Tue, 14 Nov 2023 08:12:11 +0000 (10:12 +0200)]
mgr/cephadm: Expose nvmeof gateway configuration parameters through specifications

- min_controller_id, max_controller_id: Enable the specification of minimum and maximum controller IDs utilized by the SPDK.
  Having distinct controller IDs is vital for configuring multipath setups.
- enable_spdk_discovery_controller: Manage whether the SPDK or ceph-nvmeof discovery service is employed. The default value is set to False.

Signed-off-by: Alexander Indenbaum <aindenba@redhat.com>
20 months agoMerge pull request #53047 from xxhdx1985126/wip-crimson-interrupt-exception
Samuel Just [Wed, 15 Nov 2023 07:04:51 +0000 (23:04 -0800)]
Merge pull request #53047 from xxhdx1985126/wip-crimson-interrupt-exception

crimson/common/interruptible_future: deal with exceptions thrown from seastar::future::get() and seastar::thread::yield()

Reviewed-by: Samuel Just <sjust@redhat.com>
20 months agoMerge pull request #54497 from zdover23/wip-doc-2023-11-14-glossary-quorum
zdover23 [Wed, 15 Nov 2023 06:11:41 +0000 (16:11 +1000)]
Merge pull request #54497 from zdover23/wip-doc-2023-11-14-glossary-quorum

doc/glossary: add "Quorum" to glossary

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
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 agocephadm: eliminate the _update_pids_limit function 54403/head
John Mulligan [Sun, 5 Nov 2023 17:57:45 +0000 (12:57 -0500)]
cephadm: eliminate the _update_pids_limit function

Eliminate the _update_pids_limit function by moving the logic into the
various daemon type classes `customize_container_args` functions allow
each class to decide if it needs to run with unlimited-pids or not.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: use class methods when setting up ceph based daemon containers
John Mulligan [Sun, 5 Nov 2023 16:44:48 +0000 (11:44 -0500)]
cephadm: use class methods when setting up ceph based daemon containers

Now that the ceph and ceph exporter classes have all the necessary
methods, rework the get_container function to use those class methods
in a common manner.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add container envs methods to ceph and ceph exporter classes
John Mulligan [Sat, 21 Oct 2023 00:18:36 +0000 (20:18 -0400)]
cephadm: add container envs methods to ceph and ceph exporter classes

These, currently unused, methods will be used in a subsequent change to
move logic for setting up containers out of the get_containers function
into the daemon type classes in a common way.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add methods to ceph daemon type class
John Mulligan [Sun, 5 Nov 2023 16:12:54 +0000 (11:12 -0500)]
cephadm: add methods to ceph daemon type class

Add unused methods to the ceph class in order to prepare for moving
the logic for setting up the various ceph deaemon types to be
handled by the class.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add more ContainerDeamonForm methods to the monitoring class
John Mulligan [Sun, 5 Nov 2023 16:09:27 +0000 (11:09 -0500)]
cephadm: add more ContainerDeamonForm methods to the monitoring class

Add methods customize_{container_args,process_args} & default_entrypoint
to the monitoring daemon type class. Use those methods in the
get_container function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add more ContainerDeamonForm methods to the tracing class
John Mulligan [Sun, 5 Nov 2023 16:00:54 +0000 (11:00 -0500)]
cephadm: add more ContainerDeamonForm methods to the tracing class

Add methods customize_{container_envs,process_args} & default_entrypoint
to the tracing daemon type class. Use those methods in the get_container
function.
This change tries to adapt to, but not fix, the rather strange
set_configuration static method that side-effects the class's(!)
property.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add more ContainerDeamonForm methods to the nfs class
John Mulligan [Sun, 5 Nov 2023 13:09:10 +0000 (08:09 -0500)]
cephadm: add more ContainerDeamonForm methods to the nfs class

Add methods customize_{container_envs,process_args} & default_entrypoint
to the nfs daemon type class. Use those methods in the get_container
function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add more ContainerDeamonForm methods to the ceph exporter class
John Mulligan [Sun, 5 Nov 2023 13:01:41 +0000 (08:01 -0500)]
cephadm: add more ContainerDeamonForm methods to the ceph exporter class

Add methods customize_process_args & default_entrypoint to the ceph
exporter daemon type class. Use those methods in the get_container
function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add more ContainerDeamonForm methods to the haproxy class
John Mulligan [Sun, 5 Nov 2023 12:56:29 +0000 (07:56 -0500)]
cephadm: add more ContainerDeamonForm methods to the haproxy class

Add methods customize_{container_args,process_args} to the haproxy
daemon type class. Use those methods in the get_container function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add more ContainerDeamonForm methods to the keepalived class
John Mulligan [Fri, 20 Oct 2023 22:55:17 +0000 (18:55 -0400)]
cephadm: add more ContainerDeamonForm methods to the keepalived class

Add methods customize_{container_args,container_envs} to the keepalived
daemon type class. Use those methods in the get_container function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add more ContainerDeamonForm methods to the nvmeof class
John Mulligan [Sun, 5 Nov 2023 12:45:26 +0000 (07:45 -0500)]
cephadm: add more ContainerDeamonForm methods to the nvmeof class

Add method customize_container_args to the nvmeof daemon type class. Use
that method in the get_container function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add more ContainerDeamonForm methods to the iscsi class
John Mulligan [Sun, 5 Nov 2023 12:40:29 +0000 (07:40 -0500)]
cephadm: add more ContainerDeamonForm methods to the iscsi class

Add method default_entrypoint to the iscsi daemon type class. Use that
method in the get_container function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add more ContainerDeamonForm methods to the custom container class
John Mulligan [Sun, 5 Nov 2023 12:18:55 +0000 (07:18 -0500)]
cephadm: add more ContainerDeamonForm methods to the custom container class

Add methods customize_{process_args,container_envs,container_args} and
default_entrypoint to the custom container daemon type class. Use those
methods in the get_container function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: add more ContainerDeamonForm methods to the snmp class
John Mulligan [Tue, 7 Nov 2023 22:57:43 +0000 (17:57 -0500)]
cephadm: add more ContainerDeamonForm methods to the snmp class

Add methods customize_{container,process}_args to the snmp gateway
daemon type class. Use those methods in the get_container function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agocephadm: update additional container daemon form base class methods
John Mulligan [Tue, 7 Nov 2023 22:57:43 +0000 (17:57 -0500)]
cephadm: update additional container daemon form base class methods

Fix the function signature for the previously added stub
customize_container_args.
Add methods for customize_process_args and customize_container_envs.
The "process args" are args passed to the daemon process / entrypoint.
Container args are passed to the container engine.
Add a default_entrypoint method to return the default entrypoint for
a particular daemon-in-container.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
20 months agodoc/cephadm: document regex based host pattern 53803/head
Adam King [Sun, 5 Nov 2023 21:07:53 +0000 (16:07 -0500)]
doc/cephadm: document regex based host pattern

Signed-off-by: Adam King <adking@redhat.com>
20 months agomgr/cephadm: support for regex based host patterns
Adam King [Tue, 3 Oct 2023 23:06:10 +0000 (19:06 -0400)]
mgr/cephadm: support for regex based host patterns

For example, with hosts vm-00, vm-01, and vm-02
I was able to provide the placement

service_type: node-exporter
service_name: node-exporter
placement:
  host_pattern:
    pattern: vm-00|vm-02
    pattern_type: regex

and it placed the node-exporter daemons on vm-00
and vm-02 but not vm-01. Obviously there are more
advanced scenarios that justify this than listing
two hosts, but using "|" as an OR like that is an
example of something you can't do with the fnmatch
version of the host pattern

Signed-off-by: Adam King <adking@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 agoqa/suites/rbd: Cleanup of MIRROR_IMAGE_MODE 54489/head
Suyashd999 [Tue, 14 Nov 2023 07:29:13 +0000 (12:59 +0530)]
qa/suites/rbd: Cleanup of MIRROR_IMAGE_MODE

Fixes: https://tracker.ceph.com/issues/63431
Signed-off-by: Suyash Dongre <suyashd999@gmail.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 agoqa: run kernel_untar_build with newer tarball 54414/head
Milind Changire [Tue, 14 Nov 2023 10:05:50 +0000 (15:35 +0530)]
qa: run kernel_untar_build with newer tarball

Replace old tarball link with a url link to linux-6.5.11.tar.xz.

Fixes: https://tracker.ceph.com/issues/57655
Signed-off-by: Milind Changire <mchangir@redhat.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>