Commit Graph

122100 Commits

Author SHA1 Message Date
Kefu Chai
89121189ac cmake,install-deps,make-dist: use boost 1.75
so we can use the latest boost

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-04-05 15:09:29 +08:00
Kefu Chai
80d0c9f1d2 src: use entity_addr_t::parse(string_view) when possible
for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-04-05 12:33:04 +08:00
Kefu Chai
0b37c3b67a 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>
2021-04-05 12:33:01 +08:00
Kefu Chai
b9e72ffe3a 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>
2021-04-05 12:32:45 +08:00
Yuval Lifshitz
fccf75eee3 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>
2021-04-04 17:19:03 +03:00
Kefu Chai
55564dbd01 qa/tests: replaced ubuntu_latest.yaml with ubuntu 20.04
resurrect 835f2f5f51, which was reverted by
1f885b6c2f

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

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-04-04 21:15:05 +08:00
Duncan Bellamy
b266fc0202 tools/cephfs_mirror/PeerReplayer.cc: add missing include
alpine linux needs this include for compilation

Fixes: https://tracker.ceph.com/issues/50134
Signed-off-by: Duncan Bellamy <dunk@denkimushi.com>
2021-04-04 20:55:19 +08:00
Nathan Cutler
de6c8250a6 rpm: make ceph-common own the new denc directory
2d3c6561b4 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: 2d3c6561b4
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2021-04-04 11:02:11 +02:00
Duncan Bellamy
b45a6e957f 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>
2021-04-04 08:28:19 +01:00
Kefu Chai
5e1c42082e 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>
2021-04-04 10:02:58 +08:00
Ken Iizawa
b1a9f79d26 osd: add assertion
Fixes: https://tracker.ceph.com/issues/48182
Signed-off-by: Ken Iizawa <iizawa.ken@fujitsu.com>
2021-04-04 01:46:09 +09:00
Ken Iizawa
714fe1a7f2 osd: add initialization of member variables
Fixes: https://tracker.ceph.com/issues/48182
Signed-off-by: Ken Iizawa <iizawa.ken@fujitsu.com>
2021-04-04 01:46:09 +09:00
Ken Iizawa
55ea00a501 osd: fix not using specified pool name
Fixes: https://tracker.ceph.com/issues/48182
Signed-off-by: Ken Iizawa <iizawa.ken@fujitsu.com>
2021-04-04 01:46:09 +09:00
Ken Iizawa
5a71708cbd osd: add an object class to invoke remote reads along with a test to exercise it
Fixes: https://tracker.ceph.com/issues/48182
Signed-off-by: Ken Iizawa <iizawa.ken@fujitsu.com>
2021-04-04 01:42:47 +09:00
Kefu Chai
7e1ef0c0c9 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>
2021-04-03 23:59:32 +08:00
Kefu Chai
6dfc80737d cmake: consolidate the find logic in Findpmem.cmake
less repeating this way

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-04-03 23:58:53 +08:00
Kefu Chai
7fb0569ec3
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>
2021-04-03 22:27:23 +08:00
Kefu Chai
9541a97605
Merge pull request #40316 from batrick/i49605
pybind/mgr/volumes: avoid deadlock in ceph-mgr Finisher thread

Reviewed-by: Kotresh HR <khiremat@redhat.com>
2021-04-03 22:24:22 +08:00
Kefu Chai
9d00ec5bcc
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>
2021-04-03 22:19:40 +08:00
Kefu Chai
889d850ba6
Merge pull request #38500 from pdvian/wip-print-weight
crush/CrushCompiler: print weight with uniform precision

Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-04-03 22:19:07 +08:00
Kefu Chai
f5c859ea06
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>
2021-04-03 22:18:06 +08:00
Kefu Chai
cf868b7a1b
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>
2021-04-03 22:16:49 +08:00
Kefu Chai
a661556363
Merge pull request #40444 from TheJJ/ensure-fsck-transactions
os/bluestore: ensure fsck repair transactions succeed

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
2021-04-03 22:14:19 +08:00
Kefu Chai
e8fb63cf41
Merge pull request #40457 from lihuibng/crush-bug
crush/CrushLocation: do not print logging message in constructor

Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-04-03 22:13:28 +08:00
Kefu Chai
5468c31d29
Merge pull request #40488 from lxbsz/typo
mgr: fix the desc typo for mds PyCFunction methods

Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-04-03 22:12:59 +08:00
Kefu Chai
f26515fef7
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>
2021-04-03 22:12:26 +08:00
Kefu Chai
c644ae1446
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>
2021-04-03 22:11:50 +08:00
Kefu Chai
fdb92c3b5b
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>
2021-04-03 22:10:12 +08:00
Kefu Chai
185b0fd1d2
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>
2021-04-03 22:08:58 +08:00
Kefu Chai
9d4505eb5c
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>
2021-04-03 22:02:47 +08:00
Kefu Chai
bf56cddce5 cmake: use .pc for hints for finding pmem libraries
Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-04-03 22:00:17 +08:00
Ilya Dryomov
4027eb864e qa/suites/krbd: don't require CEPHX_V2 for unmap subsuite
Starting with pacific, CEPHX_V2 is required by default but
pre-single-major.yaml kernel doesn't support it.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2021-04-03 11:16:58 +02:00
Brad Hubbard
2e1ee019d2 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>
2021-04-03 16:57:50 +10:00
Kefu Chai
8c6b9e45c9 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>
2021-04-03 13:03:43 +08:00
Kefu Chai
af167c074c
Merge pull request #40435 from tchaikov/wip-48893
common/pick_address: Allow binding on loopback iface

Reviewed-by: Sage Weil <sage@redhat.com>
2021-04-03 11:13:45 +08:00
Kefu Chai
7f01d36a2c common/pick_address: Allow binding on loopback iface
in 6147c09171, "lo" is also skipped when
daemon is trying to find an address to bind. but that change reverts the
fix of 201b592043, 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>
2021-04-03 10:06:14 +08:00
Kefu Chai
6d0ed81f79 common/pick_address: pass string by reference
to silence warnings from clang-tidy.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-04-03 10:06:13 +08:00
Kefu Chai
c3c110b576 common/pick_address: use scope_guard for freeifaddrs()
for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-04-03 10:06:13 +08:00
Kefu Chai
52785d5a36 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>
2021-04-03 10:06:13 +08:00
Kefu Chai
b106ec0bbf common/pick_address: document find_ip_in_subnet_list()
Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-04-03 10:06:13 +08:00
Samuel Just
7b2e0f4fd1 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>
2021-04-02 23:09:40 +00:00
zdover23
21b55839a9
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>
2021-04-03 06:06:26 +10:00
Kefu Chai
0af1ddb00b
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>
2021-04-02 18:20:00 +08:00
Kefu Chai
8baaab85e9
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>
2021-04-02 18:06:32 +08:00
Kefu Chai
f3814d7a69 crimson/osd: include headers at where they are used
Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-04-02 17:17:38 +08:00
Kefu Chai
780c00f0c9
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>
2021-04-02 15:52:41 +08:00
Radoslaw Zarzynski
f384a5dc34 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>
2021-04-02 15:44:17 +08:00
Radoslaw Zarzynski
a8e05fc5a6 crimson/osd: use obc->get_oid() instead of passing hobject_t around.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2021-04-02 15:36:55 +08:00
Radoslaw Zarzynski
2b8076a7d5 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>
2021-04-02 15:32:31 +08:00
Radoslaw Zarzynski
076108c9c8 crimson/osd: OpsExecuter::get_target() returns const reference now.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2021-04-02 15:30:37 +08:00