]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agotest/librbd: s/RWLock/share_lock/ 39998/head
Kefu Chai [Wed, 10 Mar 2021 13:00:55 +0000 (21:00 +0800)]
test/librbd: s/RWLock/share_lock/

to consolidate the code base further, we don't need to use the
homebrewed shared lock unless the std::shared_mutex cannot fufill our
needs.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agorgw/rgw_common: silence Wsign-compare warning
Kefu Chai [Wed, 10 Mar 2021 11:24:12 +0000 (19:24 +0800)]
rgw/rgw_common: silence Wsign-compare warning

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agotest/librados_test_stub: do not include unused RWLock.h
Kefu Chai [Wed, 10 Mar 2021 11:23:04 +0000 (19:23 +0800)]
test/librados_test_stub: do not include unused RWLock.h

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agolibrbd,rbd_mirror: do not include RWLock.h unless it is used
Kefu Chai [Wed, 10 Mar 2021 11:22:23 +0000 (19:22 +0800)]
librbd,rbd_mirror: do not include RWLock.h unless it is used

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocommon: do not include RWLock.h unless it is used
Kefu Chai [Wed, 10 Mar 2021 11:21:40 +0000 (19:21 +0800)]
common: do not include RWLock.h unless it is used

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomgr: do not include RWLock.h unless it is used
Kefu Chai [Wed, 10 Mar 2021 11:20:43 +0000 (19:20 +0800)]
mgr: do not include RWLock.h unless it is used

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoos: do not include RWLock.h unless it is used
Kefu Chai [Wed, 10 Mar 2021 11:20:13 +0000 (19:20 +0800)]
os: do not include RWLock.h unless it is used

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agorgw: do not include RWLock.h unless RWLock is used
Kefu Chai [Wed, 10 Mar 2021 11:18:38 +0000 (19:18 +0800)]
rgw: do not include RWLock.h unless RWLock is used

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39828 from athanatos/sjust/wip-seastore-omap2
Kefu Chai [Wed, 10 Mar 2021 08:56:23 +0000 (16:56 +0800)]
Merge pull request #39828 from athanatos/sjust/wip-seastore-omap2

crimson/seastore: start wiring up collection_manager, omap_manager, onode_manager

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/.../staged-fltree/value.cc: return ValueDeltaRecorder for ONODE 39828/head
Samuel Just [Wed, 10 Mar 2021 07:25:54 +0000 (07:25 +0000)]
crimson/.../staged-fltree/value.cc: return ValueDeltaRecorder for ONODE

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/seastore/onode_tree: add FLTreeOnodeManager unittest
Samuel Just [Mon, 8 Mar 2021 20:38:01 +0000 (12:38 -0800)]
crimson/seastore/onode_tree: add FLTreeOnodeManager unittest

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/.../fltree_onode_manager: fill in delta recorder
Samuel Just [Tue, 9 Mar 2021 03:57:03 +0000 (19:57 -0800)]
crimson/os/seastore/.../fltree_onode_manager: fill in delta recorder

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/seastore.cc: wire up omap_manager
Samuel Just [Tue, 23 Feb 2021 05:20:58 +0000 (21:20 -0800)]
crimson/os/seastore/seastore.cc: wire up omap_manager

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/omap_manager: generalize omap_list to support lower_bound
Samuel Just [Tue, 2 Mar 2021 20:25:13 +0000 (12:25 -0800)]
crimson/os/seastore/omap_manager: generalize omap_list to support lower_bound

The iterator interface needs both lower and upper bound, generalize list()
to support both.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os: remove FuturizedStore::OmapIterator::tail_key
Samuel Just [Thu, 25 Feb 2021 05:45:21 +0000 (21:45 -0800)]
crimson/os: remove FuturizedStore::OmapIterator::tail_key

This doesn't actually make sense for FuturzizedStore implementations other
than BlueStore, and then only in a diagnostic capacity.  It also doesn't
have any actual users at the moment.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/onode_manager: remove create_ephemeral
Samuel Just [Thu, 21 Jan 2021 22:34:12 +0000 (14:34 -0800)]
crimson/os/seastore/onode_manager: remove create_ephemeral

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore: wire up FLTreeOnodeManager and FlatCollectionManager
Samuel Just [Thu, 11 Feb 2021 02:58:58 +0000 (18:58 -0800)]
crimson/os/seastore: wire up FLTreeOnodeManager and FlatCollectionManager

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/onode_manager: introduce FLTreeOnodeManager
Samuel Just [Tue, 2 Mar 2021 20:35:06 +0000 (12:35 -0800)]
crimson/os/seastore/onode_manager: introduce FLTreeOnodeManager

Adjusts OnodeManager interface and introduces FLTreeOnodeManager
implementation.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/onode_manager: remove simple-fltree
Samuel Just [Thu, 28 Jan 2021 23:57:59 +0000 (23:57 +0000)]
crimson/os/seastore/onode_manager: remove simple-fltree

Doesn't actually have a TransactionManager implementation, and
it needs substantial changes to adapt to changes in Onode.
We can resurrect it in the future if we want to.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #39982 from tchaikov/wip-doc-theme
Kefu Chai [Wed, 10 Mar 2021 04:55:49 +0000 (12:55 +0800)]
Merge pull request #39982 from tchaikov/wip-doc-theme

doc: fine tune the theme, fix formatting in mount.ceph

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agodoc/man/8/mount.ceph: fix the formatting 39982/head
Kefu Chai [Wed, 10 Mar 2021 04:23:35 +0000 (12:23 +0800)]
doc/man/8/mount.ceph: fix the formatting

* fix the indent of item
* add an empty line before code block

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/start: fix the link pointing to ceph doc
Kefu Chai [Wed, 10 Mar 2021 04:07:40 +0000 (12:07 +0800)]
doc/start: fix the link pointing to ceph doc

use https instead of http, the latter cannot be redirected to the valid
docs. also, we don't have "next" branch, so remove the document
mentioning it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/_themes: fine tune styling
Kefu Chai [Wed, 10 Mar 2021 03:08:47 +0000 (11:08 +0800)]
doc/_themes: fine tune styling

* fix the "dl" (definition list) display in manpage. before this
  change, if an item in dl is composed of strings with different fonts,
  it is cluttered into a single string. after this change, they are
  separated with proper spacing as before. see the "WORKLOAD" section in
  https://docs.ceph.com/en/latest/man/8/ceph-syn/ and
  https://docs.ceph.com/en/octopus/man/8/ceph-syn/
* reduce the spacing in "ul" (unordered list) in table. before
  this change, we have large spacing at end of a list in table. after
  this change, the spacing is reduced. see
  https://docs.ceph.com/en/latest/start/hardware-recommendations/#ram
  https://docs.ceph.com/en/octopus/start/hardware-recommendations/#ram
* increase the spacing between two "ul"s in table. see
  https://docs.ceph.com/en/latest/start/hardware-recommendations/#Processor
  https://docs.ceph.com/en/octopus/start/hardware-recommendations/#ram

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39981 from xxhdx1985126/wip-obc-tri_mutex-bug
Kefu Chai [Wed, 10 Mar 2021 03:43:36 +0000 (11:43 +0800)]
Merge pull request #39981 from xxhdx1985126/wip-obc-tri_mutex-bug

crimson/osd: fix two obc lock related bugs

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/common: use excl_lock_from_excl when promoting tri_mutex from excl to excl 39981/head
Xuehan Xu [Tue, 9 Mar 2021 03:06:26 +0000 (11:06 +0800)]
crimson/common: use excl_lock_from_excl when promoting tri_mutex from excl to excl

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agocrimson/osd: acquire locks strictly by OSDOp type
Xuehan Xu [Mon, 8 Mar 2021 07:51:49 +0000 (15:51 +0800)]
crimson/osd: acquire locks strictly by OSDOp type

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agoMerge pull request #39826 from tchaikov/wip-ninja
Kefu Chai [Wed, 10 Mar 2021 00:30:13 +0000 (08:30 +0800)]
Merge pull request #39826 from tchaikov/wip-ninja

run-make: switch over to ninja-build

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #39946 from TheJJ/fix-ceph-crash-caps
zdover23 [Tue, 9 Mar 2021 23:38:37 +0000 (09:38 +1000)]
Merge pull request #39946 from TheJJ/fix-ceph-crash-caps

doc/mgr/crash: explain needed crash upload permissions

Reviewed-by: Zac Dover <zac.dover@gmail.com>
4 years agoMerge PR #39955 into master
Sage Weil [Tue, 9 Mar 2021 22:32:59 +0000 (17:32 -0500)]
Merge PR #39955 into master

* refs/pull/39955/head:
mgr/cephadm: do not prime service cache on reconfig

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agoMerge PR #37711 into master
Patrick Donnelly [Tue, 9 Mar 2021 21:41:53 +0000 (13:41 -0800)]
Merge PR #37711 into master

* refs/pull/37711/head:
qa/cephfs: create class LocalCephFSMount
vstart_runner: reuse FuseMount methods in LocalFuseMount
vstart_runner: reuse KernelMount methods in LocalKernelMount
qa/cephfs: move common and generic methods mount.py
qa/cephfs: refactor FuseMount.mount method
qa/cephfs: refactor KernelMount.mount method

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #37945 into master
Patrick Donnelly [Tue, 9 Mar 2021 21:41:00 +0000 (13:41 -0800)]
Merge PR #37945 into master

* refs/pull/37945/head:
mds: add opened files/inodes and pinned i_caps metric payload support

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #39408 into master
Patrick Donnelly [Tue, 9 Mar 2021 21:40:09 +0000 (13:40 -0800)]
Merge PR #39408 into master

* refs/pull/39408/head:
test: add test for validating cephfs-mirror daemon service status
pybind/mirroring: interface to fetch mirror daemon status
cephfs-mirror: register mirror daemon with service manager
cephfs-mirror: remove unneeded json_spirit header

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #39502 into master
Patrick Donnelly [Tue, 9 Mar 2021 21:38:57 +0000 (13:38 -0800)]
Merge PR #39502 into master

* refs/pull/39502/head:
qa: add sleep for blocklisting to take effect

Reviewed-by: Rishabh Dave <ridave@redhat.com>
4 years agoMerge PR #39687 into master
Patrick Donnelly [Tue, 9 Mar 2021 21:37:35 +0000 (13:37 -0800)]
Merge PR #39687 into master

* refs/pull/39687/head:
tools/cephfs-shell: continue file listing even on error
tools/cephfs-shell: refactoring of code related listing
tools/cephfs-shell: fix listing of symbolic links

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #39814 into master
Patrick Donnelly [Tue, 9 Mar 2021 21:36:40 +0000 (13:36 -0800)]
Merge PR #39814 into master

* refs/pull/39814/head:
qa/cephfs: move is_blocklisted() to filesystem.CephCluster

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agomgr/cephadm: do not prime service cache on reconfig 39955/head
Sage Weil [Tue, 9 Mar 2021 18:15:20 +0000 (12:15 -0600)]
mgr/cephadm: do not prime service cache on reconfig

Ceph daemon reconfig does not need any daemon state refresh since we don't
do a restart--we just rewrite the ceph.conf.  This also avoids priming
our cache with a 'starting' state when the daemon wasn't touched.

Fixes: https://tracker.ceph.com/issues/49675
Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #39948 from tchaikov/wip-clang-tidy
Kefu Chai [Tue, 9 Mar 2021 17:25:14 +0000 (01:25 +0800)]
Merge pull request #39948 from tchaikov/wip-clang-tidy

crimson,common: cleanups inspired by clang-tidy

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson: pass by `const` or `const&` if possible 39948/head
Kefu Chai [Tue, 9 Mar 2021 14:30:56 +0000 (22:30 +0800)]
crimson: pass by `const` or `const&` if possible

more constness, and better performance.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39930 from zdover23/wip-doc-cephadm-convert-adoption-process...
zdover23 [Tue, 9 Mar 2021 14:43:07 +0000 (00:43 +1000)]
Merge pull request #39930 from zdover23/wip-doc-cephadm-convert-adoption-process-2021-Mar-09

doc/cephadm: rewrite "adoption process"

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agocrimson/mon: comment unused parameter
Kefu Chai [Tue, 9 Mar 2021 14:30:06 +0000 (22:30 +0800)]
crimson/mon: comment unused parameter

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson: do not rely on implicit conversion to bool
Kefu Chai [Tue, 9 Mar 2021 14:28:09 +0000 (22:28 +0800)]
crimson: do not rely on implicit conversion to bool

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson: use `auto*` instead of `auto` for pointer
Kefu Chai [Tue, 9 Mar 2021 14:26:23 +0000 (22:26 +0800)]
crimson: use `auto*` instead of `auto` for pointer

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/admin: use moved string for constructing vector<>
Kefu Chai [Tue, 9 Mar 2021 14:25:23 +0000 (22:25 +0800)]
crimson/admin: use moved string for constructing vector<>

it is the last consumer of cmdline, so move it away.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/admin: avoid using C-style cast
Kefu Chai [Tue, 9 Mar 2021 14:23:59 +0000 (22:23 +0800)]
crimson/admin: avoid using C-style cast

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocommon/str_list: remove unused "using"
Kefu Chai [Tue, 9 Mar 2021 14:22:57 +0000 (22:22 +0800)]
common/str_list: remove unused "using"

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/cephadm: rewrite "adoption process" 39930/head
Zac Dover [Mon, 8 Mar 2021 22:06:05 +0000 (08:06 +1000)]
doc/cephadm: rewrite "adoption process"

This rewrites the "Adoption Process" section
of the "Converting and Existing Cluster to
cephadm" chapter of the Cephadm guide.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
4 years agodoc/mgr/crash: explain needed crash upload permissions 39946/head
Jonas Jelten [Tue, 9 Mar 2021 13:10:52 +0000 (14:10 +0100)]
doc/mgr/crash: explain needed crash upload permissions

Signed-off-by: Jonas Jelten <jj@sft.lol>
4 years agocmake: silence "You are in 'detached HEAD' state" warning 39826/head
Kefu Chai [Thu, 4 Mar 2021 10:25:33 +0000 (18:25 +0800)]
cmake: silence "You are in 'detached HEAD' state" warning

git warns us when the repo is in 'detached HEAD' state, like:

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in
this state without impacting any branches by switching back to a branch.
...
Turn off this advice by setting config variable advice.detachedHead to
false

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agonasm-wrapper: use += for appending string to a variable
Kefu Chai [Thu, 4 Mar 2021 09:17:15 +0000 (17:17 +0800)]
nasm-wrapper: use += for appending string to a variable

less repeating, better readablity

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: do not pass "-fdiagnostics-color" to as
Kefu Chai [Thu, 4 Mar 2021 08:46:05 +0000 (16:46 +0800)]
cmake: do not pass "-fdiagnostics-color" to as

this option can be understood by GCC. see
https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Message-Formatting-Options.html

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agonasm-wrapper: swallow -MD option
Kefu Chai [Thu, 4 Mar 2021 08:06:51 +0000 (16:06 +0800)]
nasm-wrapper: swallow -MD option

see also

- https://discourse.cmake.org/t/cmake-generating-invalid-ninja-build-rules-for-asm/1389
- https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4460
- https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4838

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: define BUILD_BYPRODUCTS for Boost
Kefu Chai [Thu, 4 Mar 2021 07:46:42 +0000 (15:46 +0800)]
cmake: define BUILD_BYPRODUCTS for Boost

so if a cmake generator needs any one of them, it knowns how to build
it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: do not specify CMAKE_GENERATOR for external projects
Kefu Chai [Thu, 4 Mar 2021 08:20:16 +0000 (16:20 +0800)]
cmake: do not specify CMAKE_GENERATOR for external projects

as per CMake document,

> Without this option, the same generator as the main build will be
> used.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: use "" for no-op INSTALL_COMMAND
Kefu Chai [Thu, 4 Mar 2021 07:16:37 +0000 (15:16 +0800)]
cmake: use "" for no-op INSTALL_COMMAND

as suggested by CMake document, see
https://cmake.org/cmake/help/latest/module/ExternalProject.html

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: define BUILD_BYPRODUCTS for spdk-ext
Kefu Chai [Thu, 4 Mar 2021 07:04:13 +0000 (15:04 +0800)]
cmake: define BUILD_BYPRODUCTS for spdk-ext

so if a cmake generator needs any one of them, it knowns how to build
it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodo_cmake: always pass -DWITH_PYTHON3 to cmake
Kefu Chai [Thu, 4 Mar 2021 06:30:17 +0000 (14:30 +0800)]
do_cmake: always pass -DWITH_PYTHON3 to cmake

do not pretend that we support python2 anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodo_cmake,run-make: switch to ninja
Kefu Chai [Thu, 4 Mar 2021 06:28:00 +0000 (14:28 +0800)]
do_cmake,run-make: switch to ninja

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoceph.spec: prepare for out-of-source build
Kefu Chai [Thu, 4 Mar 2021 04:56:11 +0000 (12:56 +0800)]
ceph.spec: prepare for out-of-source build

see also
https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39226 from rhcs-dashboard/host-maintenance-feature
Ernesto Puerta [Tue, 9 Mar 2021 09:09:14 +0000 (10:09 +0100)]
Merge pull request #39226 from rhcs-dashboard/host-maintenance-feature

mgr/dashboard: Host Maintenance Feature

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #39909 from smithfarm/wip-revert-make-build-on-suse
Kefu Chai [Tue, 9 Mar 2021 08:58:58 +0000 (16:58 +0800)]
Merge pull request #39909 from smithfarm/wip-revert-make-build-on-suse

rpm: refrain from using %make_build macro on SUSE

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39936 from tchaikov/wip-workflow-use-known-sha1
Kefu Chai [Tue, 9 Mar 2021 06:09:45 +0000 (14:09 +0800)]
Merge pull request #39936 from tchaikov/wip-workflow-use-known-sha1

.github/workflows: use a released sha1

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years ago.github/workflows: use a released sha1 39936/head
Kefu Chai [Tue, 9 Mar 2021 04:16:26 +0000 (12:16 +0800)]
.github/workflows: use a released sha1

otherwise the action cannot be found

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39892 from tchaikov/wip-github-workflow-milestone
Kefu Chai [Mon, 8 Mar 2021 19:42:32 +0000 (03:42 +0800)]
Merge pull request #39892 from tchaikov/wip-github-workflow-milestone

.github: correct the regex in milestone workflow

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years ago.github/workflows: rename labeler.yml to pr-triage.yml 39892/head
Kefu Chai [Mon, 8 Mar 2021 18:46:46 +0000 (02:46 +0800)]
.github/workflows: rename labeler.yml to pr-triage.yml

to reflect the change in the actions in it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years ago.github/workflows: use @{sha1} for actions
Kefu Chai [Mon, 8 Mar 2021 18:26:34 +0000 (02:26 +0800)]
.github/workflows: use @{sha1} for actions

more secure this way. see also https://julienrenaux.fr/2019/12/20/github-actions-security-risk/

point the sha1 to

* labeler@v3
* milestone@main HEAD

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years ago.github/workflows: move milestone.yml into labeler.yml
Kefu Chai [Sun, 7 Mar 2021 11:21:25 +0000 (19:21 +0800)]
.github/workflows: move milestone.yml into labeler.yml

no need to have two actions triggered by the same event.

we could backport this labeler.yml to LTS branches.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39246 from rhcs-dashboard/fix-45415-master
Ernesto Puerta [Mon, 8 Mar 2021 16:17:49 +0000 (17:17 +0100)]
Merge pull request #39246 from rhcs-dashboard/fix-45415-master

mgr/dashboard: test prometheus rules through promtool

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: p-se <NOT@FOUND>
4 years agomgr/dashboard: Host Maintenance Feature 39226/head
Nizamudeen A [Tue, 2 Feb 2021 12:26:13 +0000 (17:56 +0530)]
mgr/dashboard: Host Maintenance Feature

In Cluster -> Hosts, I've added additional button to put the selected host on maintenance or exit out of the maintenance mode. Also for some hosts the ok-to-stop tests may trigger some warnings which requires a --force command to pass along with the maintenance enter command to enter a host into maintenance. In UI this is achieved using a confirmation Modal. In addition to this if the check error is It is NOT safe to stop the host then the host wont be able to put into maintenance mode.

Fixes: https://tracker.ceph.com/issues/49101
Signed-off-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #38605 from mdw-at-linuxbox/wip-master-transit
Casey Bodley [Mon, 8 Mar 2021 16:00:01 +0000 (11:00 -0500)]
Merge pull request #38605 from mdw-at-linuxbox/wip-master-transit

rgw: new vault transit logic for SSE-C

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #37536 from xxhdx1985126/wip-crimson-interruptible-future-final
Kefu Chai [Mon, 8 Mar 2021 15:07:55 +0000 (23:07 +0800)]
Merge pull request #37536 from xxhdx1985126/wip-crimson-interruptible-future-final

crimson: add continuation chain interruption capabilities

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39876 from dang/wip-dang-tempest
Daniel Gryniewicz [Mon, 8 Mar 2021 13:36:09 +0000 (08:36 -0500)]
Merge pull request #39876 from dang/wip-dang-tempest

RGW - Fix TempURL user handling

4 years agoMerge pull request #39476 from rhcs-dashboard/fix-host-label
Ernesto Puerta [Mon, 8 Mar 2021 13:29:12 +0000 (14:29 +0100)]
Merge pull request #39476 from rhcs-dashboard/fix-host-label

mgr/dashboard: fix PUT - /api/host/{hostname} while adding labels

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #39825 from mgfritch/cephadm-rgw-nfs-health
Sebastian Wagner [Mon, 8 Mar 2021 12:18:26 +0000 (13:18 +0100)]
Merge pull request #39825 from mgfritch/cephadm-rgw-nfs-health

mgr/cephadm: alias rgw-nfs -> nfs

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agoMerge pull request #38908 from smithfarm/wip-script-agpl3
Kefu Chai [Mon, 8 Mar 2021 12:02:03 +0000 (20:02 +0800)]
Merge pull request #38908 from smithfarm/wip-script-agpl3

COPYING: add entries for backport scripts

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #39593 from mychoxin/fix_promote_dead_loop
Kefu Chai [Mon, 8 Mar 2021 11:44:04 +0000 (19:44 +0800)]
Merge pull request #39593 from mychoxin/fix_promote_dead_loop

osd: avoid two copy with same src cancel each other

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agorpm: refrain from using %make_build macro on SUSE 39909/head
Nathan Cutler [Mon, 8 Mar 2021 10:14:56 +0000 (11:14 +0100)]
rpm: refrain from using %make_build macro on SUSE

The recently merged commit 0e511973f7b6b0e5dbb3c4caf98f1290f81829e9 replaced

    make %{_smp_mflags}

with

    %make_build

for the stated purpose of hiding the %_smp_mflags macro in a higher-level macro.

But, on SUSE, the higher-level macro (%make_build) expands to:

    make -O %{_smp_mflags}

The addition of the -O flag makes the build considerably slower and increases
the memory requirement. The exact reason for this is unknown - possibly it's due
to a bug in make, although the same slowness was observed with ninja as well.
In any event, this is a deal-breaker when building in the OBS, because the build
infrastructure there is optimized for builds that do not require huge amounts of
memory and we would rather have a fast build with mixed up compiler messages
than a very slow one with synced compiler messages.

Fixes: 0e511973f7b6b0e5dbb3c4caf98f1290f81829e9
Signed-off-by: Nathan Cutler <ncutler@suse.com>
4 years agoMerge pull request #39821 from dillaman/wip-qa-objectstore-logs
Kefu Chai [Mon, 8 Mar 2021 10:43:59 +0000 (18:43 +0800)]
Merge pull request #39821 from dillaman/wip-qa-objectstore-logs

qa: reduce debug log levels for bluestore

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #39900 from tchaikov/wip-crimson-watch
Kefu Chai [Mon, 8 Mar 2021 08:23:20 +0000 (16:23 +0800)]
Merge pull request #39900 from tchaikov/wip-crimson-watch

crimson/osd: cleanup Notify::send_completion()

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agomgr/dashboard:test prometheus rules through promtool 39246/head
Aashish Sharma [Wed, 3 Feb 2021 07:23:56 +0000 (12:53 +0530)]
mgr/dashboard:test prometheus rules through promtool

This PR intends to add unit testing for prometheus rules using promtool. To run the tests run 'run-promtool-unittests.sh' file.

Fixes: https://tracker.ceph.com/issues/45415
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
4 years agoMerge pull request #39729 from aclamk/wip-rocksdb-aware-bluefs-buffered-io
Kefu Chai [Sun, 7 Mar 2021 16:07:42 +0000 (00:07 +0800)]
Merge pull request #39729 from aclamk/wip-rocksdb-aware-bluefs-buffered-io

Allows RocksDB to distinguish between buffered/direct_io files

Reviewed-by: Mark Nelson <mnelson@redhat.com>
4 years agoMerge pull request #38997 from gerald-yang/patch-48946
Kefu Chai [Sun, 7 Mar 2021 15:54:06 +0000 (23:54 +0800)]
Merge pull request #38997 from gerald-yang/patch-48946

common: Fix assertion when disabling and re-enabling clog_to_monitors

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39775 from rishabh-d-dave/fs-qa-accept-cmds-as-str
Kefu Chai [Sun, 7 Mar 2021 15:52:54 +0000 (23:52 +0800)]
Merge pull request #39775 from rishabh-d-dave/fs-qa-accept-cmds-as-str

qa/ceph_manager: accepts commands as str too

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #39690 from rishabh-d-dave/qa-raw_cluster_cmd
Kefu Chai [Sun, 7 Mar 2021 15:51:05 +0000 (23:51 +0800)]
Merge pull request #39690 from rishabh-d-dave/qa-raw_cluster_cmd

qa/ceph_manger: fixes bugs in CephManager

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #39712 from tchaikov/wip-prometheus-ann
Kefu Chai [Sun, 7 Mar 2021 15:50:02 +0000 (23:50 +0800)]
Merge pull request #39712 from tchaikov/wip-prometheus-ann

mgr/prometheus: add type annotations

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
4 years agoMerge pull request #39740 from tchaikov/wip-pybind-rtype
Kefu Chai [Sun, 7 Mar 2021 15:48:06 +0000 (23:48 +0800)]
Merge pull request #39740 from tchaikov/wip-pybind-rtype

pybind/{rados,cephfs}: use type annotation for rtype docstring

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agocrimson/osd: add constness to Notify 39900/head
Kefu Chai [Sun, 7 Mar 2021 13:51:53 +0000 (21:51 +0800)]
crimson/osd: add constness to Notify

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: cleanup Notify::send_completion()
Kefu Chai [Sun, 7 Mar 2021 13:32:28 +0000 (21:32 +0800)]
crimson/osd: cleanup Notify::send_completion()

Notify::send_completion() should just send the completion message. so,
move irrelevant code out of Notify::send_completion().

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: differentiate Notify with and without watchers
Kefu Chai [Sun, 7 Mar 2021 13:23:54 +0000 (21:23 +0800)]
crimson/osd: differentiate Notify with and without watchers

we don't need to arm the timer, if there is no watchers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: factor out "maybe" from maybe_send_completion()
Kefu Chai [Sun, 7 Mar 2021 13:04:52 +0000 (21:04 +0800)]
crimson/osd: factor out "maybe" from maybe_send_completion()

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39896 from bolapara/patch-1
Kefu Chai [Sun, 7 Mar 2021 12:23:21 +0000 (20:23 +0800)]
Merge pull request #39896 from bolapara/patch-1

docs: Ubuntu uses 'apt' not 'dnf'

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39895 from tchaikov/wip-crimson-watch
Kefu Chai [Sun, 7 Mar 2021 11:18:05 +0000 (19:18 +0800)]
Merge pull request #39895 from tchaikov/wip-crimson-watch

crimson/osd: watch-notify related cleanups

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agodoc/cephadm: use 'apt' to install cephadm on Ubuntu 39896/head
Josh [Sun, 7 Mar 2021 03:59:46 +0000 (21:59 -0600)]
doc/cephadm: use 'apt' to install cephadm on Ubuntu

Adjusted so Ubuntu command uses 'apt' and added Fedora since that uses 'dnf'.

4 years agocrimson/common: deal with seastar::thread in interruptible_future 37536/head
Xuehan Xu [Tue, 10 Nov 2020 09:14:44 +0000 (17:14 +0800)]
crimson/common: deal with seastar::thread in interruptible_future

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agocrimson/test: add interruptible future unit test
Xuehan Xu [Tue, 20 Oct 2020 10:19:11 +0000 (18:19 +0800)]
crimson/test: add interruptible future unit test

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agocrimson/osd: use interruptible future in the PG layer
Xuehan Xu [Sun, 4 Oct 2020 09:51:59 +0000 (17:51 +0800)]
crimson/osd: use interruptible future in the PG layer

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agocrimson: add interruptible future facilities
Xuehan Xu [Sun, 4 Oct 2020 09:50:48 +0000 (17:50 +0800)]
crimson: add interruptible future facilities

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: no need to clear watchers beforehand 39895/head
Kefu Chai [Sun, 7 Mar 2021 02:55:35 +0000 (10:55 +0800)]
crimson/osd: no need to clear watchers beforehand

as long as we don't yield, we can assume the atomicity.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: use transparent comparator
Kefu Chai [Sun, 7 Mar 2021 02:47:20 +0000 (10:47 +0800)]
crimson/osd: use transparent comparator

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39879 from rzarzynski/wip-crimson-notify-timeout
Kefu Chai [Sun, 7 Mar 2021 01:44:12 +0000 (09:44 +0800)]
Merge pull request #39879 from rzarzynski/wip-crimson-notify-timeout

crimson/osd: implement timeout for notify propagation.

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years ago.github: correct the regex in mileston workflow
Kefu Chai [Sat, 6 Mar 2021 16:32:42 +0000 (00:32 +0800)]
.github: correct the regex in mileston workflow

also use pull_request_target event so the action is run in the
context of the base of the pull request. this helps us to overcome
the "Resource not accessible by integration" issue where the action
is run in the context of the pull request.

Signed-off-by: Kefu Chai <kchai@redhat.com>