Kefu Chai
5002840900
Merge pull request #20886 from liewegas/wip-kill-min-max
...
include: kill MIN and MAX macros
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2018-03-15 14:22:52 +08:00
Kefu Chai
e078ec6004
Merge pull request #20321 from jcsp/wip-22918
...
mgr: initialize PyModuleRegistry sooner
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-03-15 14:18:45 +08:00
Kefu Chai
b17ff3c54b
mgr/MgrClient: guard send_pgstats() with lock
...
ms_handle_reset() races with send_pgstats(), and the latter could
reference a session with a null connection. so we need to guard
send_pgstats() with a lock.
Fixes: http://tracker.ceph.com/issues/23370
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-03-15 13:33:56 +08:00
Brad Hubbard
0fe0c1173b
log: Fix AddressSanitizer: new-delete-type-mismatch
...
If you directly call the operator new function, you must also directly
call the operator delete function, and must manually call the
destructor as well.
Fixes: http://tracker.ceph.com/issues/23324
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2018-03-15 12:00:31 +10:00
Neha Ojha
939c9d03d6
PG: bug fix in is_degraded_or_backfilling_object()
...
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-03-14 15:56:05 -07:00
Neha Ojha
fa01affde1
PG: update pg_log missing for async_recovery_targets
...
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-03-14 15:56:05 -07:00
Neha Ojha
853655a559
PG: reset async_recovery_targets after recovery
...
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-03-14 15:56:05 -07:00
Neha Ojha
13d7093ec0
PG: call choose_acting when there are async_recovery_targets
...
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-03-14 15:56:05 -07:00
Neha Ojha
90b9f6d825
PG: mark recovery started when fail to get recovery_read_lock
...
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-03-14 15:56:05 -07:00
Neha Ojha
bb0ad5d8f8
PG: set delete flag in needs_recovery_map for deletes
...
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-03-14 15:56:05 -07:00
Neha Ojha
d16f00c9b0
PG: update missing_loc for async_recovery_targets
...
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-03-14 15:56:05 -07:00
Neha Ojha
1e2e58c730
PG: do not block writes on async_recovery_targets
...
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-03-14 15:56:05 -07:00
Neha Ojha
3b5323d149
PG: modify should_send_op to handle async recovery
...
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-03-14 15:56:05 -07:00
Neha Ojha
af83cf9f7b
osd: rename ECSubWrite parameter backfill to backfill_or_async_recovery
...
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-03-14 15:56:05 -07:00
Neha Ojha
4e78d8055b
PG: cleanup and fixes for async recovery
...
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-03-14 15:56:04 -07:00
Neha Ojha
322a00b0e6
osd: introduce acting_recovery_backfill shards
...
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-03-14 15:56:04 -07:00
Neha Ojha
c6dfeb3253
PG: initial changes required for async recovery
...
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-03-14 15:56:04 -07:00
Josh Durgin
360bc69bcf
Merge pull request #20901 from neha-ojha/wip-fix-mgr
...
qa/tasks/ceph_manager: use set_config on revived osd
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-03-14 15:27:39 -07:00
Neha Ojha
e3899dc901
qa/tasks/ceph_manager: use set_config on revived osd
...
Signed-off-by: Neha Ojha <nojha@redhat.com>
2018-03-14 12:37:56 -07:00
Andrew Schoen
a8cd8b2625
Merge pull request #20824 from ceph/wip-rm23259
...
ceph-volume process the abspath of the executable first
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-03-14 20:21:37 +01:00
David Zafman
8a7e6c2349
Merge pull request #20220 from dzafman/wip-calc-stats3
...
osd: Improve recovery stat handling by using peer_missing and missing_loc info
Reviewed-by: Sage Weil <sage@redhat.com>
2018-03-14 11:07:44 -07:00
David Zafman
af85f3cc48
test: osd-backfill-stats.sh parallel osd-recovery-stats.sh check() changes
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-03-14 10:07:11 -07:00
David Zafman
acc1f80684
test: Use "(est)" in log message when an osd doesn't have peer_missing
...
Consolidate check() code and common script code
TEST_recovery_multi() wasn't reliable due to delayed peer_missing
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-03-14 10:07:11 -07:00
David Zafman
12e331b742
test: osd-recovery-stats.sh: New test with different missing objs on multiple OSDs
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-03-14 10:07:11 -07:00
David Zafman
4bf4cd937c
osd: Fix _update_calc_stats() to use peer_missing and missing_by_count
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-03-14 10:07:11 -07:00
David Zafman
1e98533984
osd: Changes to handle sharding for EC in missing_by_count
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-03-14 10:07:11 -07:00
Sage Weil
214ff7b0f3
osd/PrimaryLogPG: update missing_loc on peer recover
...
The MissingLoc structure already tracks locations of any missing object
on any acting OSD, and is updated on_local_recover and on_global_recover.
Update it on_peer_recover too so that the loc information (and derivative
missing_by_count info) is correct.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-14 10:07:11 -07:00
Sage Weil
eddf510e73
osd/PG: MissingLoc: track location counts by upset and other
...
For every object in missing_loc, calculate how many known locations are in
the upset and all others, and call that loc_count_t. Keep
a map of loc_count_t to the number of missing objects with that
distribution.
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-03-14 10:07:11 -07:00
David Zafman
09b5697ba2
test: Correction for better degraded/misplaced handling
...
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-03-14 10:07:11 -07:00
David Zafman
0e9d643875
osd: Always build peer_missing (including strays) for _update_calc_stats()
...
Fixes: http://tracker.ceph.com/issues/22837
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-03-14 10:07:11 -07:00
David Zafman
d7fd9174b9
osd: Fix for handling more than 1 missing target
...
Fix test case to test more than 1 target
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-03-14 10:07:03 -07:00
Abhishek Lekshmanan
bbff6527c1
doc: releases/jewel drop older RCs/dev releases from notes
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2018-03-14 16:35:11 +01:00
Lenz Grimmer
78022e13e7
Merge pull request #20751 from s0nea/wip-mgr-dashboard_rbd_add
...
mgr/dashboard_v2: Add RBD create functionality to the Python backend
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
2018-03-14 15:57:32 +01:00
Igor Fedotov
f3be11091a
os/bluestore: trim SSD devices on mkfs
...
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2018-03-14 17:46:17 +03:00
Andrew Schoen
1cc5ad0d66
Merge pull request #20878 from ceph/wip-rm23337
...
ceph-volume document multipath support
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-03-14 15:02:53 +01:00
Sage Weil
93ceffaccf
osd/osd_types: remove backlog type for pg_log_entry_t
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-14 07:12:01 -05:00
Lenz Grimmer
619d435a71
Merge pull request #20804 from Devp00l/cephfs-template-fix
...
mgr/dashboard_v2: Fix cephfs template table usage
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-03-14 12:31:44 +01:00
Lenz Grimmer
a7d34152cc
Merge pull request #20783 from tspmelo/mgr-perf-counters
...
mgr/dashboard_v2: add mgr to the list of perf counters
Reviewed-by: Ricardo Dias <rdias@suse.com>
2018-03-14 12:11:47 +01:00
Abhishek Lekshmanan
a933fc5acb
doc: fix index reference
...
Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
2018-03-14 12:09:26 +01:00
Lenz Grimmer
5dfdeccf5d
Merge pull request #20728 from jcsp/wip-dashboard-can_run
...
mgr/dashboard v2: implement can_run method
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-14 11:48:40 +01:00
Kefu Chai
b1c8727eba
common/options: drop unused options
...
async_compressor_* have never been used, so drop them.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-03-14 18:11:03 +08:00
Tatjana Dehler
5056cbacbf
mgr/dashboard: Add RBD create functionality
...
This commit adds a basic RBD create functionality to the REST API. It enables
the POST request of the http://<host>:<port>/api/rbd API endpoint.
The commit adds also related tests.
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2018-03-14 10:38:43 +01:00
Gu Zhongyan
f04190ed11
mgr: fix MSG_MGR_MAP handling
...
ceph config show mgr.x doesn't work
root cause is mgr daemon's mgrc has no chance
to process MSG_MGR_MAP in the mgr daemon's
ms_dispatch.
fix is let this message pass through for mgrc
Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
Signed-off-by: yupeng chen chenyupeng-it@360.cn
2018-03-14 15:08:05 +08:00
Patrick Donnelly
09b79af819
Merge PR #20700 into master
...
* refs/pull/20700/head:
client: use either dentry_invalidate_cb or remount_cb to invalidate kernel dcache
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
2018-03-13 20:33:11 -07:00
Patrick Donnelly
52ea69762d
Merge PR #20719 into master
...
* refs/pull/20719/head:
client: add new ceph_mount_perms_set function
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
2018-03-13 20:33:07 -07:00
Patrick Donnelly
57364e6113
Merge PR #20780 into master
...
* refs/pull/20780/head:
doc/cephfs: mention "ceph fs set-default"
mds: include legacy_client_fscid in FSMap::dump
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-03-13 20:32:58 -07:00
Sage Weil
9e35e73743
include: kill MIN and MAX macros
...
Use std::min and std::max instead.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-13 21:16:42 -05:00
Sage Weil
abc4be48b7
osd/PrimaryLogPG: MIN -> std::min
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-13 21:16:29 -05:00
Patrick Donnelly
76080ed795
Merge PR #20881 into master
...
* refs/pull/20881/head:
messages/MClientRequest: fix a typo so we don't output 'setfilelockrule' in logs
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-03-13 16:15:13 -07:00
Abhishek Lekshmanan
fe4fc3ba6c
doc: rename releases->schedule
...
Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
2018-03-13 23:22:00 +01:00