Commit Graph

96344 Commits

Author SHA1 Message Date
Yingxin Cheng
e8ef8f2ce1 crimson/net: use entity_addrvec_t::front() inside messenger
Do not expect legacy-addr in order to bind v2 address.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-04-05 11:21:18 +08:00
Yingxin Cheng
5779e4119a crimson/net: added msgr2 setting for SocketConnection
Provide entrypoint for the future ProtocolV2 class.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-04-05 11:21:18 +08:00
Yingxin Cheng
32ad076ceb crimson/net: implement factory method of Socket
Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-04-05 11:21:18 +08:00
Yingxin Cheng
9282d1a5d2 crimson/net: introduce SocketFRef
Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-04-05 10:48:50 +08:00
Yingxin Cheng
2ab8b741d3 crimson/net: introduce protocol-level abstraction
Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-04-05 10:48:50 +08:00
Yingxin Cheng
a1ed20810b crimson/net: batch messages instead of chaining futures
Instead of chaining writes with send_ready, connection will batch
messages in out_q, and will reap them by write_events() in the open
state.

The performance of pingpong is 3.7 times better from observation.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-03-22 14:52:23 +08:00
Yingxin Cheng
55a76b4864 crimson/net: centralized write_event()
* introduce write_state_t to decouple write behaviors from states.
* replace `h.promise` with `state_changed`, with a more general way to
  change write behaviors according to state switches.
* centralize write_event() to dispatch writes in the open state.
* friendly interface for v1/v2 protocol abstraction.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
2019-03-22 14:52:23 +08:00
Sage Weil
2ea299b640 Merge PR #27044 into master
* refs/pull/27044/head:
	common: add bool log_to_file option

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2019-03-21 12:04:59 -05:00
Sage Weil
f89273f828 Merge PR #27048 into master
* refs/pull/27048/head:
	doc: add changelog for nautilus

Reviewed-by: Sage Weil <sage@redhat.com>
2019-03-21 11:48:29 -05:00
Kefu Chai
a13a5452ff
Merge pull request #27099 from tchaikov/wip-crimson-misc-logging
crimson/{net,mon,osd}: misc logging changes

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-03-22 00:14:01 +08:00
Kefu Chai
085fdf57fd
Merge pull request #27089 from tchaikov/wip-cmake-with-ninja
cmake: do not assume ${CMAKE_GENERATOR} == make

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-03-21 22:05:54 +08:00
Casey Bodley
9663480f3b
Merge pull request #27100 from ddiss/trivial_rgw_auth_keystone_gcc_warning
[trivial] rgw: fix minor compiler warning in keystone auth

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-03-21 10:05:18 -04:00
Kefu Chai
613a4670af
Merge pull request #27094 from tchaikov/wip-cmake-cmake-ubsan
cmake: workaround of false alarm from ubsan

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-03-21 22:03:14 +08:00
Kefu Chai
01cd5fb72c
Merge pull request #27088 from tchaikov/wip-update-seastar
cmake,crimson: pick up latest seastar

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-03-21 21:59:28 +08:00
Kefu Chai
4bf14a13f7
Merge pull request #26731 from wjwithagen/wjw-fix-cmake-os-release
build: FreeBSD does not have /etc/os-release

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-03-21 21:53:23 +08:00
Kefu Chai
bb67400d15
Merge pull request #26607 from tchaikov/wip-cython-language_level
pybind: set language_level for cythonize explicitly

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-03-21 21:51:14 +08:00
David Disseldorp
d807d1916f rgw: fix minor compiler warning in keystone auth
Signed-off-by: David Disseldorp <ddiss@suse.de>
2019-03-21 14:10:15 +01:00
Kefu Chai
5eb349f4ae
Merge pull request #27093 from tchaikov/wip-crimson-test-alien-echo
test/crimson: update to accomodate Dispatcher changes

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-03-21 21:00:10 +08:00
Kefu Chai
ea4f15f92e crimson/osd: more verbose logging
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-21 20:46:22 +08:00
Kefu Chai
2625c2cb8d crimson/{mon,osd}: don't log ms_dispatch messages
msgr already logs them

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-21 20:44:26 +08:00
Kefu Chai
5f196a2a10 crimson/net: log tx/rx messages
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-21 20:44:26 +08:00
Sage Weil
eb5e39ea08 Merge PR #27092 into master
* refs/pull/27092/head:
	mailmap: sort entries
	mailmap: sort organizationmap
	mailmap: updates for nautilus
	doc: mailmap updates for mimic
	mailmap fixes for 12.2.0

Reviewed-by: Sage Weil <sage@redhat.com>
2019-03-21 07:22:06 -05:00
Sebastian Wagner
cee38745ea
Merge pull request #26404 from sebastian-philipp/orchestrator-error-handling
mgr/orchestrator: Add error handling to interface

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Tim Serong <tserong@suse.com>
2019-03-21 12:30:13 +01:00
Kefu Chai
77553040fc cmake: workaround of false alarm from ubsan
to workaround a GCC bug, see
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88684

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-21 18:57:27 +08:00
Kefu Chai
f0eb1a9f27 test/crimson: update to accomodate Dispatcher changes
Dispatcher::ms_get_authorizer() was changed in f22d433a, so update the
test accordingly

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-21 18:54:11 +08:00
Abhishek Lekshmanan
38f07b3522 mailmap: sort entries
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-03-21 10:46:10 +01:00
Abhishek Lekshmanan
bd643d5156 mailmap: sort organizationmap
since this will make it easier for editing entries in the future

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-03-21 10:43:21 +01:00
Abhishek Lekshmanan
bd806d310b mailmap: updates for nautilus
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-03-21 10:32:53 +01:00
Kefu Chai
80edd351bf cmake: disable -Werror when building seastar
when building seastar with a recent fmt, fmt complains:

src/fmt/include/fmt/time.h:13:2: error: #warning fmt/time.h is
deprecated, use fmt/chrono.h instead [-Werror=cpp]
 #warning fmt/time.h is deprecated, use fmt/chrono.h instead
  ^~~~~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-21 17:04:38 +08:00
Kefu Chai
43d8d1962a seastar: pickup the latest seastar
for couple improvements

* dbf7b6b0: add fast path for small writes
* 2f357317: IPv6 support

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-21 17:04:38 +08:00
Kefu Chai
d1200b9b61 cmake: link against libfmt
Seastar::seastar does pull in libfmt library as a PUBLIC linkage. but we
should not depend on this. if we use fmt directly, we should link against it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-21 17:04:38 +08:00
Kefu Chai
0c60abf5ba crimson: include headers if necessary
we should not rely on seastar or other headers to do this. if we use
fmt or std functions, we should include corresponding header(s).

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-21 17:03:13 +08:00
Kefu Chai
a0c6fb9d40 cmake: do not assume ${CMAKE_GENERATOR} == make
* modules/BuildDPDK.cmake: always use "make"
* modules/BuildSPDK.cmake: always use "make"
  DPDK only support "make". if user wants to use other generator than
  "make", we will fail to build DPDK support. so we should always use
  "make" here. and before using "make", we need to detect it.
* cmake/modules/BuildRocksDB.cmake: use cmake for build
* src/compressor/zstd/CMakeLists.txt: use cmake for build
  just use whatever generator use specifies, and use ${CMAKE_COMMAND}
  for building the specified target, no need to repeat
  ${CMAKE_GENERATOR} for building the target.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-21 15:45:07 +08:00
Kefu Chai
ebb7f32482 cmake: build fmt submodule if libfmt is not found
the recent seastar dropped fmt submodule, so we need to build from our
own fmt submodule.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-21 15:11:33 +08:00
Kefu Chai
98fecbdeaf fmt: add fmt submodule back
seastar does not bring fmt as a submodule, so let's ready it by
ourselves.

This reverts commit 53a38bf57e.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-21 15:11:33 +08:00
Yuri Weinstein
33d929373e
Merge pull request #27057 from yuriw/wip-yuriw-crontab
qa/tests: reduced frequency for luminous and mimic runs...
2019-03-20 16:36:54 -07:00
Yuri Weinstein
afb47c6264 qa/tests: reduced frequency for luminous and mimic runs
added all suites for nauitlus

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2019-03-20 13:26:58 -07:00
Yuri Weinstein
5ebc2b756a
Merge pull request #26786 from aclamk/fix-rocksdb-compaction-ranges
common/kv/rocksdb: Fixed async compations.

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-03-20 09:30:38 -07:00
Nathan Cutler
b0700f2b3f
Merge pull request #27046 from smithfarm/wip-38812
rpm: refrain from building ceph-resource-agents on SLE

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Tim Serong <tserong@suse.com>
2019-03-20 17:12:58 +01:00
Casey Bodley
507e97ae3c
Merge pull request #27054 from cbodley/wip-37770
doc/rgw: update civetweb rgw_frontends config example

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-03-20 10:07:31 -04:00
Casey Bodley
e0c07a74dd
Merge pull request #27035 from cbodley/wip-test-rgw-reshard-wait-clock
test/rgw: test_rgw_reshard_wait uses same clock for timing

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-03-20 09:57:01 -04:00
Lenz Grimmer
fe39cc4751
Merge pull request #26853 from nathan-weinberg/more-cluster-tests
mgr/dashboard: Added breadcrumb tests to Manager modules and Alerts menu

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-03-20 14:56:43 +01:00
Casey Bodley
9410736823
Merge pull request #27052 from rzarzynski/wip-rgw-drop_rgw_decode_pki_token
rgw: drop unused rgw_decode_pki_token().

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-03-20 09:55:55 -04:00
Jason Dillaman
4f123365f3
Merge pull request #27025 from yangdongsheng/poll_timeout
rbd: krbd: return -ETIMEDOUT in polling

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
2019-03-20 08:58:04 -04:00
Casey Bodley
2f16fcb2fd doc/rgw: update civetweb rgw_frontends config example
all of these civetweb options have to be on the same line as rgw_frontends

Fixes: https://tracker.ceph.com/issues/37770

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2019-03-20 08:20:01 -04:00
Kefu Chai
0ddd25fbc3
Merge pull request #27050 from theanalyst/build-doc-warns
admin/build-doc: keep-going when finding warnings

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-03-20 20:16:13 +08:00
Kefu Chai
83ba81f1fd
Merge pull request #26534 from majianpeng/skip-calc-crc-header-for-async-msg
msg/async: skip repeat calc crc header in Message::encode

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2019-03-20 19:53:24 +08:00
Sage Weil
a810fb6f03 Merge PR #27009 into master
* refs/pull/27009/head:
	ceph_release: the next release will be octopus

Reviewed-by: Kai Wagner <kwagner@suse.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2019-03-20 06:51:51 -05:00
Kefu Chai
63bd9527df
Merge pull request #26514 from dillaman/wip-38381
pybind/rados: fixed Python3 string conversion issue on get_fsid

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-03-20 19:51:27 +08:00
Kefu Chai
c0f164f4bb
Merge pull request #26985 from rhcs-dashboard/38768-fix-sparkline-component
mgr/dashboard: fix sparkline component

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
2019-03-20 19:50:23 +08:00