Commit Graph

96364 Commits

Author SHA1 Message Date
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
Kefu Chai
375622168a
Merge pull request #27034 from jan--f/mgr-prometheus-remove-scrape-duration
pybind/mgr/prometheus: remove scrape_duration metric

Reviewed-by: Boris Ranto <branto@redhat.com>
2019-03-20 19:48:40 +08:00
Kefu Chai
10114f3375
Merge pull request #26701 from adamemerson/wip-trip-the-light-clangtastic
fix clang build failures, and clean up warnings

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-03-20 19:36:57 +08:00
Kefu Chai
b6bbd94968
Merge pull request #26836 from p-na/wip-pna-fix-osd
mgr/dashboard: "1 osds exist in the crush map but not in the osdmap" breaks OSD page

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-03-20 19:30:51 +08:00
Kefu Chai
e88d390672
Merge pull request #26717 from ifed01/wip-ifed-objectstore-tool-fix
tools: no-mon-config switch for ceph-objectstore-tool.

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-03-20 19:29:35 +08:00
Kefu Chai
66dd19beec
Merge pull request #26926 from rouming/epoll-lost-epollet
msg/async/EventEpoll: set EPOLLET flag on del_event()

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-03-20 19:26:40 +08:00
Dongsheng Yang
ab833b823b rbd: krbd: return -ETIMEDOUT in polling
We don't want to wait on uevent forever, but the return value
of polling in timeout is 0 rather than a negative value.

Fixes: http://tracker.ceph.com/issues/38792
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2019-03-20 07:19:01 -04:00
Kefu Chai
ee5eab81e1
Merge pull request #26934 from sebastian-philipp/doc-rados-mon_command
doc/rados/api/python: Add documentation for mon_command

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-03-20 18:27:47 +08:00
Lenz Grimmer
ea49518912
Merge pull request #26562 from familyuu/log
mgr/dashboard: Add date range and log search functionality

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-03-20 11:10:45 +01:00
Kefu Chai
a26f4b20b5
Merge pull request #27065 from tchaikov/wip-crimson-mgr-client
crimson/osd: report pg_stats to mgr

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-03-20 17:56:25 +08:00
Kefu Chai
0e2ce7ba5b crimson/osd: connect OSD to mgr
so OSD is able to report to mgr periodically using mgr::Client

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-20 17:35:26 +08:00
Kefu Chai
a18bf088de crimson/osd: include MonClient.h in .cc
mon::Client's definition is only necessary in .cc

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-20 17:35:05 +08:00
Kefu Chai
4bd46c5827 crimson/osd: add facilities for reporting pg stats
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-20 17:34:38 +08:00
Kefu Chai
2207f4151f crimson/mgr: add mgr client
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-20 17:34:00 +08:00
Kefu Chai
6a98997b80 crimson/osd/pg: accessors for pg stats/state
so OSD can collect pg stats and report them to mgr

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-20 17:33:38 +08:00
Kefu Chai
a2c84335b4 crimson/osd: create msgrs in main.cc
update PG to hold references of messengers instead of pointers to them,
as their lifecycle will be managed in main.cc

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-20 17:33:14 +08:00
Nathan Cutler
d44db0d16b
Merge pull request #27045 from smithfarm/wip-38810
rpm: fix "rhel <= 7" conditional

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Tim Serong <tserong@suse.com>
2019-03-20 10:04:17 +01:00
Kefu Chai
93a0b49719
Merge pull request #27066 from tchaikov/wip-crimson-sharded-stop
crimson/osd: create msgrs in main.cc

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-03-20 16:29:19 +08:00
Kefu Chai
c78b36d3a3 crimson/os: use transparent comparator in xattr
so we don't need to allocate a temporary string for looking up OI or SS
attribute

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-20 16:22:52 +08:00
Kefu Chai
c9ced60275 crimson/osd: cancel timers before restart
otherwise we will rearm already-armed timer when booting up OSD again.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-20 15:41:39 +08:00
Kefu Chai
4de0c35552 crimson/net: call do_shutdown() in SocketMessenger::stop()
so sharded<SocketMessenger> can stop the messenger service with stop()

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-20 15:41:39 +08:00
Kefu Chai
bcc64d2f23 crimson/osd: create msgrs in main.cc
messengers are sharded<Service>. we should not create them in another
sharded service's start() method. to ensure the ordering of stop of
sharded services, we should create the sharded services in main().
and register their stop() method in the proper order.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-20 15:41:39 +08:00
Kefu Chai
91d14ff102
Merge pull request #27064 from tchaikov/wip-crimson-pg-init
crimson/osd: init PG with more info

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-03-20 15:28:20 +08:00
Kefu Chai
9e130c2aad crimson/osd: init primary state in PG::read_state()
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-20 14:54:07 +08:00
Kefu Chai
60a22da338 crimson/osd: add PG::read_state()
to load pg_info and past_intervals

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-20 14:54:07 +08:00
Kefu Chai
12e7dc2f7e crimson/osd: skip fast_info if it is not around
fast_info is optional. for instance, there is chance that it
is the first time the info is written to store, in that case,
there is no delta, i.e. fast info yet.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-20 14:54:07 +08:00
Kefu Chai
3abaa889ab crimson/osd: pass pgid, osdmap and msgr to PG's ctor
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-20 14:54:07 +08:00
Kefu Chai
f7acddb605
Merge pull request #27062 from tchaikov/wip-crimson-ceph-opts-in-argv
crimson/osd: pass unknown args to ConfigProxy::parse_args()

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-03-20 14:48:01 +08:00
Kefu Chai
1568abe8e2
Merge pull request #27003 from tchaikov/wip-crimson-for-classic
osd,messages: changes for preparing for crimson-osd

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-03-20 14:38:22 +08:00
Kefu Chai
983f10ef72
Merge pull request #27026 from tchaikov/wip-remove-MPGStats/had_map_for
messages,osd: remove MPGStats::had_map_for

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2019-03-20 14:34:05 +08:00
Kefu Chai
cacbe0d605
Merge pull request #27059 from tchaikov/wip-crimson-heartbeat
crimson/{osd,heartbeat}: allow heartbeat to have access to authorizer

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-03-20 14:31:54 +08:00