Commit Graph

114583 Commits

Author SHA1 Message Date
Kefu Chai
2782ba21ab
Merge pull request #36879 from tchaikov/wip-doc-stable-release
doc: bump up sphinx to 3.2.1 and define "stable-release" global substitution

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-09-01 11:04:23 +08:00
Kefu Chai
8695ba49c4
Merge pull request #36897 from tchaikov/wip-cmake-asan
cmake: expose Sanitizers_COMPILE_OPTIONS as a list

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2020-09-01 10:36:02 +08:00
Kefu Chai
5238f9f62b doc: fix broken hyper link
and always reference multisite.rst using tha label not the file.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-09-01 09:53:18 +08:00
Kefu Chai
ca1cca0abc doc: fix broken hyper link
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-09-01 09:53:18 +08:00
Kefu Chai
45f43be813 doc: define label before section title
so we can see the title of section when following the link

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-09-01 09:53:18 +08:00
Kefu Chai
253fd22896 doc: add sphinx.ext.mathjax for math-to-MathML rendering
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-09-01 09:53:18 +08:00
Kefu Chai
84e2808afb doc: fix broken hyper link
this link was broken in 1427905c47

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-09-01 09:53:18 +08:00
Kefu Chai
fe07df9f19 doc: always refernce terms in case sensitive mode
to silence warning from sphinx like:

ceph/doc/install/ceph-deploy/quick-start-preflight.rst:5: WARNING: term node not found in case sensitive match.made a reference to Node instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-09-01 09:53:18 +08:00
Kefu Chai
4c53a02ac5 include/rados/librados.h: avoid redefinition of rados_object_list_item
doxygen complains at seeing rados_object_list_item gets defined twice.
so let's fix it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-09-01 09:53:17 +08:00
Kefu Chai
7ca85e77d0 doc: replace luminous with |stable-release|
"luminous" is a magic number in these contexts, and we should use a
constant for representing it.

the "sphinx_substitution_extensions" sphinx extension is introduced for
performing the global subsitution.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-09-01 09:53:17 +08:00
Kefu Chai
caa7baaafd
Merge pull request #36907 from yuvalif/fix-issue-47209
cmake: make crimson libraries static to prevent cmake error

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-09-01 09:48:33 +08:00
Patrick Donnelly
e4a37f6338
Merge PR #36089 into master
* refs/pull/36089/head:
	mds/OpenFileTable: add option that disables dirfrags prefetch
	mds: use parent/d_name in cap_reconnect_t to speedup MDCache::open_ino()
	client: encode inode's parent/d_name in cap_reconnect_t
	mds: explicitly track files with client writeable ranges
	mds: properly set CLIENTWRITEABLE flag for imported caps
	mds: in-place update projected inode's client ranges
	mds: only add inodes that clients want Frw or excl caps to open file table
	mds/OpenFileTable: reduce anchor map lookup during prefetch
	mds/OpenFileTable: merge dirfrag set into anchor map

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-08-31 15:18:03 -07:00
Patrick Donnelly
9c1ac27cf1
Merge PR #36887 into master
* refs/pull/36887/head:
	qa: ignore expected mds failover message

Reviewed-by: Jeff Layton <jlayton@redhat.com>
2020-08-31 13:23:57 -07:00
Patrick Donnelly
ea434e2b01
Merge PR #36846 into master
* refs/pull/36846/head:
	client: support getting ceph.dir.rsnaps vxattr
	messages: fix decode version for snap_btime

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-08-31 13:21:51 -07:00
Patrick Donnelly
628d9ae267
Merge PR #36777 into master
* refs/pull/36777/head:
	osdc/Journaler: do not call onsafe->complete() if onsafe is 0

Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-08-31 13:21:14 -07:00
Patrick Donnelly
3a6f9d15fe
Merge PR #36672 into master
* refs/pull/36672/head:
	client: handle readdir reply without Fs cap

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-08-31 13:19:22 -07:00
Patrick Donnelly
97444dce48
Merge PR #36631 into master
* refs/pull/36631/head:
	client: dump frag's repmap if dir_replicated is true

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-08-31 13:18:43 -07:00
Patrick Donnelly
ec751c2fe5
Merge PR #36885 into master
* refs/pull/36885/head:
	mon: ignore statfs requests on invalid poolid
	qa: test for statfs on deleted file system
	qa: move run_shell args to kwargs

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-08-31 13:05:41 -07:00
Vikhyat Umrao
54065da1c4
Merge pull request #36881 from mhackett/wip-mhackett-47189
doc: document tuning of object gateway garbage collection
2020-08-31 12:06:21 -07:00
ylifshit@redhat.com
6aa3538643 crimson/cmake: fix copy&paste error
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2020-08-31 19:32:54 +03:00
Yuval Lifshitz
652dbacc74 crimson/cmake: make libraries static to prevent cmake error
Fixes: https://tracker.ceph.com/issues/47209

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2020-08-31 19:22:40 +03:00
Kefu Chai
d1b89ba2dc
Merge pull request #36826 from agayev/fix-hmsmr-compilation
os/bluestore: Restore HM-SMR functionality on BlueStore

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-08-31 22:14:29 +08:00
Daniel Gryniewicz
ec13f4a72e
Merge pull request #34653 from clwluvw/bucket-stats
rgw: Add bucket name to bucket stats error logging
2020-08-31 10:02:20 -04:00
Kefu Chai
1ba1afdedd
Merge pull request #36857 from tchaikov/wip-crimson-conf
crimson/osd: support "dump_pgstate_history" command and update legacy conf vars

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2020-08-31 22:01:39 +08:00
Kefu Chai
7054f1403d crimson/osd: improve the const correctness
it should suffice to pass a `const OSD&` to the ctor of `OsdStatusHook`

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-31 21:18:13 +08:00
Kefu Chai
5de5e32bef crimson/osd: support "dump_pgstate_history" command
it is required by the "ceph_test_admin_socket_output" test.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-31 21:18:13 +08:00
Kefu Chai
2cc515a013 crimson/admin: make injected_args optional
this option for `injectargs` command is optional, so we should not
crash if it does not exist.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-31 21:15:10 +08:00
Kefu Chai
dc72cce00c crimson/common: do not check for experimental/filesystem anymore
seastar is only compatible with C++17 and C++20, so no need to check for
<experimental/filesystem> anymore. the C++ standard library should be
C++17 compatible.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-31 21:13:21 +08:00
Kefu Chai
615c5ca44b crimson/common: call config::update_legacy_vals()
so the legacy vals are populated with the changes received from conffile.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-31 21:13:13 +08:00
Kefu Chai
d7706993cb common/config: make update_legacy_vals() public
so crimson can call it in `ConfigProxy::parse_config_files()` after calling
`get_config().parse_buffer()`. so the legacy vals are populated with the
changes received from conffile.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-31 21:12:53 +08:00
Kefu Chai
7c941d611f
Merge pull request #36891 from tchaikov/wip-less-warnings
crimson/mon,common: replace #warning with // TODO

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2020-08-31 21:00:43 +08:00
Kefu Chai
6978f18609
Merge pull request #36892 from tchaikov/wip-crimson-cleanups
crimson/osd: return EAGAIN if !can_serve_replica_read() and cleanups

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2020-08-31 20:55:18 +08:00
Sebastian Wagner
a83ba2487d
Merge pull request #36905 from sebastian-philipp/cephadm-pep8-test-migration
mgr/cephadm: PEP8tify test_migration.py

Reviewed-by: Adam King <adking@redhat.com>
2020-08-31 14:12:30 +02:00
Sebastian Wagner
242264ca12
Merge pull request #36676 from matthewoliver/cephadm_orch_ipv6
cephadm: auto wrap and unwrap ipv6 addresses

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-31 13:34:02 +02:00
Kefu Chai
2890bbd8a7
Merge pull request #36896 from xxhdx1985126/wip-47133
crimson/pg: check acting set change before appending pglog

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-08-31 19:12:07 +08:00
Sebastian Wagner
fa49f09606 mgr/cephadm: PEP8tify test_migration.py
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-08-31 11:48:14 +02:00
Sebastian Wagner
03a9754855
Merge pull request #36877 from sebastian-philipp/mgr-module-fix-kwargs-cli-command
mgr/mgr_module.py: CLICommand: Fix parsing of kwargs arguments

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-08-31 11:14:59 +02:00
Laura Paduano
fa621c9d22
Merge pull request #36859 from tspmelo/wip-fix-onselect
mgr/dashboard: Fix stale table actions

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
2020-08-31 10:46:59 +02:00
Kefu Chai
fc6f35a840 cmake: expose Sanitizers_COMPILE_OPTIONS as a list
* cmake/modules/FindSanitizers.cmake: do not pollute CMAKE_REQUIRED_FLAGS
* cmake/modules/FindSanitizers.cmake: expose Sanitizers_COMPILE_OPTIONS
  as a list
* CMakeLists.txt: append Sanitizers_COMPILE_OPTIONS to
  *_LINKER_FLAGS after replacing ";" with " " in it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-31 16:11:33 +08:00
Mykola Golub
912f6fab28
Merge pull request #36839 from dillaman/wip-46875
librbd: flush all incomplete in-flight IOs upon image close

Reviewed-by: Mykola Golub <mgolub@suse.com>
2020-08-31 08:59:06 +03:00
Kefu Chai
9c4d179941
Merge pull request #36819 from vumrao/wip-vumrao-46663
mon/PGMap: add pg count for pools in the ceph df command

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-08-31 13:31:34 +08:00
Xuehan Xu
31418020fd crimson/pg: check acting set change before appending pglog
Fixes: https://tracker.ceph.com/issues/47133
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
2020-08-31 13:17:48 +08:00
Kefu Chai
568c460445
Merge pull request #33852 from rosinL/wip-fix-enqueue-dead-qp-deadlock
msg/async/rdma: avoid enqueue_dead_qp deadlock

Reviewed-by: Peng Liu <liupeng37@baidu.com>
2020-08-31 10:39:02 +08:00
Kefu Chai
90e5434905
Merge pull request #36767 from tchaikov/wip-47061
test/osd/RadosModel: check retval of read op

Reviewed-by: Samuel Just <sjust@redhat.com>
2020-08-30 23:21:32 +08:00
Kefu Chai
6767397d0b crimson/osd: return EAGAIN if !can_serve_replica_read()
it's necessary for serving balanced read.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-30 23:15:25 +08:00
Kefu Chai
f77072b551 crimson/osd: check for primary out side of is_misdirected()
so we can check can_serve_replica_read() without checking primary again.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-30 23:15:25 +08:00
Kefu Chai
c4992739f2 crimson/osd: encode OI with CEPH_FEATURES_ALL
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-30 23:15:25 +08:00
Kefu Chai
fadb26dc43 crimson/osd: use logger() instead of crimson::get_logger(...)
for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-30 23:15:25 +08:00
Kefu Chai
f16b628c9e crimson/osd: call PeeringState::get_peer_missing(peer)
as PeeringState::get_peer_missing(const pg_shard_t &peer) already checks
for the non-existent shard, and because `get_replica_recovery_order()`
never returns primary osd, it's safe to use
`PeeringState::get_peer_missing(peer)` instead of
`pg->get_peering_state().get_peer_missing().find(peer)`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-30 23:15:25 +08:00
Kefu Chai
ae74674aaf crimson/osd: eliminate a local variable
for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-08-30 23:15:25 +08:00