]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
15 months agodoc/dev: repair broken image 57009/head
Zac Dover [Fri, 19 Apr 2024 03:22:33 +0000 (13:22 +1000)]
doc/dev: repair broken image

Replace the ".. graphviz" directive with an ".. image" directive that
correctly displays an image where previously an unusably zoomed-in image
appeared.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 5ff768dc73adf9c8794bf01c74f765a7eab13765)

15 months agoMerge pull request #56991 from rosinL/wip-65576-quincy
Rongqi Sun [Fri, 19 Apr 2024 09:07:50 +0000 (02:07 -0700)]
Merge pull request #56991 from rosinL/wip-65576-quincy

quincy: install-deps: save and restore user's XDG_CACHE_HOME

15 months agoinstall-deps: save and restore user's XDG_CACHE_HOME 56991/head
luo rixin [Tue, 16 Apr 2024 07:18:06 +0000 (15:18 +0800)]
install-deps: save and restore user's XDG_CACHE_HOME

Since ccache 4.0, ccache use $XDG_CACHE_HOME/ccache to keep compile cache
if XDG_CACHE_HOME is set. In this case $XDG_CACHE_HOME is overwrite,
ccache will use $XDG_CACHE_HOME/ccache(ccache will create the dir if not exsit) to
store compile cache, but $XDG_CACHE_HOME will be removed next round running,
leading to ccache contests are always removed. So save and restore user's XDG_CACHE_HOME.

Fixes: https://tracker.ceph.com/issues/65175
Signed-off-by: luo rixin <luorixin@huawei.com>
(cherry picked from commit a17342147d4411211ecf646730987d2633dabb6e)

15 months agoMerge pull request #56969 from zdover23/wip-doc-2024-04-18-backport-56879-to-quincy
Anthony D'Atri [Wed, 17 Apr 2024 20:58:50 +0000 (16:58 -0400)]
Merge pull request #56969 from zdover23/wip-doc-2024-04-18-backport-56879-to-quincy

quincy: doc/cephfs: improve ceph-fuse command

15 months agodoc/cephfs: improve ceph-fuse command 56969/head
Zac Dover [Mon, 15 Apr 2024 07:43:23 +0000 (17:43 +1000)]
doc/cephfs: improve ceph-fuse command

Instruct readers to use "mkdir /mnt/cephfs1" to create a mountpoint
before using "ceph-fuse" to mount a filesystem, if "/mnt/cephfs1"
doesn't already exist. cf.
https://github.com/ceph/ceph/pull/56831#discussion_r1561102227

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit bdfee45d3a8267db97fc697c369a3c8a945ae993)

15 months agoMerge pull request #56915 from zdover23/wip-doc-2024-04-16-backport-56905-to-quincy
Anthony D'Atri [Tue, 16 Apr 2024 12:16:07 +0000 (08:16 -0400)]
Merge pull request #56915 from zdover23/wip-doc-2024-04-16-backport-56905-to-quincy

quincy: doc/security: remove old GPG information

15 months agoMerge pull request #56889 from Svelar/wip-65483-quincy
Igor Fedotov [Tue, 16 Apr 2024 09:50:53 +0000 (12:50 +0300)]
Merge pull request #56889 from Svelar/wip-65483-quincy

quincy: bluestore/bluestore_types: check 'it' valid before using

Reviewed-by: Igor Fedotov <igor.fedotov@croit.io>
15 months agodoc/security: remove old GPG information 56915/head
Zac Dover [Mon, 15 Apr 2024 15:45:10 +0000 (01:45 +1000)]
doc/security: remove old GPG information

Remove a GPG key that was lost in a server upgrade, and remove the text
that describes it.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 95ec06a59a29ad2528471312ebc2931f7097213b)

15 months agobluestore/bluestore_types: check 'it' valid before using 56889/head
Rongqi Sun [Fri, 12 Apr 2024 06:51:34 +0000 (06:51 +0000)]
bluestore/bluestore_types: check 'it' valid before using

When sanitizer is enabled, unittest_bluestore_types fails as following
```
[ RUN      ] sb_info_space_efficient_map_t.basic
=================================================================
==143714==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xffff99f8b7f4 at pc 0xaaaab50bde18 bp 0xffffebefcdb0 sp 0xffffebefcda8
READ of size 8 at 0xffff99f8b7f4 thread T0
    #0 0xaaaab50bde14 in sb_info_t::get_sbid() const /root/ceph/src/os/bluestore/bluestore_types.h:1337:30
    #1 0xaaaab50a5908 in sb_info_space_efficient_map_t::find(unsigned long) /root/ceph/src/os/bluestore/bluestore_types.h:1385:10
    #2 0xaaaab50bd638 in sb_info_space_efficient_map_t::_add(long) /root/ceph/src/os/bluestore/bluestore_types.h:1424:15
    #3 0xaaaab50a52bc in sb_info_space_efficient_map_t::add_maybe_stray(unsigned long) /root/ceph/src/os/bluestore/bluestore_types.h:1358:12
    #4 0xaaaab4fec03c in sb_info_space_efficient_map_t_basic_Test::TestBody() /root/ceph/src/test/objectstore/test_bluestore_types.cc:113:11
    #5 0xaaaab51e9a40 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /root/ceph/src/googletest/googletest/src/gtest.cc:2605:10
    #6 0xaaaab5197040 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /root/ceph/src/googletest/googletest/src/gtest.cc:2641:14
    #7 0xaaaab51488a4 in testing::Test::Run() /root/ceph/src/googletest/googletest/src/gtest.cc:2680:5
    #8 0xaaaab514a7e8 in testing::TestInfo::Run() /root/ceph/src/googletest/googletest/src/gtest.cc:2858:11
    #9 0xaaaab514bde8 in testing::TestSuite::Run() /root/ceph/src/googletest/googletest/src/gtest.cc:3012:28
    #10 0xaaaab5167bac in testing::internal::UnitTestImpl::RunAllTests() /root/ceph/src/googletest/googletest/src/gtest.cc:5723:44
    #11 0xaaaab51f3940 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /root/ceph/src/googletest/googletest/src/gtest.cc:2605:10
    #12 0xaaaab519e5d8 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /root/ceph/src/googletest/googletest/src/gtest.cc:2641:14
    #13 0xaaaab5167024 in testing::UnitTest::Run() /root/ceph/src/googletest/googletest/src/gtest.cc:5306:10
    #14 0xaaaab50b4d6c in RUN_ALL_TESTS() /root/ceph/src/googletest/googletest/include/gtest/gtest.h:2486:46
    #15 0xaaaab50a1080 in main /root/ceph/src/test/objectstore/test_bluestore_types.cc:2847:10
    #16 0xffff9d6c73f8 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #17 0xffff9d6c74c8 in __libc_start_main csu/../csu/libc-start.c:392:3
    #18 0xaaaab4f3812c in _start (/root/ceph/build/bin/unittest_bluestore_types+0xe4812c) (BuildId: cb75399658026f83a4e89012de8fb02f08f6d239)

0xffff99f8b7f4 is located 0 bytes to the right of 20-byte region [0xffff99f8b7e0,0xffff99f8b7f4)
allocated by thread T0 here:
    #0 0xaaaab4fe636c in operator new[](unsigned long) (/root/ceph/build/bin/unittest_bluestore_types+0xef636c) (BuildId: cb75399658026f83a4e89012de8fb02f08f6d239)
    #1 0xaaaab50c0d2c in mempool::pool_allocator<(mempool::pool_index_t)11, sb_info_t>::allocate(unsigned long, void*) /root/ceph/src/include/mempool.h:375:33
    #2 0xaaaab50c0c0c in std::allocator_traits<mempool::pool_allocator<(mempool::pool_index_t)11, sb_info_t> >::allocate(mempool::pool_allocator<(mempool::pool_index_t)11, sb_info_t>&, unsigned long) /usr/bin/../lib/gcc/aarch64-linux-gnu/11/../../../../include/c++/11/bits/alloc_traits.h:318:20
    #3 0xaaaab50c044c in std::_Vector_base<sb_info_t, mempool::pool_allocator<(mempool::pool_index_t)11, sb_info_t> >::_M_allocate(unsigned long) /usr/bin/../lib/gcc/aarch64-linux-gnu/11/../../../../include/c++/11/bits/stl_vector.h:346:20
    #4 0xaaaab50bf954 in void std::vector<sb_info_t, mempool::pool_allocator<(mempool::pool_index_t)11, sb_info_t> >::_M_realloc_insert<long&>(__gnu_cxx::__normal_iterator<sb_info_t*, std::vector<sb_info_t, mempool::pool_allocator<(mempool::pool_index_t)11, sb_info_t> > >, long&) /usr/bin/../lib/gcc/aarch64-linux-gnu/11/../../../../include/c++/11/bits/vector.tcc:440:33
    #5 0xaaaab50be0d8 in sb_info_t& std::vector<sb_info_t, mempool::pool_allocator<(mempool::pool_index_t)11, sb_info_t> >::emplace_back<long&>(long&) /usr/bin/../lib/gcc/aarch64-linux-gnu/11/../../../../include/c++/11/bits/vector.tcc:121:4
    #6 0xaaaab50bd760 in sb_info_space_efficient_map_t::_add(long) /root/ceph/src/os/bluestore/bluestore_types.h:1429:24
    #7 0xaaaab50a5e78 in sb_info_space_efficient_map_t::add_or_adopt(unsigned long) /root/ceph/src/os/bluestore/bluestore_types.h:1361:15
    #8 0xaaaab4feb07c in sb_info_space_efficient_map_t_basic_Test::TestBody() /root/ceph/src/test/objectstore/test_bluestore_types.cc:103:11
    #9 0xaaaab51e9a40 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /root/ceph/src/googletest/googletest/src/gtest.cc:2605:10
    #10 0xaaaab5197040 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /root/ceph/src/googletest/googletest/src/gtest.cc:2641:14
    #11 0xaaaab51488a4 in testing::Test::Run() /root/ceph/src/googletest/googletest/src/gtest.cc:2680:5
    #12 0xaaaab514a7e8 in testing::TestInfo::Run() /root/ceph/src/googletest/googletest/src/gtest.cc:2858:11
    #13 0xaaaab514bde8 in testing::TestSuite::Run() /root/ceph/src/googletest/googletest/src/gtest.cc:3012:28
    #14 0xaaaab5167bac in testing::internal::UnitTestImpl::RunAllTests() /root/ceph/src/googletest/googletest/src/gtest.cc:5723:44
    #15 0xaaaab51f3940 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /root/ceph/src/googletest/googletest/src/gtest.cc:2605:10
    #16 0xaaaab519e5d8 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /root/ceph/src/googletest/googletest/src/gtest.cc:2641:14
    #17 0xaaaab5167024 in testing::UnitTest::Run() /root/ceph/src/googletest/googletest/src/gtest.cc:5306:10
    #18 0xaaaab50b4d6c in RUN_ALL_TESTS() /root/ceph/src/googletest/googletest/include/gtest/gtest.h:2486:46
    #19 0xaaaab50a1080 in main /root/ceph/src/test/objectstore/test_bluestore_types.cc:2847:10
    #20 0xffff9d6c73f8 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #21 0xffff9d6c74c8 in __libc_start_main csu/../csu/libc-start.c:392:3
    #22 0xaaaab4f3812c in _start (/root/ceph/build/bin/unittest_bluestore_types+0xe4812c) (BuildId: cb75399658026f83a4e89012de8fb02f08f6d239)

SUMMARY: AddressSanitizer: heap-buffer-overflow /root/ceph/src/os/bluestore/bluestore_types.h:1337:30 in sb_info_t::get_sbid() const
Shadow bytes around the buggy address:
  0x200ff33f16a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x200ff33f16b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x200ff33f16c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x200ff33f16d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x200ff33f16e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x200ff33f16f0: fa fa fa fa fa fa fa fa fa fa fa fa 00 00[04]fa
  0x200ff33f1700: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x200ff33f1710: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x200ff33f1720: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x200ff33f1730: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x200ff33f1740: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==143714==ABORTING
```

'it' might be invalid, so before using 'it', need to figure validity out

Signed-off-by: Rongqi Sun <sunrongqi@huawei.com>
(cherry picked from commit e1c9294fbf95fe966f3f629d0e573e4526fb8fb1)

15 months agoMerge pull request #56430 from Matan-B/wip-65095-quincy
Matan Breizman [Mon, 15 Apr 2024 10:30:26 +0000 (13:30 +0300)]
Merge pull request #56430 from Matan-B/wip-65095-quincy

quincy: mon/OSDMonitor: fix rmsnap command

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
15 months agoMerge pull request #56873 from zdover23/wip-doc-2024-04-14-backport-56870-to-quincy
Anthony D'Atri [Sat, 13 Apr 2024 21:51:27 +0000 (17:51 -0400)]
Merge pull request #56873 from zdover23/wip-doc-2024-04-14-backport-56870-to-quincy

quincy: doc/cephfs: disambiguate "Reporting Free Space"

15 months agodoc/cephfs: disambiguate "Reporting Free Space" 56873/head
Zac Dover [Sat, 13 Apr 2024 10:48:21 +0000 (20:48 +1000)]
doc/cephfs: disambiguate "Reporting Free Space"

Make a few sentences clearer in doc/cephfs/ceph-auth.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 788ccff18149b16cb01947c5bcf3bde380090df0)

15 months agoMerge pull request #56852 from zdover23/wip-doc-2024-04-12-backport-56831-to-quincy
Anthony D'Atri [Fri, 12 Apr 2024 14:04:40 +0000 (10:04 -0400)]
Merge pull request #56852 from zdover23/wip-doc-2024-04-12-backport-56831-to-quincy

quincy: doc/cephfs: refine client-auth (3 of 3)

15 months agoMerge pull request #54946 from rishabh-d-dave/wip-63407-quincy
Rishabh Dave [Fri, 12 Apr 2024 09:09:55 +0000 (14:39 +0530)]
Merge pull request #54946 from rishabh-d-dave/wip-63407-quincy

quincy: MDSAuthCaps: print better error message for perm flag in MDS caps

Reviewed-by: Milind Changire <mchangir@redhat.com>
15 months agodoc/cephfs: refine client-auth (3 of 3) 56852/head
Zac Dover [Thu, 11 Apr 2024 11:18:53 +0000 (21:18 +1000)]
doc/cephfs: refine client-auth (3 of 3)

Refine the final third of doc/cephfs/client-auth.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 44d1eeed703e968b374ec4d12fff3a2466a4c276)

15 months agoMerge pull request #56843 from zdover23/wip-doc-2024-04-12-backport-56784-to-quincy
Anthony D'Atri [Fri, 12 Apr 2024 03:11:37 +0000 (23:11 -0400)]
Merge pull request #56843 from zdover23/wip-doc-2024-04-12-backport-56784-to-quincy

quincy: doc/cephfs: refine client-auth (2 of 3)

15 months agodoc/cephfs: refine client-auth (2 of 3) 56843/head
Zac Dover [Tue, 9 Apr 2024 12:04:46 +0000 (22:04 +1000)]
doc/cephfs: refine client-auth (2 of 3)

Refine the second third of doc/cephfs/client-auth.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 083f56352b4fff662dff3c78b6a0c455605d02ff)

15 months agoqa/vstart_runner: set LocalCephManager.cluster 54946/head
Rishabh Dave [Mon, 24 Jan 2022 18:46:32 +0000 (00:16 +0530)]
qa/vstart_runner: set LocalCephManager.cluster

Use LocalContext instance to set LocalCephManager.cluster.

Fixes: https://tracker.ceph.com/issues/53601
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit d9fbf65f77ea69355a0f2aeeb8ee6e6d95a14a26)

15 months agoqa/cephfs: fix caps_helper.py
Rishabh Dave [Thu, 7 Mar 2024 12:49:21 +0000 (18:19 +0530)]
qa/cephfs: fix caps_helper.py

Replace calls to run_cluster_cmd() by calls to run_ceph_cmd().

Ideally, a backport should have fixed this issue but the method under
inspection here, "get_mon_cap_from_keyring()", has gone through lots of
changes, compared to the main branch, along with rest of caps_helper.py.
To avoid backporting large amount of QA changes, writing a specific fix
will be easier and faster.

This will also help with rest of Quincy backports since this patch
series/PR makes an important change to QA code.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
15 months agoMerge pull request #56480 from batrick/wip-65154-quincy
Yuri Weinstein [Wed, 10 Apr 2024 14:40:11 +0000 (07:40 -0700)]
Merge pull request #56480 from batrick/wip-65154-quincy

quincy: pybind/mgr/devicehealth: skip legacy objects that cannot be loaded

Reviewed-by: Laura Flores <lflores@redhat.com>
15 months agoMerge pull request #56360 from Svelar/wip-65026-quincy
Yuri Weinstein [Wed, 10 Apr 2024 14:32:22 +0000 (07:32 -0700)]
Merge pull request #56360 from Svelar/wip-65026-quincy

quincy: mgr/dashboard/frontend:Ceph dashboard supports multiple languages

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
15 months agoMerge pull request #55779 from ifed01/wip-ifed-fix-63795-qui
Yuri Weinstein [Wed, 10 Apr 2024 14:31:28 +0000 (07:31 -0700)]
Merge pull request #55779 from ifed01/wip-ifed-fix-63795-qui

quincy: test/store_test: fix deferred writing test cases

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
15 months agoMerge pull request #56781 from zdover23/wip-doc-2024-04-09-backport-56754-to-quincy
Anthony D'Atri [Tue, 9 Apr 2024 21:27:26 +0000 (17:27 -0400)]
Merge pull request #56781 from zdover23/wip-doc-2024-04-09-backport-56754-to-quincy

quincy: doc/cephfs: refine client-auth (1 of 3)

15 months agoMerge pull request #56799 from zdover23/wip-doc-2024-04-10-backport-56796-to-quincy
Anthony D'Atri [Tue, 9 Apr 2024 20:58:50 +0000 (16:58 -0400)]
Merge pull request #56799 from zdover23/wip-doc-2024-04-10-backport-56796-to-quincy

quincy: doc/mgr: remove Zabbix 1 information

15 months agodoc/mgr: remove Zabbix 1 information 56799/head
Zac Dover [Tue, 9 Apr 2024 20:04:28 +0000 (06:04 +1000)]
doc/mgr: remove Zabbix 1 information

Remove information about the installation of the Zabbix module and link
to a discussion of the reasoning behind Ceph's refusal to support
Zabbix.

John Jasen developed a procedure explaining how to install "Zabbix 2".
This commit removes outdated procedures and explains why those
procedures were removed. Immediately following this explanation, the
text includes an explanation of how to install "Zabbix 2".

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 29ac627956c5e5cdd4ed5f1316c20bc9e1fe0ff7)

15 months agoMerge pull request #56763 from adk3798/quincy-cephadm-pin-pyfakefs-version
Adam King [Tue, 9 Apr 2024 15:30:29 +0000 (11:30 -0400)]
Merge pull request #56763 from adk3798/quincy-cephadm-pin-pyfakefs-version

quincy: cephadm: pin pyfakefs version for tox tests

Reviewed-by: John Mulligan <jmulligan@redhat.com>
15 months agodoc/cephfs: refine client-auth (1 of 3) 56781/head
Zac Dover [Mon, 8 Apr 2024 12:07:38 +0000 (22:07 +1000)]
doc/cephfs: refine client-auth (1 of 3)

Refine the first third of doc/cephfs/client-auth.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 82c5bac5df553f1e13a2df3a107b2692efa6fc27)

15 months agocephadm: pin pyfakefs version for tox tests 56763/head
Adam King [Mon, 8 Apr 2024 14:48:18 +0000 (10:48 -0400)]
cephadm: pin pyfakefs version for tox tests

5.4.0 seems to have caused a number of permission issues
in the test. In order to unblock make check, let's pin it
to 5.3.5 for now.

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit ce71ce10b7551a649c9a64be992c0eddfa7e7243)

15 months agoMerge pull request #56737 from rhcs-dashboard/fix-65286-quincy
Aashish Sharma [Mon, 8 Apr 2024 04:34:13 +0000 (10:04 +0530)]
Merge pull request #56737 from rhcs-dashboard/fix-65286-quincy

mgr/dashboard: add Table Schema to grafonnet

Reviewed-by: Nizamudeen A <nia@redhat.com>
15 months agoMerge pull request #56741 from zdover23/wip-doc-2024-05-07-backport-56738-to-quincy
Anthony D'Atri [Sun, 7 Apr 2024 12:28:49 +0000 (08:28 -0400)]
Merge pull request #56741 from zdover23/wip-doc-2024-05-07-backport-56738-to-quincy

quincy: doc/dev: refine "Concepts" 4 of 3

15 months agodoc/dev: refine "Concepts" 4 of 3 56741/head
Zac Dover [Sat, 6 Apr 2024 04:43:16 +0000 (14:43 +1000)]
doc/dev: refine "Concepts" 4 of 3

s/PG's PG logs/PG's logs/

re https://github.com/ceph/ceph/pull/56727#discussion_r1553541922

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 221d734760b6f680e4d17cd2f0bfcd39f914c8d6)

15 months agoMerge pull request #56730 from zdover23/wip-doc-2024-04-05-backport-56727-to-quincy
Zac Dover [Sat, 6 Apr 2024 04:39:49 +0000 (14:39 +1000)]
Merge pull request #56730 from zdover23/wip-doc-2024-04-05-backport-56727-to-quincy

quincy: doc/dev: refine "Concepts" 3 of 3

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
15 months agomgr/dashboard: add Table Schema to grafonnet 56737/head
Aashish Sharma [Sat, 6 Apr 2024 03:43:48 +0000 (09:13 +0530)]
mgr/dashboard: add Table Schema to grafonnet

Backport of #56509 in quincy didn't include the Table Schema in the utils.libsonnet because of which the json generation ias failing. This PR tends to add the Table Schema

Signed-off-by: Aashish Sharma <aasharma@redhat.com>
15 months agodoc/dev: refine "Concepts" 3 of 3 56730/head
Zac Dover [Fri, 5 Apr 2024 06:43:47 +0000 (16:43 +1000)]
doc/dev: refine "Concepts" 3 of 3

Refine the third third of the entries in the section "Concepts" in
doc/dev/peering.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 512e2dc9d52fdd14dfdd87ccd141e535d3098fb7)

15 months agoMerge pull request #56726 from zdover23/wip-doc-2024-04-05-backport-56646-to-quincy
Anthony D'Atri [Fri, 5 Apr 2024 12:34:40 +0000 (08:34 -0400)]
Merge pull request #56726 from zdover23/wip-doc-2024-04-05-backport-56646-to-quincy

quincy: doc/dev: refine "Concepts" 2 of 3

15 months agoMerge pull request #56680 from aaSharma14/wip-65286-quincy
Aashish Sharma [Fri, 5 Apr 2024 04:51:43 +0000 (10:21 +0530)]
Merge pull request #56680 from aaSharma14/wip-65286-quincy

quincy: mgr/dashboard: replace deprecated table panel in grafana with a newer table panel

Reviewed-by: Nizamudeen A <nia@redhat.com>
15 months agodoc/dev: refine "Concepts" 2 of 3 56726/head
Zac Dover [Wed, 3 Apr 2024 05:02:29 +0000 (15:02 +1000)]
doc/dev: refine "Concepts" 2 of 3

Refine the second third of the entries in the section "Concepts" in
doc/dev/peering.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 7bb35282da27f0c18ffbe36f2c0852a827c5bc2f)

15 months agoMerge pull request #56685 from zdover23/wip-doc-2024-04-04-backport-56662-to-quincy
Zac Dover [Thu, 4 Apr 2024 11:39:14 +0000 (21:39 +1000)]
Merge pull request #56685 from zdover23/wip-doc-2024-04-04-backport-56662-to-quincy

quincy: doc/mgr: credit John Jasen for Zabbix 2

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
15 months agoMerge pull request #56558 from afreen23/wip-65206-quincy
Nizamudeen A [Thu, 4 Apr 2024 05:49:13 +0000 (11:19 +0530)]
Merge pull request #56558 from afreen23/wip-65206-quincy

quincy: mgr/dashboard: make ceph logo redirect to dashboard

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
15 months agodoc/mgr: credit John Jasen for Zabbix 2 56685/head
Zac Dover [Wed, 3 Apr 2024 12:21:04 +0000 (22:21 +1000)]
doc/mgr: credit John Jasen for Zabbix 2

Credit John Jasen for the development of the procedures describing the
installation of Zabbix 2.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 28aa556448cf02dc943653e76a7ef89e10ae93e9)

15 months agomgr/dashboard: replace deprecated table panel in grafana with a newer 56680/head
Aashish Sharma [Wed, 27 Mar 2024 08:16:24 +0000 (13:46 +0530)]
mgr/dashboard: replace deprecated table panel in grafana with a newer
table panel

Fixes: https://tracker.ceph.com/issues/65174
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit c2f4aa7887d8322bc58cd1cb322746246ccebe32)

15 months agoMerge pull request #56655 from aaSharma14/wip-65287-quincy
Aashish Sharma [Thu, 4 Apr 2024 02:18:49 +0000 (07:48 +0530)]
Merge pull request #56655 from aaSharma14/wip-65287-quincy

quincy: mgr/dashboard: replace piechart plugin charts with native pie chart panel

Reviewed-by: Nizamudeen A <nia@redhat.com>
15 months agoMerge pull request #56661 from zdover23/wip-doc-2024-04-03-backport-56635-to-quincy
Anthony D'Atri [Wed, 3 Apr 2024 16:08:02 +0000 (12:08 -0400)]
Merge pull request #56661 from zdover23/wip-doc-2024-04-03-backport-56635-to-quincy

quincy: doc/dev: refine "Concepts"

15 months agoMerge pull request #56653 from aaSharma14/wip-65282-quincy
Aashish Sharma [Wed, 3 Apr 2024 14:54:47 +0000 (20:24 +0530)]
Merge pull request #56653 from aaSharma14/wip-65282-quincy

quincy: mgr/dashboard: upgrade from old 'graph' type panels to the new 'timeseries' panel

Reviewed-by: Nizamudeen A <nia@redhat.com>
15 months agodoc/dev: refine "Concepts" 56661/head
Zac Dover [Tue, 2 Apr 2024 12:23:13 +0000 (22:23 +1000)]
doc/dev: refine "Concepts"

Refine the text in the first third of the entries in the section
"Concepts" in doc/dev/peering.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 530b11be24c6e702d4d9b9227649db8ca34591e4)

15 months agomgr/dashboard: replace piechart plugin charts with native pie chart 56655/head
Aashish Sharma [Mon, 26 Feb 2024 09:32:19 +0000 (15:02 +0530)]
mgr/dashboard: replace piechart plugin charts with native pie chart
panel

Fixes: https://tracker.ceph.com/issues/64579
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 6e5efb626f4b3503a12371a8f609fdb5175a3ebe)

15 months agomgr/dashboard: upgrade from old 'graph' type panels to the new 56653/head
Aashish Sharma [Wed, 4 Oct 2023 09:07:42 +0000 (14:37 +0530)]
mgr/dashboard: upgrade from old 'graph' type panels to the new
'timeseries' panel

The graph panel type is deprecated, and disappears after Grafana v9.1 (current version is 10.0) to prevent more old type panels being created. These should be migrated to the timeseries panel type, to avoid potential problems with future Grafana versions.

Fixes: https://tracker.ceph.com/issues/61720
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 2573426f54aab237ed855a4e88d5b89ddbd76acd)

15 months agoMerge pull request #56632 from zdover23/wip-doc-2024-04-02-backport-56614-to-quincy
Anthony D'Atri [Tue, 2 Apr 2024 15:07:33 +0000 (11:07 -0400)]
Merge pull request #56632 from zdover23/wip-doc-2024-04-02-backport-56614-to-quincy

quincy: doc/mgr: update zabbix information

15 months agodoc/mgr: update zabbix information 56632/head
Zac Dover [Fri, 29 Mar 2024 11:06:28 +0000 (21:06 +1000)]
doc/mgr: update zabbix information

Include information from John Jasen about how to install Zabbix.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit ebe7651dd85ae1f1570d8c34479b9bdd1249d83c)

15 months agoMerge pull request #56604 from zdover23/wip-doc-2024-04-01-backport-56600-to-quincy
Anthony D'Atri [Mon, 1 Apr 2024 01:55:30 +0000 (21:55 -0400)]
Merge pull request #56604 from zdover23/wip-doc-2024-04-01-backport-56600-to-quincy

quincy: doc/dev: update leads list

15 months agodoc/dev: update leads list 56604/head
Zac Dover [Mon, 1 Apr 2024 01:17:39 +0000 (11:17 +1000)]
doc/dev: update leads list

Remove Joao Luis from the list of component leads.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 158b0403bd66cdf6c4b456146705f42d69f56730)

15 months agoMerge pull request #56595 from zdover23/wip-doc-2024-03-31-backport-56592-to-quincy
Anthony D'Atri [Sun, 31 Mar 2024 02:53:51 +0000 (22:53 -0400)]
Merge pull request #56595 from zdover23/wip-doc-2024-03-31-backport-56592-to-quincy

quincy: doc/rados/operations: Improve crush_location docs

15 months agodoc/rados/operations: Improve crush_location docs 56595/head
Niklas Hambüchen [Sat, 30 Mar 2024 16:42:48 +0000 (17:42 +0100)]
doc/rados/operations: Improve crush_location docs

* Fix incorrect syntax
* Use underscores for config options, like other ceph docs did
* Fix incorrect statement that crush_location_hook adds fiels; it replaces
* Explain `root=default host=HOSTNAME` is not set if `crush_location` is given
* Remove duplication across sections
* Point out that `root=default` is important

Signed-off-by: Niklas Hambüchen <mail@nh2.me>
(cherry picked from commit d91e75e1e92b73bf967740575b3c27a86ef844d5)

15 months agoMerge pull request #56590 from zdover23/wip-doc-2024-03-30-backport-56581-to-quincy
Anthony D'Atri [Sat, 30 Mar 2024 13:34:03 +0000 (09:34 -0400)]
Merge pull request #56590 from zdover23/wip-doc-2024-03-30-backport-56581-to-quincy

quincy: doc/dev: update leads list

15 months agodoc/dev: update leads list 56590/head
Zac Dover [Fri, 29 Mar 2024 11:14:21 +0000 (21:14 +1000)]
doc/dev: update leads list

Update the list of component leads in
doc/dev/developer_guide/essentials.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 57e9427eac08b4057999f5afc44cf0fc77a3068f)

15 months agoMerge pull request #55944 from vshankar/wip-64704-quincy
Venky Shankar [Fri, 29 Mar 2024 08:17:57 +0000 (13:47 +0530)]
Merge pull request #55944 from vshankar/wip-64704-quincy

quincy: qa: remove error string checks and check w/ return value

Reviewed-by: Milind Changire <mchangir@redhat.com>
15 months agoMerge pull request #56467 from zdover23/wip-doc-2024-03-26-backport-56436-to-quincy
Zac Dover [Fri, 29 Mar 2024 07:36:18 +0000 (17:36 +1000)]
Merge pull request #56467 from zdover23/wip-doc-2024-03-26-backport-56436-to-quincy

quincy: doc/start: improve MDS explanation

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
15 months agoMerge pull request #56524 from zdover23/wip-doc-2024-03-27-backport-56173-to-quincy
Zac Dover [Fri, 29 Mar 2024 07:35:55 +0000 (17:35 +1000)]
Merge pull request #56524 from zdover23/wip-doc-2024-03-27-backport-56173-to-quincy

quincy: doc/dev: osd_internals/snaps.rst: add clone_overlap doc

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
15 months agoMerge pull request #56551 from rhcs-dashboard/wip-65197-quincy
Nizamudeen A [Fri, 29 Mar 2024 06:44:33 +0000 (12:14 +0530)]
Merge pull request #56551 from rhcs-dashboard/wip-65197-quincy

quincy: mgr/dashboard: sanitize dashboard user creation

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: afreen23 <NOT@FOUND>
15 months agomgr/dashboard: make ceph logo redirect to dashboard 56558/head
Afreen [Wed, 27 Mar 2024 10:01:12 +0000 (15:31 +0530)]
mgr/dashboard: make ceph logo redirect to dashboard

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

Clicking on ceph logo in navigation takes back to overview dashboard.

Signed-off-by: Afreen <afreen23.git@gmail.com>
(cherry picked from commit 44e7bb336c26da77f49fb027578509975b5b2633)

15 months agoMerge pull request #56050 from lxbsz/wip-64586
Venky Shankar [Thu, 28 Mar 2024 11:21:05 +0000 (16:51 +0530)]
Merge pull request #56050 from lxbsz/wip-64586

quincy: mds: allow lock state to be LOCK_MIX_SYNC in replica for filelock

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agoMerge pull request #55828 from kotreshhr/wip-64581-quincy
Venky Shankar [Thu, 28 Mar 2024 11:20:17 +0000 (16:50 +0530)]
Merge pull request #55828 from kotreshhr/wip-64581-quincy

quincy: qa: Fix fs/full suite

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agoMerge pull request #54187 from rishabh-d-dave/wip-57929-quincy
Venky Shankar [Thu, 28 Mar 2024 11:19:56 +0000 (16:49 +0530)]
Merge pull request #54187 from rishabh-d-dave/wip-57929-quincy

quincy: qa/cephfs: handle non-numeric values for json.loads()

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agoMerge pull request #54186 from rishabh-d-dave/wip-62878-quincy
Venky Shankar [Thu, 28 Mar 2024 11:19:37 +0000 (16:49 +0530)]
Merge pull request #54186 from rishabh-d-dave/wip-62878-quincy

quincy: cephfs: upgrade cephfs-shell's path wherever necessary

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agoMerge pull request #50730 from vshankar/tr-59041
Venky Shankar [Thu, 28 Mar 2024 11:18:34 +0000 (16:48 +0530)]
Merge pull request #50730 from vshankar/tr-59041

quincy: client, mds: update mtime and change attr for snapdir when snaps are created, deleted and renamed

Reviewed-by: Xiubo Li <xiubli@redhat.com>
15 months agoMerge pull request #56260 from guits/wip-64944-quincy
Guillaume Abrioux [Thu, 28 Mar 2024 09:45:59 +0000 (10:45 +0100)]
Merge pull request #56260 from guits/wip-64944-quincy

quincy: ceph-volume: add missing import

15 months agoMerge pull request #55480 from guits/wip-64336-quincy
Guillaume Abrioux [Thu, 28 Mar 2024 09:44:04 +0000 (10:44 +0100)]
Merge pull request #55480 from guits/wip-64336-quincy

quincy: ceph-volume: fix zap_partitions() in devices.lvm.zap

15 months agomgr/dashboard: sanitize dashboard user creation 56551/head
Pedro Gonzalez Gomez [Thu, 21 Mar 2024 07:56:58 +0000 (08:56 +0100)]
mgr/dashboard: sanitize dashboard user creation

Fixes: https://tracker.ceph.com/issues/65030
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
(cherry picked from commit 9951a3a7f314c7cd1eb147fb1b398ac6c5212806)

15 months agoceph-volume: fix zap_partitions() in devices.lvm.zap 55480/head
Guillaume Abrioux [Tue, 30 Jan 2024 14:17:35 +0000 (14:17 +0000)]
ceph-volume: fix zap_partitions() in devices.lvm.zap

The current logic is unable to find the holders for the
partition being zapped.

This commit fixes this issue.

Fixes: https://tracker.ceph.com/issues/64248
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 36c83bf5424308214228b1c86d8e1d215b8519c5)

15 months agoceph-volume: fix partitions support in disk.get_devices()
Guillaume Abrioux [Fri, 26 Jan 2024 20:35:18 +0000 (21:35 +0100)]
ceph-volume: fix partitions support in disk.get_devices()

The following:
```
is_part = get_file_contents(os.path.join(_sys_dev_block_path, item, 'partition')) == "1"
```
assumes any `/sys/dev/block/x:y/partition` contains '1' which is wrong.
This file actually contains the corresponding partition number.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit f72100bbd17539d9774ae72215afefee16f20775)

15 months agoceph-volume: fix util.get_partitions
Guillaume Abrioux [Tue, 3 Oct 2023 23:11:32 +0000 (01:11 +0200)]
ceph-volume: fix util.get_partitions

The current logic makes it report only the first
partitions of devices.

Fixes: https://tracker.ceph.com/issues/63086
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit b14ff07e6344d9f097259265d468f6300818b053)

15 months agodoc/dev: osd_internals/snaps.rst: add clone_overlap doc 56524/head
Matan Breizman [Wed, 13 Mar 2024 14:19:59 +0000 (14:19 +0000)]
doc/dev: osd_internals/snaps.rst: add clone_overlap doc

snapdir concept was removed in: https://github.com/ceph/ceph/pull/17579

Co-authored-by: Zac Dover <zac.dover@proton.me>
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 6a7f2b0fda74aedb213067abe5c0a64b68fbbdc7)

15 months agoMerge pull request #56496 from zdover23/wip-doc-2024-03-27-backport-56450-to-quincy
Zac Dover [Wed, 27 Mar 2024 13:33:20 +0000 (23:33 +1000)]
Merge pull request #56496 from zdover23/wip-doc-2024-03-27-backport-56450-to-quincy

quincy: docs/rados: remove incorrect ceph command

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
15 months agoMerge pull request #55543 from rhcs-dashboard/wip-61715-quincy
Nizamudeen A [Wed, 27 Mar 2024 05:20:20 +0000 (10:50 +0530)]
Merge pull request #55543 from rhcs-dashboard/wip-61715-quincy

quincy: mgr/dashboard: fix the jsonschema issue in install-deps

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: ivoalmeida <NOT@FOUND>
15 months agoMerge pull request #55545 from rhcs-dashboard/wip-61659-quincy
Nizamudeen A [Wed, 27 Mar 2024 05:19:48 +0000 (10:49 +0530)]
Merge pull request #55545 from rhcs-dashboard/wip-61659-quincy

quincy: mgr/dashboard: change deprecated grafana URL in daemon logs

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: ivoalmeida <NOT@FOUND>
15 months agodocs/rados: remove incorrect ceph command 56496/head
Taha Jahangir [Mon, 25 Mar 2024 10:02:12 +0000 (13:32 +0330)]
docs/rados: remove incorrect ceph command

The removed line was (incorrectly changed) output of the previous command.

Signed-off-by: Taha Jahangir <mtjahangir@gmail.com>
(cherry picked from commit 3cd39e3582ed830f86c55d2203ece72fa0f9426b)

15 months agoMerge pull request #56212 from idryomov/wip-63770-quincy
Yuri Weinstein [Tue, 26 Mar 2024 16:07:14 +0000 (09:07 -0700)]
Merge pull request #56212 from idryomov/wip-63770-quincy

quincy: librbd: account for discards that truncate in ObjectListSnapsRequest

Reviewed-by: Ramana Raja <rraja@redhat.com>
15 months agoMerge pull request #55501 from cbodley/wip-64363-quincy
Yuri Weinstein [Tue, 26 Mar 2024 16:06:36 +0000 (09:06 -0700)]
Merge pull request #55501 from cbodley/wip-64363-quincy

quincy: cmake/modules/BuildRocksDB.cmake: inherit parent's CMAKE_CXX_FLAGS

Reviewed-by: Mark Nelson <mnelson@redhat.com>
15 months agoMerge pull request #55154 from rzarzynski/wip-64007-quincy
Yuri Weinstein [Tue, 26 Mar 2024 16:05:56 +0000 (09:05 -0700)]
Merge pull request #55154 from rzarzynski/wip-64007-quincy

quincy:  common/weighted_shuffle: don't feed std::discrete_distribution with all-zero weights

Reviewed-by: Prashant D <pdhange@redhat.com>
15 months agoMerge pull request #54904 from kamoltat/wip-ksirivad-backport-quincy-52633
Yuri Weinstein [Tue, 26 Mar 2024 16:04:30 +0000 (09:04 -0700)]
Merge pull request #54904 from kamoltat/wip-ksirivad-backport-quincy-52633

quincy: pybind/mgr/pg_autoscaler: Cut back osdmap.get_pools calls

Reviewed-by: Nitzan Mordechai <nmordech@redhat.com>
15 months agopybind/mgr/devicehealth: skip legacy objects that cannot be loaded 56480/head
Patrick Donnelly [Thu, 21 Dec 2023 13:48:33 +0000 (08:48 -0500)]
pybind/mgr/devicehealth: skip legacy objects that cannot be loaded

Log looks like after test:

    2023-12-21T16:09:28.804+0000 7fbe7fd86700  0 [devicehealth DEBUG root] loading object ABC_DEADB33F_FA
    2023-12-21T16:09:28.805+0000 7fbe7fd86700  0 [devicehealth DEBUG root] object rados.Object(ioctx=<rados.Ioctx object at 0x7fbeee0c4668>,key=ABC_DEADB33F_FA,nspace=--default--,locator=None) does not exist because it is deleted in HEAD
    2023-12-21T16:09:28.805+0000 7fbe7fd86700  0 [devicehealth DEBUG root] finished reading legacy pool, complete = True

Credit to Greg Farnum for postulating the cause.

Fixes: https://tracker.ceph.com/issues/63882
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 5e6fc0bf5f52732966d5cf2987e679abee8a384d)

15 months agoqa: test devicehealth legacy load of deleted snap obj
Patrick Donnelly [Thu, 21 Dec 2023 15:39:03 +0000 (10:39 -0500)]
qa: test devicehealth legacy load of deleted snap obj

Failure without fix looks like:

    2023-12-21T16:05:55.737+0000 7fbe585b0700  0 [devicehealth DEBUG root] loading object ABC_DEADB33F_FA
    2023-12-21T16:05:55.737+0000 7fbe585b0700 -1 log_channel(cluster) log [ERR] : Unhandled exception from module 'devicehealth' while running on mgr.x: [errno 2] RADOS object not found (Failed to operate read op for oid ABC_DEADB33F_FA)
    2023-12-21T16:05:55.737+0000 7fbe585b0700 -1 devicehealth.serve:
    2023-12-21T16:05:55.737+0000 7fbe585b0700 -1 Traceback (most recent call last):
    File "/home/pdonnell/ceph/src/pybind/mgr/devicehealth/module.py", line 394, in serve
        self._do_serve()
    File "/home/pdonnell/ceph/src/pybind/mgr/mgr_module.py", line 524, in check
        return func(self, *args, **kwargs)
    File "/home/pdonnell/ceph/src/pybind/mgr/devicehealth/module.py", line 354, in _do_serve
        finished_loading_legacy = self.check_legacy_pool()
    File "/home/pdonnell/ceph/src/pybind/mgr/devicehealth/module.py", line 326, in check_legacy_pool
        if self._load_legacy_object(ioctx, obj.key):
    File "/home/pdonnell/ceph/src/pybind/mgr/devicehealth/module.py", line 300, in _load_legacy_object
        ioctx.operate_read_op(op, oid)
    File "rados.pyx", line 3723, in rados.Ioctx.operate_read_op
    rados.ObjectNotFound: [errno 2] RADOS object not found (Failed to operate read op for oid ABC_DEADB33F_FA)

Credit to Greg Farnum for postulating the cause.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit aa30adbaa7616c8e24b3ccaad9dbcda7c0c663fc)

15 months agoqa: allow failing whatever the active mgr is
Patrick Donnelly [Thu, 21 Dec 2023 16:11:03 +0000 (11:11 -0500)]
qa: allow failing whatever the active mgr is

Vanilla `mgr fail` will just fail the active.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit a066467c9dc6f34a58e4085d05238a5db3f45cba)

15 months agoqa: add unit tests for MgrMap down flag
Patrick Donnelly [Wed, 10 Jan 2024 17:52:04 +0000 (12:52 -0500)]
qa: add unit tests for MgrMap down flag

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 9ebcbdbed0fbaf37d60fbd8db321742ee5721d8c)

15 months agomon/MgrMonitor: add "down" setting to simplify testing
Patrick Donnelly [Wed, 10 Jan 2024 17:50:51 +0000 (12:50 -0500)]
mon/MgrMonitor: add "down" setting to simplify testing

This flag prevents promotion of a standby manager to the active. It also drops
the current active.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 2e2a3f15cdd9125029fca78b834b8b5bb53edbb1)

15 months agoMerge pull request #54785 from ifed01/wip-ifed-better-osd-robust-qui
Igor Fedotov [Tue, 26 Mar 2024 11:28:59 +0000 (14:28 +0300)]
Merge pull request #54785 from ifed01/wip-ifed-better-osd-robust-qui

quincy: osd: improve OSD robustness.

Reviewed-by: Pere Diaz Bou <pere-altea@hotmail.com>
15 months agoMerge pull request #56121 from xhernandez/wip-64736-quincy
Venky Shankar [Tue, 26 Mar 2024 10:46:36 +0000 (16:16 +0530)]
Merge pull request #56121 from xhernandez/wip-64736-quincy

quincy: client: fix leak of file handles

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agoMerge pull request #56061 from mchangir/wip-64810-quincy
Venky Shankar [Tue, 26 Mar 2024 10:46:16 +0000 (16:16 +0530)]
Merge pull request #56061 from mchangir/wip-64810-quincy

quincy: mds: add debug logs during setxattr ceph.dir.subvolume

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agoMerge pull request #55986 from joscollin/wip-64742-quincy
Venky Shankar [Tue, 26 Mar 2024 10:46:06 +0000 (16:16 +0530)]
Merge pull request #55986 from joscollin/wip-64742-quincy

quincy: mds: add a command to dump directory information

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agoMerge pull request #55299 from neesingh-rh/wip-64097-quincy
Venky Shankar [Tue, 26 Mar 2024 10:45:26 +0000 (16:15 +0530)]
Merge pull request #55299 from neesingh-rh/wip-64097-quincy

quincy: src/mount: kernel mount command returning misleading error message

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agoMerge pull request #54465 from lxbsz/wip-63274
Venky Shankar [Tue, 26 Mar 2024 10:45:00 +0000 (16:15 +0530)]
Merge pull request #54465 from lxbsz/wip-63274

quincy: client: queue a delay cap flushing if there are ditry caps/snapcaps

Reviewed-by: Venky Shankar <vshankar@redhat.com>
15 months agoMerge pull request #56441 from rhcs-dashboard/wip-65101-quincy
Nizamudeen A [Tue, 26 Mar 2024 09:28:04 +0000 (14:58 +0530)]
Merge pull request #56441 from rhcs-dashboard/wip-65101-quincy

quincy: mgr/dashboard: rm warning/error threshold for cpu usage

Reviewed-by: afreen23 <NOT@FOUND>
15 months agodoc/start: improve MDS explanation 56467/head
Zac Dover [Sun, 24 Mar 2024 21:19:24 +0000 (07:19 +1000)]
doc/start: improve MDS explanation

Improve the explanation of MDS as requested by Anthony D'Atri here:

https://github.com/ceph/ceph/pull/56367#discussion_r1536667249

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit e7eff3cf8738ddd378c2fd70075ac61dbac3cf55)

15 months agomgr/dashboard: rm warning/error threshold for cpu usage 56441/head
Nizamudeen A [Tue, 19 Mar 2024 14:57:13 +0000 (20:27 +0530)]
mgr/dashboard: rm warning/error threshold for cpu usage

for multi-core cpu's the value can be more than 100% so it doesn't make
sense to show warning/error when the usage is at or more than 100%.
hence removing it

Fixes: https://tracker.ceph.com/issues/58838
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 131a70754a6bfbbb2d1481ba74436953c6ecc226)

 Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.html
  - some changes are not in quincy for the threasholds. so adapting it

15 months agoMerge pull request #56427 from zdover23/wip-doc-2024-08-24-backport-56367-to-quincy
Anthony D'Atri [Sun, 24 Mar 2024 13:27:49 +0000 (09:27 -0400)]
Merge pull request #56427 from zdover23/wip-doc-2024-08-24-backport-56367-to-quincy

quincy: doc/start: improve MDS explanation

15 months agomon/OSDMonitor: unify remove_pool_snap callers 56430/head
Matan Breizman [Sun, 3 Mar 2024 13:43:10 +0000 (13:43 +0000)]
mon/OSDMonitor: unify remove_pool_snap callers

No changes in behavior.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 70c1d79d1d0f52cd65541f59cedb00e39cba3f76)

15 months agomon/OSDMonitor: fix rmsnap command
Matan Breizman [Thu, 29 Feb 2024 14:46:31 +0000 (14:46 +0000)]
mon/OSDMonitor: fix rmsnap command

```
There are 2 ways to remove pool snaps, rados tool or mon command (ceph osd pool rmsnap).
It seems that the monitor command is not reporting the actual removal via new_removed_snaps which is later proceed in OSDMap::apply_incremental.
This will result in a clone object leakage since the snap id won't be marked as purged (and won't be trimmed).
```

Fixes: https://tracker.ceph.com/issues/64646
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit f19ad233025957964559410e6697aa8a2a024bc1)

15 months agoMerge pull request #56411 from zdover23/wip-doc-2024-03-23-backport-56377-to-quincy
Zac Dover [Sun, 24 Mar 2024 07:32:25 +0000 (17:32 +1000)]
Merge pull request #56411 from zdover23/wip-doc-2024-03-23-backport-56377-to-quincy

quincy: doc/start: link to mon map command

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
15 months agodoc/start: improve MDS explanation 56427/head
Zac Dover [Thu, 21 Mar 2024 12:48:10 +0000 (22:48 +1000)]
doc/start: improve MDS explanation

Remove a prolix "on behalf of" and streamline some sentences explaining
the benefits of MDS.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 2da1812a1de7e32395cb95c2e0ebeea689c1b810)

15 months agodoc/start: link to mon map command 56411/head
Zac Dover [Thu, 21 Mar 2024 22:12:16 +0000 (08:12 +1000)]
doc/start: link to mon map command

Link to the "ceph mon stat" command when "Intro to Ceph" document first
mentions Monitor Maps.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 5d300db825316db25706111bbe577d41d41ab4b3)