]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agomgr/dashboard:include compression stats on pool dashboard 40715/head
Paul Cuzner [Thu, 8 Apr 2021 04:43:22 +0000 (16:43 +1200)]
mgr/dashboard:include compression stats on pool dashboard

This is a replacement dashboard configuration for the
pool overview page. It provides a cluster wide view of
capacity consumed and compression effectiveness, and
breaks this down by each pool within the configuration.

Fixes: https://tracker.ceph.com/issues/50226
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
4 years agoMerge PR #40603 into master
Sage Weil [Tue, 6 Apr 2021 21:28:08 +0000 (17:28 -0400)]
Merge PR #40603 into master

* refs/pull/40603/head:
qa/tasks/ceph.conf: shorten cephx TTL for testing

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
4 years agoMerge pull request #40190 from cbodley/wip-qa-rgw-sigv4-warnings
Casey Bodley [Tue, 6 Apr 2021 20:08:28 +0000 (16:08 -0400)]
Merge pull request #40190 from cbodley/wip-qa-rgw-sigv4-warnings

rgw: silence some unused variable warnings

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
4 years agoMerge PR #40602 into master
Sage Weil [Tue, 6 Apr 2021 20:04:27 +0000 (16:04 -0400)]
Merge PR #40602 into master

* refs/pull/40602/head:
qa/tasks/cephadm: add apply() method/task

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agoMerge PR #40597 into master
Sage Weil [Tue, 6 Apr 2021 20:04:17 +0000 (16:04 -0400)]
Merge PR #40597 into master

* refs/pull/40597/head:
cephadm: pass '-i' to docker|podman run for shell|enter

Reviewed-by: Adam King <adking@redhat.com>
4 years agoMerge pull request #40553 from dang/wip-dang-zipper-list
J. Eric Ivancich [Tue, 6 Apr 2021 17:49:35 +0000 (13:49 -0400)]
Merge pull request #40553 from dang/wip-dang-zipper-list

RGW Zipper - Make sure bucket list progresses

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
4 years agoMerge PR #39939 into master
Patrick Donnelly [Tue, 6 Apr 2021 17:46:23 +0000 (10:46 -0700)]
Merge PR #39939 into master

* refs/pull/39939/head:
cephfs: ceph-dokan - properly log the mounted root
cephfs: Update ceph-dokan "--removable" flag
cephfs: document using multiple fs on Windows
cephfs: provide additional volume details on Windows
cephfs: add ceph-dokan unmap command

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #40418 into master
Patrick Donnelly [Tue, 6 Apr 2021 17:45:00 +0000 (10:45 -0700)]
Merge PR #40418 into master

* refs/pull/40418/head:
test: unmount when finished ino_release_cb
test: wait a time for inode release
qa: move ino_release_cb to libcephfs sub-suite
qa: simplify recall triggers for bug
qa: fix name for qa task referencing tracker issue

Reviewed-by: Jeff Layton <jlayton@redhat.com>
4 years agoMerge PR #40460 into master
Patrick Donnelly [Tue, 6 Apr 2021 17:43:54 +0000 (10:43 -0700)]
Merge PR #40460 into master

* refs/pull/40460/head:
client: only check pool permissions for regular files

Reviewed-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #40465 into master
Patrick Donnelly [Tue, 6 Apr 2021 17:43:12 +0000 (10:43 -0700)]
Merge PR #40465 into master

* refs/pull/40465/head:
test: bump up retries for `test_mirroring_init_failure_with_recovery` test
test: fix typo
test: disable mgr/mirroring for `test_mirroring_init_failure_with_recovery` test

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #40468 into master
Patrick Donnelly [Tue, 6 Apr 2021 17:42:42 +0000 (10:42 -0700)]
Merge PR #40468 into master

* refs/pull/40468/head:
mds/metrics: add one whitespace between metric type the metainfo

Reviewed-by: Varsha Rao <varao@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
4 years agoMerge PR #40469 into master
Patrick Donnelly [Tue, 6 Apr 2021 17:41:55 +0000 (10:41 -0700)]
Merge PR #40469 into master

* refs/pull/40469/head:
qa: check mounts attribute in ctx

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #40501 into master
Patrick Donnelly [Tue, 6 Apr 2021 17:41:07 +0000 (10:41 -0700)]
Merge PR #40501 into master

* refs/pull/40501/head:
client: fix the opened inodes counter increasing

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #40113 from yuvalif/wip-yuval-fix-49799
Yuval Lifshitz [Tue, 6 Apr 2021 16:45:57 +0000 (19:45 +0300)]
Merge pull request #40113 from yuvalif/wip-yuval-fix-49799

rgw/notification: set correct type to "post" and "copy" notifications

4 years agoMerge PR #40620 into master
Patrick Donnelly [Tue, 6 Apr 2021 15:25:49 +0000 (08:25 -0700)]
Merge PR #40620 into master

* refs/pull/40620/head:
cephfs-top: fix typo in help

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #40613 into master
Patrick Donnelly [Tue, 6 Apr 2021 15:24:59 +0000 (08:24 -0700)]
Merge PR #40613 into master

* refs/pull/40613/head:
doc/cephfs/nfs: add user id, fs name and key to FSAL block

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #40616 from rhcs-dashboard/fix-50044-master
Ernesto Puerta [Tue, 6 Apr 2021 14:33:24 +0000 (16:33 +0200)]
Merge pull request #40616 from rhcs-dashboard/fix-50044-master

mgr/dashboard: debug nodeenv hangs

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: David Galloway <dgallowa@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40615 from tchaikov/wip-doc-header-css
Kefu Chai [Tue, 6 Apr 2021 14:04:54 +0000 (22:04 +0800)]
Merge pull request #40615 from tchaikov/wip-doc-header-css

doc/_themes: fix the styling of section header

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agodoc/_themes: fix the styling of section header and list items 40615/head
Kefu Chai [Tue, 6 Apr 2021 11:30:28 +0000 (19:30 +0800)]
doc/_themes: fix the styling of section header and list items

in the latest document generated from RtD, the section headers are now
in <section> tags instead of <div class="section">, so update the css
accordingly.

also tweak the style of the list items in unordered list to be the same
as it was.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40587 from tchaikov/wip-addr-parse-cleanup
Kefu Chai [Tue, 6 Apr 2021 12:47:17 +0000 (20:47 +0800)]
Merge pull request #40587 from tchaikov/wip-addr-parse-cleanup

src: use entity_addr_t::parse(string_view) when possible

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agomgr/dashboard: debug nodeenv hangs 40616/head
Ernesto Puerta [Tue, 6 Apr 2021 11:45:15 +0000 (13:45 +0200)]
mgr/dashboard: debug nodeenv hangs

Increase verbosity in nodeenv command for debugging purposes.

Fixes: https://tracker.ceph.com/issues/50044
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
4 years agodoc/cephfs/nfs: add user id, fs name and key to FSAL block 40613/head
Varsha Rao [Tue, 6 Apr 2021 10:06:45 +0000 (15:36 +0530)]
doc/cephfs/nfs: add user id, fs name and key to FSAL block

Fixes: https://tracker.ceph.com/issues/50161
Signed-off-by: Varsha Rao <varao@redhat.com>
4 years agorgw/notification: set correct type to "post" and "copy" notifications 40113/head
Yuval Lifshitz [Mon, 15 Mar 2021 11:07:39 +0000 (13:07 +0200)]
rgw/notification: set correct type to "post" and "copy" notifications

Fixes: https://tracker.ceph.com/issues/49799
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
4 years agocephfs-top: fix typo in help 40620/head
Jos Collin [Tue, 6 Apr 2021 06:20:21 +0000 (11:50 +0530)]
cephfs-top: fix typo in help

Signed-off-by: Jos Collin <jcollin@redhat.com>
4 years agoMerge pull request #40582 from a16bitsysop/32bit
Kefu Chai [Tue, 6 Apr 2021 06:35:18 +0000 (14:35 +0800)]
Merge pull request #40582 from a16bitsysop/32bit

src/common/buffer.cc: change cast to static_cast

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40578 from tchaikov/wip-cmake-pmem
Kefu Chai [Tue, 6 Apr 2021 06:31:51 +0000 (14:31 +0800)]
Merge pull request #40578 from tchaikov/wip-cmake-pmem

cmake: require libpmem 1.7 and cleanups

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agoMerge pull request #40572 from athanatos/sjust/wip-48613
Kefu Chai [Tue, 6 Apr 2021 06:30:20 +0000 (14:30 +0800)]
Merge pull request #40572 from athanatos/sjust/wip-48613

osd/PeeringState: fix acting_set_writeable min_size check

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #40475 from tchaikov/wip-qa-focal
Kefu Chai [Tue, 6 Apr 2021 06:28:42 +0000 (14:28 +0800)]
Merge pull request #40475 from tchaikov/wip-qa-focal

qa/tests: replaced ubuntu_latest.yaml with ubuntu 20.04

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
4 years agoMerge pull request #40591 from tchaikov/wip-dencoder
Kefu Chai [Tue, 6 Apr 2021 02:31:07 +0000 (10:31 +0800)]
Merge pull request #40591 from tchaikov/wip-dencoder

tools/ceph-dencoder: link against libtcmalloc

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Sage Weil <sage@redhat.com>
4 years agoosd/PeeringState: fix acting_set_writeable min_size check 40572/head
Samuel Just [Fri, 2 Apr 2021 22:30:54 +0000 (22:30 +0000)]
osd/PeeringState: fix acting_set_writeable min_size check

acting.size() >= pool.info.min_size is meant to check min_size against
acting set participants, but acting is a vector with placeholders.
actingset is the representation with placeholders removed.

The upshot of this bug is that the activation process will basically
ignore min_size for an ec pool allowing writes in cases where it
shouldn't.  PastIntervals::check_new_interval, however, performs
the check correctly, and will therefore discount intervals in which
we really did serve writes as not writeable.  This can trigger many
different problem conditions including but not limited to:
  - Unfound objects due to accepting a last_update with insufficient
    osds
  - Lost writes
  - Crashes due to peering rules being violated

This bug was originally introduced with recovery below min_size in
e5a96fd, and then preserved through refactors in 749a13d and 95bec9.

7cb818a exposed it with with expansion of recovery below min_size
to include ec pools (acting.size() is sufficient for replicated
pools).

Fixes: https://tracker.ceph.com/issues/48613
Fixes: https://tracker.ceph.com/issues/48417
Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agoMerge PR #40599 into master
Sage Weil [Mon, 5 Apr 2021 20:50:23 +0000 (16:50 -0400)]
Merge PR #40599 into master

* refs/pull/40599/head:
rpm: add missing % in %dir directive

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40598 from TRYTOBE8TME/wip-rgw-kafka-tests-fix
Yuval Lifshitz [Mon, 5 Apr 2021 18:30:40 +0000 (21:30 +0300)]
Merge pull request #40598 from TRYTOBE8TME/wip-rgw-kafka-tests-fix

src/rgw: Issue #50138 fix

4 years agoqa/tasks/ceph.conf: shorten cephx TTL for testing 40603/head
Sage Weil [Mon, 5 Apr 2021 18:08:30 +0000 (13:08 -0500)]
qa/tasks/ceph.conf: shorten cephx TTL for testing

Rotate tickets frequently to exercise those code paths during testing.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge PR #40025 into master
Sage Weil [Mon, 5 Apr 2021 18:14:31 +0000 (14:14 -0400)]
Merge PR #40025 into master

* refs/pull/40025/head:
cephadm: use split cgroup strategy for podman
cephadm: use class to represent container engine

Reviewed-by: Adam King <adking@redhat.com>
4 years agoMerge PR #40459 into master
Sage Weil [Mon, 5 Apr 2021 18:14:22 +0000 (14:14 -0400)]
Merge PR #40459 into master

* refs/pull/40459/head:
mgr/cephadm: don't cleanup the daemon keyring on failed redeploy

Reviewed-by: Adam King <adking@redhat.com>
4 years agoMerge PR #40508 into master
Sage Weil [Mon, 5 Apr 2021 18:14:12 +0000 (14:14 -0400)]
Merge PR #40508 into master

* refs/pull/40508/head:
mgr/cephadm: fix orch host add with multiple labels and no addr

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agoqa/tasks/cephadm: add apply() method/task 40602/head
Sage Weil [Thu, 1 Apr 2021 20:37:13 +0000 (15:37 -0500)]
qa/tasks/cephadm: add apply() method/task

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agorgw/test: stop kafka consumer if tests fails 40598/head
root [Mon, 5 Apr 2021 10:52:25 +0000 (16:22 +0530)]
rgw/test: stop kafka consumer if tests fails

This PR fixes https://tracker.ceph.com/issues/50138 by stopping the kafka consumer if the test fails.

Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
4 years agorpm: add missing % in %dir directive 40599/head
Nathan Cutler [Mon, 5 Apr 2021 15:21:22 +0000 (17:21 +0200)]
rpm: add missing % in %dir directive

de6c8250a6d91403e6d334aeb901bf9720ba40eb added an explicit %dir directive for
a new directory added to the ceph-common package, but -- due to a typo --
neglected to include the "%". As a result, RPM builds started to fail with:

Processing files: ceph-common-17.0.0-2787.gde6c8250.el8.x86_64
error: File must begin with "/": {_libdir}/ceph/denc/

RPM build errors:
    File must begin with "/": {_libdir}/ceph/denc/

Fixes: de6c8250a6d91403e6d334aeb901bf9720ba40eb
Signed-off-by: Nathan Cutler <ncutler@suse.com>
4 years agoMerge pull request #40584 from smithfarm/wip-denc-fix
Kefu Chai [Mon, 5 Apr 2021 15:09:14 +0000 (23:09 +0800)]
Merge pull request #40584 from smithfarm/wip-denc-fix

rpm: make ceph-common own the new denc directory

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40585 from yuvalif/wip-yuval-fix-50135
Yuval Lifshitz [Mon, 5 Apr 2021 15:04:00 +0000 (18:04 +0300)]
Merge pull request #40585 from yuvalif/wip-yuval-fix-50135

rgw/multisite: handle case when empty marker is provided

4 years agoMerge pull request #39738 from SMIL-Infra/journald
Kefu Chai [Mon, 5 Apr 2021 15:01:27 +0000 (23:01 +0800)]
Merge pull request #39738 from SMIL-Infra/journald

common: enable log to journald

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agocephadm: pass '-i' to docker|podman run for shell|enter 40597/head
Sage Weil [Mon, 5 Apr 2021 14:48:07 +0000 (09:48 -0500)]
cephadm: pass '-i' to docker|podman run for shell|enter

This allows us to pipe things to stdin.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #40579 from tchaikov/wip-mgr-typing
Kefu Chai [Mon, 5 Apr 2021 13:29:13 +0000 (21:29 +0800)]
Merge pull request #40579 from tchaikov/wip-mgr-typing

pybind/mgr/mgr_util: fix typing annotation

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agoMerge PR #40500 into master
Sage Weil [Mon, 5 Apr 2021 13:16:34 +0000 (09:16 -0400)]
Merge PR #40500 into master

* refs/pull/40500/head:
doc/cephadm: remove keepalived_user from haproxy docs

Reviewed-by: Juan Miguel Olmo <jolmomar@redhat.com>
Reviewed-by: Adam King <adking@redhat.com>
4 years agocmake: dedup components when finding pmem 40578/head
Kefu Chai [Sat, 3 Apr 2021 13:59:05 +0000 (21:59 +0800)]
cmake: dedup components when finding pmem

otherwise we always find libpmem twice if libpmem is explicitly
specified when find_package()

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: find pmem once instead twice
Kefu Chai [Sat, 3 Apr 2021 13:53:17 +0000 (21:53 +0800)]
cmake: find pmem once instead twice

less noise in cmake output

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agotools/ceph-dencoder: print human-readable error message 40591/head
Kefu Chai [Mon, 5 Apr 2021 08:28:11 +0000 (16:28 +0800)]
tools/ceph-dencoder: print human-readable error message

if $CEPH_LIB is not specified.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agotools/ceph-dencoder: link against libtcmalloc
Kefu Chai [Mon, 5 Apr 2021 08:14:10 +0000 (16:14 +0800)]
tools/ceph-dencoder: link against libtcmalloc

to address the failure like

src/tcmalloc.cc:332] Attempt to free invalid pointer 0x5627da496130
Aborted

we need to link and load libtcmalloc before it is loaded by a shared
library, otherwise the memory chunk allocated by libc will be freed
by tcmalloc after it is loaded.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agosrc: use entity_addr_t::parse(string_view) when possible 40587/head
Kefu Chai [Mon, 5 Apr 2021 03:11:03 +0000 (11:11 +0800)]
src: use entity_addr_t::parse(string_view) when possible

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomsg/msg_types: pass TYPE_DEFAULT as default_type to entity_addr_t::parse()
Kefu Chai [Mon, 5 Apr 2021 02:50:38 +0000 (10:50 +0800)]
msg/msg_types: pass TYPE_DEFAULT as default_type to entity_addr_t::parse()

TYPE_NONE equals to 0, and we use it for the default value of entity's
messenger protocol version, if it is not specified. but we always use
TYPE_DEFAULT for the protocol version if it's not specified in the
parsed string or the parameter.

so we can just simplify the logic by assigning it to `newtype`, and
assign the parse value to `new_type` for better readability.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomsg/msg_types: add a default_type param to entity_addr_t::parse()
Kefu Chai [Mon, 5 Apr 2021 02:49:22 +0000 (10:49 +0800)]
msg/msg_types: add a default_type param to entity_addr_t::parse()

so it can be used in more places.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agorgw/multisite: handle case when empty marker is provided 40585/head
Yuval Lifshitz [Sun, 4 Apr 2021 14:19:03 +0000 (17:19 +0300)]
rgw/multisite: handle case when empty marker is provided

marker is potional, however, it may also be provided empty

Fixes: https://tracker.ceph.com/issues/50135
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
4 years agoqa/tests: replaced ubuntu_latest.yaml with ubuntu 20.04 40475/head
Kefu Chai [Mon, 29 Mar 2021 16:06:16 +0000 (00:06 +0800)]
qa/tests: replaced ubuntu_latest.yaml with ubuntu 20.04

resurrect 835f2f5f511e7363f4056e5137382982aac1bfbf, which was reverted by
1f885b6c2fdde1f3ab249a56f7b4b763556f4373

so all tests for `pacific` will be tested on the latest ubuntu version

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agorpm: make ceph-common own the new denc directory 40584/head
Nathan Cutler [Sun, 4 Apr 2021 09:02:11 +0000 (11:02 +0200)]
rpm: make ceph-common own the new denc directory

2d3c6561b4ac1473a728e81c232d7dfe6fc0188c introduced a new library directory
"%{_libdir}/ceph/denc/" in ceph-common but did not explicitly state that it
should be owned by the package. This caused OBS builds to fail as follows:

[ 5515s] ceph-common-17.0.0-2786.1.x86_64.rpm: directories not owned by a package:
[ 5515s]  - /usr/lib64/ceph/denc

Fixes: 2d3c6561b4ac1473a728e81c232d7dfe6fc0188c
Signed-off-by: Nathan Cutler <ncutler@suse.com>
4 years agosrc/common/buffer.cc: change cast to static_cast in ceph::buffer::list::page_aligned_... 40582/head
Duncan Bellamy [Sat, 3 Apr 2021 11:25:40 +0000 (12:25 +0100)]
src/common/buffer.cc: change cast to static_cast in ceph::buffer::list::page_aligned_appender::_refill

part of fixing compilation on 32bit platforms

Signed-off-by: Duncan Bellamy <dunk@denkimushi.com>
4 years agopybind/mgr/mgr_util: fix typing annotation 40579/head
Kefu Chai [Sun, 4 Apr 2021 02:02:55 +0000 (10:02 +0800)]
pybind/mgr/mgr_util: fix typing annotation

and refactor lock_timeout_log() a little bit to drop `locked`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: require libpmem 1.7
Kefu Chai [Sat, 3 Apr 2021 13:32:36 +0000 (21:32 +0800)]
cmake: require libpmem 1.7

detect the libpmem libraries' version using pkg-config

please note, the version is not identical to the ones defined in
libpmem.h or libpmemobj/base.h

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: consolidate the find logic in Findpmem.cmake
Kefu Chai [Sat, 3 Apr 2021 12:57:41 +0000 (20:57 +0800)]
cmake: consolidate the find logic in Findpmem.cmake

less repeating this way

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40124 from adk3798/format-help
Kefu Chai [Sat, 3 Apr 2021 14:27:23 +0000 (22:27 +0800)]
Merge pull request #40124 from adk3798/format-help

pybind/ceph_argparse: print --format flag name in help descs

Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge pull request #40316 from batrick/i49605
Kefu Chai [Sat, 3 Apr 2021 14:24:22 +0000 (22:24 +0800)]
Merge pull request #40316 from batrick/i49605

pybind/mgr/volumes: avoid deadlock in ceph-mgr Finisher thread

Reviewed-by: Kotresh HR <khiremat@redhat.com>
4 years agoMerge pull request #40555 from jecluis/wip-cephadm-fix-apparmor.master
Kefu Chai [Sat, 3 Apr 2021 14:19:40 +0000 (22:19 +0800)]
Merge pull request #40555 from jecluis/wip-cephadm-fix-apparmor.master

cephadm: ignore apparmor if profiles file is empty

Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge pull request #38500 from pdvian/wip-print-weight
Kefu Chai [Sat, 3 Apr 2021 14:19:07 +0000 (22:19 +0800)]
Merge pull request #38500 from pdvian/wip-print-weight

crush/CrushCompiler: print weight with uniform precision

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38258 from badone/wip-tracker-48336-monmaptool-enforce-ip-better
Kefu Chai [Sat, 3 Apr 2021 14:18:06 +0000 (22:18 +0800)]
Merge pull request #38258 from badone/wip-tracker-48336-monmaptool-enforce-ip-better

monmaptool: Don't call set_port on an invalid address

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40518 from Rethan/fix-client-message-throttle-max
Kefu Chai [Sat, 3 Apr 2021 14:16:49 +0000 (22:16 +0800)]
Merge pull request #40518 from Rethan/fix-client-message-throttle-max

osd: allow osd_client_message_size throttle set to zero

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40444 from TheJJ/ensure-fsck-transactions
Kefu Chai [Sat, 3 Apr 2021 14:14:19 +0000 (22:14 +0800)]
Merge pull request #40444 from TheJJ/ensure-fsck-transactions

os/bluestore: ensure fsck repair transactions succeed

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agoMerge pull request #40457 from lihuibng/crush-bug
Kefu Chai [Sat, 3 Apr 2021 14:13:28 +0000 (22:13 +0800)]
Merge pull request #40457 from lihuibng/crush-bug

crush/CrushLocation: do not print logging message in constructor

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40488 from lxbsz/typo
Kefu Chai [Sat, 3 Apr 2021 14:12:59 +0000 (22:12 +0800)]
Merge pull request #40488 from lxbsz/typo

mgr: fix the desc typo for mds PyCFunction methods

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40168 from amathuria/wip-amathuria-fix-mon-trimming
Kefu Chai [Sat, 3 Apr 2021 14:12:26 +0000 (22:12 +0800)]
Merge pull request #40168 from amathuria/wip-amathuria-fix-mon-trimming

mon: Modifying trim logic to change paxos_service_trim_max dynamically

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40498 from guits/guits-quick_fix
Kefu Chai [Sat, 3 Apr 2021 14:11:50 +0000 (22:11 +0800)]
Merge pull request #40498 from guits/guits-quick_fix

cephadm: fix a typo

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Adam King <adking@redhat.com>
4 years agoMerge pull request #40538 from tchaikov/wip-msg-type-cleanup
Kefu Chai [Sat, 3 Apr 2021 14:10:12 +0000 (22:10 +0800)]
Merge pull request #40538 from tchaikov/wip-msg-type-cleanup

msg/msg_types: let ceph_entity_name::parse() accept string_view

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
4 years agoMerge pull request #40556 from liewegas/mon-no-config-indent
Kefu Chai [Sat, 3 Apr 2021 14:08:58 +0000 (22:08 +0800)]
Merge pull request #40556 from liewegas/mon-no-config-indent

mon/ConfigMonitor: do not indent 'config dump' output

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40574 from badone/wip-submanager-contatiner-failure-tracker-50118
Kefu Chai [Sat, 3 Apr 2021 14:02:47 +0000 (22:02 +0800)]
Merge pull request #40574 from badone/wip-submanager-contatiner-failure-tracker-50118

install-deps: Use dnf config-manager

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: use .pc for hints for finding pmem libraries
Kefu Chai [Sat, 3 Apr 2021 12:49:46 +0000 (20:49 +0800)]
cmake: use .pc for hints for finding pmem libraries

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoinstall-deps: Use dnf config-manager 40574/head
Brad Hubbard [Sat, 3 Apr 2021 06:56:42 +0000 (16:56 +1000)]
install-deps: Use dnf config-manager

Using subscription-manager will fail in a container so use dnf
config-manager which should work on bare metal as well as in a
container.

Fixes: https://tracker.ceph.com/issues/50118
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
4 years agomsg/msg_types: remove entity_name_t::parse(const char*...) 40538/head
Kefu Chai [Thu, 1 Apr 2021 04:39:49 +0000 (12:39 +0800)]
msg/msg_types: remove entity_name_t::parse(const char*...)

it can be replaced with entity_name_t::parse(string_view)

also refactor entity_name_t::parse(string_view) a little bit, to
embed the logic of `entity_name_t::parse(const char*...)` in it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40435 from tchaikov/wip-48893
Kefu Chai [Sat, 3 Apr 2021 03:13:45 +0000 (11:13 +0800)]
Merge pull request #40435 from tchaikov/wip-48893

common/pick_address: Allow binding on loopback iface

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agocommon/pick_address: Allow binding on loopback iface 40435/head
Kefu Chai [Fri, 26 Mar 2021 12:03:09 +0000 (20:03 +0800)]
common/pick_address: Allow binding on loopback iface

in 6147c0917157efd2d35610e759685656a4989abb, "lo" is also skipped when
daemon is trying to find an address to bind. but that change reverts the
fix of 201b59204374ebdab91bb554b986577a97b19c36, to address the problem.

an option named "ms_bind_exclude_lo_iface" is added, it defaults to
"true". but it can be changed to false to allow daemon to bind on "lo".

Fixes: https://tracker.ceph.com/issues/50012
Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocommon/pick_address: pass string by reference
Kefu Chai [Sat, 27 Mar 2021 02:03:02 +0000 (10:03 +0800)]
common/pick_address: pass string by reference

to silence warnings from clang-tidy.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocommon/pick_address: use scope_guard for freeifaddrs()
Kefu Chai [Fri, 26 Mar 2021 10:34:32 +0000 (18:34 +0800)]
common/pick_address: use scope_guard for freeifaddrs()

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocommon/pick_addr: refactor pick_address.cc and ipaddr.cc
Kefu Chai [Fri, 26 Mar 2021 10:23:35 +0000 (18:23 +0800)]
common/pick_addr: refactor pick_address.cc and ipaddr.cc

* do not replicate the same logic in IPv4 and IPv6 paths
* use helpers returning bool for filtering the candidate addresses
  for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocommon/pick_address: document find_ip_in_subnet_list()
Kefu Chai [Fri, 26 Mar 2021 07:36:21 +0000 (15:36 +0800)]
common/pick_address: document find_ip_in_subnet_list()

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoosd/PeeringState: fix get_backfill_priority min_size comparison
Samuel Just [Fri, 2 Apr 2021 23:06:14 +0000 (23:06 +0000)]
osd/PeeringState: fix get_backfill_priority min_size comparison

acting has placeholders for ec, need to use actingset.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #40531 from sseshasa/wip-mclock-config-ref-doc
zdover23 [Fri, 2 Apr 2021 20:06:26 +0000 (06:06 +1000)]
Merge pull request #40531 from sseshasa/wip-mclock-config-ref-doc

doc: Add mclock configuration reference documentation

Reviewed-by: Zac Dover <zac.dover@gmail.com>
4 years agoMerge pull request #40456 from wjwithagen/wjw-fix-boost-version
Kefu Chai [Fri, 2 Apr 2021 10:20:00 +0000 (18:20 +0800)]
Merge pull request #40456 from wjwithagen/wjw-fix-boost-version

cmake: bump the required boost version to 1.73

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40565 from tchaikov/wip-crimson-header-cleanup
Kefu Chai [Fri, 2 Apr 2021 10:06:32 +0000 (18:06 +0800)]
Merge pull request #40565 from tchaikov/wip-crimson-header-cleanup

crimson/osd: include headers at where they are used

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agocrimson/osd: include headers at where they are used 40565/head
Kefu Chai [Fri, 2 Apr 2021 09:17:08 +0000 (17:17 +0800)]
crimson/osd: include headers at where they are used

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40564 from tchaikov/wip-crimson-internal_client_request-lite
Kefu Chai [Fri, 2 Apr 2021 07:52:41 +0000 (15:52 +0800)]
Merge pull request #40564 from tchaikov/wip-crimson-internal_client_request-lite

crimson/osd: cleanups preparing for InternalClientRequest infrastructure.

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: pg_backend.h doesn't depend on pg.h anymore. 40564/head
Radoslaw Zarzynski [Mon, 29 Mar 2021 18:41:10 +0000 (18:41 +0000)]
crimson/osd: pg_backend.h doesn't depend on pg.h anymore.

It's not only unnecessary but it also causes a depedency hell.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: use obc->get_oid() instead of passing hobject_t around.
Radoslaw Zarzynski [Mon, 15 Mar 2021 19:24:27 +0000 (19:24 +0000)]
crimson/osd: use obc->get_oid() instead of passing hobject_t around.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/common: let error handlers to return errorated futures.
Radoslaw Zarzynski [Fri, 19 Mar 2021 14:10:12 +0000 (14:10 +0000)]
crimson/common: let error handlers to return errorated futures.

Before the change an error handler (a callable passed as second
or further parameters to `safe_then()`) was supposed to return
`seastar::future<..>` if it handled the errors or one of allowed
error types otherwise (like `crimson::ct_error::enoent`). Now
they may return also an erroratored future (`errator<ErrorT>::future<...>`)
and its error-set will fused with other sources of errors to be
included in errorator `safe_then()` returns.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: OpsExecuter::get_target() returns const reference now.
Radoslaw Zarzynski [Mon, 22 Mar 2021 16:11:03 +0000 (16:11 +0000)]
crimson/osd: OpsExecuter::get_target() returns const reference now.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/common: replace UTF-8 with ASCII in errorator's stateful_error_t.
Radoslaw Zarzynski [Fri, 19 Mar 2021 08:44:42 +0000 (08:44 +0000)]
crimson/common: replace UTF-8 with ASCII in errorator's stateful_error_t.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/common: stateful_error_t allows for void-taking handlers.
Radoslaw Zarzynski [Fri, 19 Mar 2021 08:31:33 +0000 (08:31 +0000)]
crimson/common: stateful_error_t allows for void-taking handlers.

Before this commit there was an inconsistencty between
`unthrowable_wrapper::handle()` and `stateful_error_t::handle()`
in the regard of parameters the provided handler had to accept.
The former was fine with void-taking handlers while the latter
was not.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: drop the never used ctors of osd_op_params_t.
Radoslaw Zarzynski [Sat, 20 Mar 2021 10:57:31 +0000 (10:57 +0000)]
crimson/osd: drop the never used ctors of osd_op_params_t.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: std::move func in pg::with_*_obc().
Radoslaw Zarzynski [Mon, 29 Mar 2021 16:21:14 +0000 (16:21 +0000)]
crimson/osd: std::move func in pg::with_*_obc().

Well, likely all the commit does is just appending a couple
of extra bytes. Though, strictly juding, a func should be
`std::move()`d before calling in those cases. Otherwise we
can miss e.g. the `operator() &&` overload.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: use the alias for OpsExecuter in PG::do_osd_ops().
Radoslaw Zarzynski [Thu, 18 Mar 2021 08:58:56 +0000 (08:58 +0000)]
crimson/osd: use the alias for OpsExecuter in PG::do_osd_ops().

It's already defined there. We've just missed this fact in
one place.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: fix a thinko in the comment about OpsExecuter.
Radoslaw Zarzynski [Thu, 18 Mar 2021 08:51:00 +0000 (08:51 +0000)]
crimson/osd: fix a thinko in the comment about OpsExecuter.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: drop ObjectContext::loaded as it's never read.
Radoslaw Zarzynski [Mon, 15 Mar 2021 19:32:10 +0000 (19:32 +0000)]
crimson/osd: drop ObjectContext::loaded as it's never read.

The `PG::with_obc*` machinery uses the `existed` marker
provided by the LRU cache subsystem.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #40533 from Seong-yeop/master
Kefu Chai [Fri, 2 Apr 2021 07:03:58 +0000 (15:03 +0800)]
Merge pull request #40533 from Seong-yeop/master

src/rgw/rgw_client_io.h: fix a typo

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