]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agodoc: update some docs still referring to make 40622/head
Patrick Donnelly [Tue, 6 Apr 2021 13:58:13 +0000 (06:58 -0700)]
doc: update some docs still referring to make

We use ninja now.

Signed-off-by: Patrick Donnelly <pdonnell@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 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 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 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 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 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 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 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 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 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 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 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>
4 years agomgr/cephadm: don't cleanup the daemon keyring on failed redeploy 40459/head
Melissa Li [Mon, 29 Mar 2021 04:34:42 +0000 (00:34 -0400)]
mgr/cephadm: don't cleanup the daemon keyring on failed redeploy

Fixes: https://tracker.ceph.com/issues/49872
Signed-off-by: Melissa Li <li.melissa.kun@gmail.com>
4 years agoMerge pull request #40540 from tchaikov/wip-stop.sh
Kefu Chai [Fri, 2 Apr 2021 02:17:05 +0000 (10:17 +0800)]
Merge pull request #40540 from tchaikov/wip-stop.sh

stop.sh: restructure stop logic

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #40454 from zdover23/wip-doc-cephadm-osd-remove-main-text-rewrite...
zdover23 [Thu, 1 Apr 2021 21:53:50 +0000 (07:53 +1000)]
Merge pull request #40454 from zdover23/wip-doc-cephadm-osd-remove-main-text-rewrite-2021-Mar-26

doc/cephadm: rewrite osd.rst "Remove an OSD"

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agomon/ConfigMonitor: do not indent 'config dump' output 40556/head
Sage Weil [Thu, 1 Apr 2021 19:22:07 +0000 (14:22 -0500)]
mon/ConfigMonitor: do not indent 'config dump' output

The indentation is misleading.  For example,

  mgr                                  advanced  mgr/telemetry/last_opt_revision       3                                                                                  *
  osd                                  advanced  osd_max_backfills                     10
  osd                                  basic     osd_memory_target                     6442450944
  osd                                  advanced  osd_scrub_auto_repair                 true
    mds.ar                             basic     mds_join_fs                           ar
    client.rgw.foo                     basic     rgw_frontends                         beast port=8080                                                                    *

The indentation kind of implies that mds.ar (or client.whatever) is
beneath 'osd', which it is not, and there rarely a 'client' scoped
option to make it look right.  Same problem for osd.foo etc.

Also, it is IMO easier to see the nesting structure when things align
naturally. e.g.

global
osd
osd.1
osd.2
mds
mds.foo
mds.foo.bar
client.foo.bar
...

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #39092 from adamemerson/wip-datalog-genbacking
Adam C. Emerson [Thu, 1 Apr 2021 19:16:01 +0000 (15:16 -0400)]
Merge pull request #39092 from adamemerson/wip-datalog-genbacking

rgw: Fixes and Improvements for Datalog

Reviewed-By: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-By: Casey Bodley <cbodley@redhat.com>
4 years agocephadm: ignore apparmor if profiles file is empty 40555/head
Joao Eduardo Luis [Wed, 31 Mar 2021 14:05:45 +0000 (14:05 +0000)]
cephadm: ignore apparmor if profiles file is empty

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
4 years agoMerge pull request #40548 from tchaikov/wip-doc-tweaks
Josh Durgin [Thu, 1 Apr 2021 17:19:23 +0000 (10:19 -0700)]
Merge pull request #40548 from tchaikov/wip-doc-tweaks

doc: tweak .admonition.important and command line block formatting tweaks

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agodoc/rbd: tweak the format of command line blocks 40548/head
Kefu Chai [Thu, 1 Apr 2021 16:44:32 +0000 (00:44 +0800)]
doc/rbd: tweak the format of command line blocks

to use the "prompt" directive for better rendering.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/_themes: tweak .admonition.important
Kefu Chai [Thu, 1 Apr 2021 16:01:37 +0000 (00:01 +0800)]
doc/_themes: tweak .admonition.important

do not render the links in "important" block in gray, it's not
readable in light red background. so use the blue and purple colors
specified by sphinx_rtd_theme.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #40524 into master
Patrick Donnelly [Thu, 1 Apr 2021 15:13:05 +0000 (08:13 -0700)]
Merge PR #40524 into master

* refs/pull/40524/head:
doc: document CephFS Snapshot Mirroring

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #40535 from tchaikov/wip-dashboard-pytest
Kefu Chai [Thu, 1 Apr 2021 14:58:04 +0000 (22:58 +0800)]
Merge pull request #40535 from tchaikov/wip-dashboard-pytest

pybind/mgr/dashboard: move pytest into requirements.txt

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agoMerge PR #40504 into master
Sage Weil [Thu, 1 Apr 2021 14:49:47 +0000 (10:49 -0400)]
Merge PR #40504 into master

* refs/pull/40504/head:
doc/security: no gpg keys yet
doc/security: restructure a bit
doc/security: add security section

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: João Eduardo Luís <joao@suse.de>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #40542 from tchaikov/wip-radosgw-admin-realm-rm
Casey Bodley [Thu, 1 Apr 2021 14:48:16 +0000 (10:48 -0400)]
Merge pull request #40542 from tchaikov/wip-radosgw-admin-realm-rm

rgw/rgw_admin: s/realm delete/realm rm/

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #40541 from tchaikov/wip-executable-without-shebang
Kefu Chai [Thu, 1 Apr 2021 14:47:43 +0000 (22:47 +0800)]
Merge pull request #40541 from tchaikov/wip-executable-without-shebang

os/bluestore: remove executable bit of source file

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agomsg/msg_types: move ceph_entity_name::parse() into .cc
Kefu Chai [Thu, 1 Apr 2021 04:36:00 +0000 (12:36 +0800)]
msg/msg_types: move ceph_entity_name::parse() into .cc

for faster compilation.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomsg/msg_types: let ceph_entity_name::parse() accept string_view
Kefu Chai [Thu, 1 Apr 2021 04:32:05 +0000 (12:32 +0800)]
msg/msg_types: let ceph_entity_name::parse() accept string_view

instead of accepting string, use string_view for the parsed string.

so the caller does not have to construct a temporary std::string object
for passing the string to be parsed.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40173 from rhcs-dashboard/fix-40676-master
Alfonso Martínez [Thu, 1 Apr 2021 14:28:14 +0000 (16:28 +0200)]
Merge pull request #40173 from rhcs-dashboard/fix-40676-master

mgr/dashboard: Warn the user when creating/editing pools without application tags

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agodoc/security: no gpg keys yet 40504/head
Sage Weil [Thu, 1 Apr 2021 14:24:12 +0000 (09:24 -0500)]
doc/security: no gpg keys yet

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #40397 from rhcs-dashboard/update-texts
Alfonso Martínez [Thu, 1 Apr 2021 14:18:01 +0000 (16:18 +0200)]
Merge pull request #40397 from rhcs-dashboard/update-texts

mgr/dashboard: Improve descriptions in some parts of the dashboard

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
4 years agodoc/security: restructure a bit
Sage Weil [Wed, 31 Mar 2021 16:57:31 +0000 (11:57 -0500)]
doc/security: restructure a bit

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agodoc/security: add security section
Sage Weil [Thu, 1 Apr 2021 14:14:12 +0000 (09:14 -0500)]
doc/security: add security section

- how to report an issue
- describe process for handling vulnerability
- list past issues

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge PR #40477 into master
Sage Weil [Thu, 1 Apr 2021 14:07:02 +0000 (10:07 -0400)]
Merge PR #40477 into master

* refs/pull/40477/head:
cephadm: fix failure when using --apply-spec and --shh-user

Reviewed-by: Adam King <adking@redhat.com>
4 years agoMerge PR #40463 into master
Sage Weil [Thu, 1 Apr 2021 14:06:41 +0000 (10:06 -0400)]
Merge PR #40463 into master

* refs/pull/40463/head:
cephadm: specify addr on bootstrap's host add

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge PR #40478 into master
Sage Weil [Thu, 1 Apr 2021 14:06:13 +0000 (10:06 -0400)]
Merge PR #40478 into master

* refs/pull/40478/head:
mgr/cephadm: don't have upgrade fail if "." in patch section of version

Reviewed-by: Guillaume Abrioux <gabrioux@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Juan Miguel Olmo <jolmomar@redhat.com>
4 years agodoc: document CephFS Snapshot Mirroring 40524/head
Venky Shankar [Wed, 31 Mar 2021 12:07:46 +0000 (08:07 -0400)]
doc: document CephFS Snapshot Mirroring

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 years agodoc: Add mclock configuration reference documentation 40531/head
Sridhar Seshasayee [Wed, 31 Mar 2021 21:40:01 +0000 (03:10 +0530)]
doc: Add mclock configuration reference documentation

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
4 years agoMerge PR #40530 into master
Sage Weil [Thu, 1 Apr 2021 12:22:10 +0000 (08:22 -0400)]
Merge PR #40530 into master

* refs/pull/40530/head:
doc/releases: reorg
doc/releases/releases.yaml: add missing releases
admin/build-doc: do not rebuild venv every time
doc/releases/releases.yaml: add 16.2.0
doc/releases: move 'active-releases' tag
doc/releases: add major headings for releases

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Zac Dover <zac.dover@gmail.com>
4 years agorgw/rgw_admin: s/realm delete/realm rm/ 40542/head
Kefu Chai [Thu, 1 Apr 2021 11:58:41 +0000 (19:58 +0800)]
rgw/rgw_admin: s/realm delete/realm rm/

it was an oversight of fa5398d31f9467b58a8b4eda55d1b5e2bbdb6500

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40451 from tchaikov/wip-dencoder-plugins
Kefu Chai [Thu, 1 Apr 2021 11:34:41 +0000 (19:34 +0800)]
Merge pull request #40451 from tchaikov/wip-dencoder-plugins

tools/ceph-dencoder: build dencoders as plugins

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
4 years agoos/bluestore: remove executable bit of source file 40541/head
Kefu Chai [Thu, 1 Apr 2021 11:32:15 +0000 (19:32 +0800)]
os/bluestore: remove executable bit of source file

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agostop.sh: extract maybe_kill() into a function 40540/head
Kefu Chai [Thu, 1 Apr 2021 11:13:54 +0000 (19:13 +0800)]
stop.sh: extract maybe_kill() into a function

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agostop.sh: restructure stop logic
Kefu Chai [Thu, 1 Apr 2021 09:53:00 +0000 (17:53 +0800)]
stop.sh: restructure stop logic

avoid using multiple loops for stopping daemons, and to move the
related logic to a single place for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agostop.sh: add editor variables
Kefu Chai [Thu, 1 Apr 2021 08:45:06 +0000 (16:45 +0800)]
stop.sh: add editor variables

to ensure that the editors understanding them can follow our coding
convention.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomgr/dashboard: Warn the user when creating/editing pools without application tags 40173/head
Waad Alkhoury [Thu, 1 Apr 2021 09:07:14 +0000 (11:07 +0200)]
mgr/dashboard: Warn the user when creating/editing pools without application tags

Added warning icon when no application tag is selected

Fixes: https://tracker.ceph.com/issues/40676
Signed-off-by: Waad Alkhoury <walkhour@redhat.com>
4 years agomgr/dashboard: Improve descriptions in some parts of the dashboard 40397/head
Nizamudeen A [Thu, 25 Mar 2021 08:07:34 +0000 (13:37 +0530)]
mgr/dashboard: Improve descriptions in some parts of the dashboard

Improves the description in some parts of the dashboard code.

Fixes: https://tracker.ceph.com/issues/49829
Fixes: https://tracker.ceph.com/issues/49969
Signed-off-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #39761 from aclamk/wip-stop-sh-less-kill
Kefu Chai [Thu, 1 Apr 2021 08:43:49 +0000 (16:43 +0800)]
Merge pull request #39761 from aclamk/wip-stop-sh-less-kill

stop.sh: prevent forced kill

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40348 from rhcs-dashboard/fix-49606-master
Alfonso Martínez [Thu, 1 Apr 2021 08:33:48 +0000 (10:33 +0200)]
Merge pull request #40348 from rhcs-dashboard/fix-49606-master

mgr/dashboard: improve telemetry opt-in reminder notification message

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Yaarit Hatuka <yaarithatuka@gmail.com>
4 years agotools/ceph-dencoder: build dencoders as plugins 40451/head
Kefu Chai [Sat, 27 Mar 2021 16:56:39 +0000 (00:56 +0800)]
tools/ceph-dencoder: build dencoders as plugins

to reduce the memory footprint when linking ceph-dencoder.

* src/tools/ceph-dencoder:
  * build dencoders as shared libraries named with the prefix of
    "den-mod-". so ceph-dencoder can find them
  * install dencoders into $prefix/lib/ceph/denc, so ceph-dencoder
    can find them
  * only expose "register_dencoders()" function from plugins.
  * load plugins in specified directory
* ceph.spec.in: package plugins
* debian: package plugins

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomonmaptool: Don't call set_port on an invalid address 38258/head
Brad Hubbard [Wed, 25 Nov 2020 01:57:37 +0000 (11:57 +1000)]
monmaptool: Don't call set_port on an invalid address

Verify we parse the entire address argument.

Fixes: https://tracker.ceph.com/issues/48336
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40519 from rhcs-dashboard/50077-vstart-runner-max-required-mgrs
Alfonso Martínez [Thu, 1 Apr 2021 06:30:50 +0000 (08:30 +0200)]
Merge pull request #40519 from rhcs-dashboard/50077-vstart-runner-max-required-mgrs

qa/tasks/vstart_runner.py: start max required mgrs

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: rishabh-d-dave <NOT@FOUND>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #40055 from yuvalif/wip-yuval-fix-49738
Yuval Lifshitz [Thu, 1 Apr 2021 04:30:07 +0000 (07:30 +0300)]
Merge pull request #40055 from yuvalif/wip-yuval-fix-49738

librgw/notifications: initialize kafka and amqp

4 years agopybind/mgr/dashboard: move pytest into requirements.txt 40535/head
Kefu Chai [Thu, 1 Apr 2021 03:05:19 +0000 (11:05 +0800)]
pybind/mgr/dashboard: move pytest into requirements.txt

before this change, pytest is included by both requirements-lint.txt
and requirements-test.txt. this fails the install-deps.sh script when
collecting the python package wheels:

ERROR: Double requirement given: pytest<4 (from -r requirements-test.txt (line 2)) (already in pytest (from -r requirements-lint.txt (line 12)), name='pytest')

also, since pytest is unconditionally imported in the source, for instance,
in pybind/mgr/dashboard/tests/test_ceph_service.py

it would be more straightforward just to include it in requirements.txt.

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