]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agocommon/blkdev: fix non-linux build for get_device_id 22423/head
Sage Weil [Mon, 11 Jun 2018 14:36:12 +0000 (09:36 -0500)]
common/blkdev: fix non-linux build for get_device_id

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agocommon/blkdev: do not include vendor in fallback mode
Sage Weil [Mon, 11 Jun 2018 13:00:33 +0000 (08:00 -0500)]
common/blkdev: do not include vendor in fallback mode

The 'vendor' file usually contains a string like "ATA", not an actual
vendor.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr: allow open-ended life expectancy
Sage Weil [Fri, 8 Jun 2018 03:04:09 +0000 (22:04 -0500)]
mgr: allow open-ended life expectancy

If you leave off the second part of the life expectancy interval, it means
"more than".  e.g., Setting only the first time to today + one month would
mean "more than one month".

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr: use prettified durations for life expectancy
Sage Weil [Fri, 8 Jun 2018 02:48:19 +0000 (21:48 -0500)]
mgr: use prettified durations for life expectancy

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agocommon/ceph_time: very lame timespan_str() helper
Sage Weil [Fri, 8 Jun 2018 02:46:52 +0000 (21:46 -0500)]
common/ceph_time: very lame timespan_str() helper

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr: "predicted failure" -> "life expectancy", and as a range
Sage Weil [Fri, 8 Jun 2018 02:22:47 +0000 (21:22 -0500)]
mgr: "predicted failure" -> "life expectancy", and as a range

1- Change terminology from "predicted failure" to "life expectancy", which
has a more intuitive meaning.

2- Change from an expected time stamp to a range.  Any expectancy has an
inherent uncertainty, so a single time is not meaningful.  Instead, express
as a range, e.g. "4-6 weeks from now", where we record the min and max
date as well as when the prediction was made.

This is still a bit awkward, but I'm not sure what is better.  It will
always be a bit awkward to express uncertainty since in precise terms it
is probably a 90% confidence interval or something.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr: detailed output for 'ceph device ...'
Sage Weil [Wed, 6 Jun 2018 20:23:01 +0000 (15:23 -0500)]
mgr: detailed output for 'ceph device ...'

For JSON ls* commands, dump the full device metadata.

For plain commands, dump tables with useful information.

This is nicer for humans and jq-users, less friendly for those who want
to write a simple bash loop.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/DaemonState: skip blank device_ids
Sage Weil [Wed, 6 Jun 2018 13:46:51 +0000 (08:46 -0500)]
mgr/DaemonState: skip blank device_ids

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: skip blank device ids
Sage Weil [Wed, 6 Jun 2018 13:46:10 +0000 (08:46 -0500)]
osd: skip blank device ids

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr: track and report device names too
Sage Weil [Wed, 6 Jun 2018 13:44:42 +0000 (08:44 -0500)]
mgr: track and report device names too

If you're looking at a specific device by its unique id, it's also nice
to know what device name (sdb etc) it is and on which host.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/ActivePyModule: expose 'devices' to python modules
Sage Weil [Tue, 5 Jun 2018 19:21:46 +0000 (14:21 -0500)]
mgr/ActivePyModule: expose 'devices' to python modules

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr: move dump/print to DeviceState
Sage Weil [Tue, 5 Jun 2018 19:21:31 +0000 (14:21 -0500)]
mgr: move dump/print to DeviceState

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr: implement 'device {set,rm}-predicted-failure' commands
Sage Weil [Tue, 5 Jun 2018 19:03:42 +0000 (14:03 -0500)]
mgr: implement 'device {set,rm}-predicted-failure' commands

Record predicted device failure time.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr: load persistent device metadata on mgr stat
Sage Weil [Tue, 5 Jun 2018 18:57:09 +0000 (13:57 -0500)]
mgr: load persistent device metadata on mgr stat

Prune DeviceState when there is no persistent metadata and no daemon
references.  Load persistent metadata from config-key.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoinclude/utime: add parse() method
Sage Weil [Tue, 5 Jun 2018 18:57:17 +0000 (13:57 -0500)]
include/utime: add parse() method

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr: tolerate racing config-key change during load_store()
Sage Weil [Tue, 5 Jun 2018 17:55:52 +0000 (12:55 -0500)]
mgr: tolerate racing config-key change during load_store()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr: implement 'device {ls,ls-by-daemon,ls-by-host,info}' commands
Sage Weil [Tue, 5 Jun 2018 13:47:45 +0000 (08:47 -0500)]
mgr: implement 'device {ls,ls-by-daemon,ls-by-host,info}' commands

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/DaemonState: populate DeviceState structures
Sage Weil [Tue, 5 Jun 2018 13:47:27 +0000 (08:47 -0500)]
mgr/DaemonState: populate DeviceState structures

Track device <-> daemon (and server) mappings.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr: parse out devids from daemon metadata
Sage Weil [Tue, 5 Jun 2018 13:46:41 +0000 (08:46 -0500)]
mgr: parse out devids from daemon metadata

Look for the "device_ids" key in the metadata and parse out a device
list.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agocommon/blkdev: add modelines
Sage Weil [Tue, 5 Jun 2018 12:23:32 +0000 (07:23 -0500)]
common/blkdev: add modelines

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: include device_ids in metadata
Sage Weil [Mon, 4 Jun 2018 14:11:56 +0000 (09:11 -0500)]
osd: include device_ids in metadata

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agocommon/blkdev: add get_device_id() helper.
Yaarit Hatuka [Mon, 4 Jun 2018 04:01:36 +0000 (00:01 -0400)]
common/blkdev: add get_device_id() helper.

Signed-off-by: Yaarit Hatuka yaarithatuka@gmail.com
7 years agoMerge pull request #22399 from alfredodeza/wip-rm24417
Alfredo Deza [Tue, 5 Jun 2018 12:01:02 +0000 (08:01 -0400)]
Merge pull request #22399 from alfredodeza/wip-rm24417

ceph-volume tests do not include admin keyring in OSD nodes

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #22401 from ricardoasmarques/wip-prettify-package-json
Lenz Grimmer [Tue, 5 Jun 2018 11:50:41 +0000 (13:50 +0200)]
Merge pull request #22401 from ricardoasmarques/wip-prettify-package-json

mgr/dashboard: Prettify package.json

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #21826 from tspmelo/rxjs6
Lenz Grimmer [Tue, 5 Jun 2018 11:19:29 +0000 (13:19 +0200)]
Merge pull request #21826 from tspmelo/rxjs6

mgr/dashboard: Update RxJS to version 6

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #22122 from tspmelo/wip-osd-scrub
Lenz Grimmer [Tue, 5 Jun 2018 10:33:34 +0000 (12:33 +0200)]
Merge pull request #22122 from tspmelo/wip-osd-scrub

mgr/dashboard: Add scrub action to the OSDs table

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #22392 from tchaikov/wip-cmake-boost-1.67
Kefu Chai [Tue, 5 Jun 2018 08:57:32 +0000 (16:57 +0800)]
Merge pull request #22392 from tchaikov/wip-cmake-boost-1.67

cmake: bump up the required boost version to 1.67

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22405 from neha-ojha/wip-24365
Josh Durgin [Tue, 5 Jun 2018 03:00:00 +0000 (20:00 -0700)]
Merge pull request #22405 from neha-ojha/wip-24365

qa/tasks/cbt.py: changes to run on bionic

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoqa/tasks/cbt.py: changes to run on bionic 22405/head
Neha Ojha [Tue, 5 Jun 2018 00:23:21 +0000 (17:23 -0700)]
qa/tasks/cbt.py: changes to run on bionic

Signed-off-by: Neha Ojha <nojha@redhat.com>
7 years agomgr/dashboard: Prettify package.json 22401/head
Ricardo Marques [Mon, 4 Jun 2018 20:50:02 +0000 (21:50 +0100)]
mgr/dashboard: Prettify package.json

Signed-off-by: Ricardo Marques <rimarques@suse.com>
7 years agoceph-volume tests do not include admin keyring in OSD nodes 22399/head
Alfredo Deza [Mon, 4 Jun 2018 20:01:15 +0000 (16:01 -0400)]
ceph-volume tests do not include admin keyring in OSD nodes

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #22393 from wido/ceph-volume-bluestore-tool
Alfredo Deza [Mon, 4 Jun 2018 19:25:29 +0000 (15:25 -0400)]
Merge pull request #22393 from wido/ceph-volume-bluestore-tool

ceph-volume lvm.activate Do not search for a MON configuration

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge PR #22359 into master
Sage Weil [Mon, 4 Jun 2018 15:50:13 +0000 (10:50 -0500)]
Merge PR #22359 into master

* refs/pull/22359/head:
osdc/objecter: remove unused method finish_op

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: bump up the required boost version to 1.67 22392/head
Kefu Chai [Mon, 4 Jun 2018 14:27:55 +0000 (22:27 +0800)]
cmake: bump up the required boost version to 1.67

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agomgr/dashboard: Add scrub action to the OSD table 22122/head
Tiago Melo [Wed, 30 May 2018 09:59:16 +0000 (10:59 +0100)]
mgr/dashboard: Add scrub action to the OSD table

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard: Add OSD scrub modal component
Tiago Melo [Wed, 30 May 2018 09:58:38 +0000 (10:58 +0100)]
mgr/dashboard: Add OSD scrub modal component

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard: Add scrub methods to OSD controller and service
Tiago Melo [Fri, 11 May 2018 15:20:53 +0000 (16:20 +0100)]
mgr/dashboard: Add scrub methods to OSD controller and service

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard: Extract 'srt_to_bool' method
Tiago Melo [Mon, 4 Jun 2018 13:39:06 +0000 (14:39 +0100)]
mgr/dashboard: Extract 'srt_to_bool' method

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agoMerge pull request #21247 from MahatiC/wip-rbd-datapool
Jason Dillaman [Mon, 4 Jun 2018 13:38:01 +0000 (09:38 -0400)]
Merge pull request #21247 from MahatiC/wip-rbd-datapool

rbd: add data pool support to trash purge

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #22389 from MahatiC/nit-cleanup
Jason Dillaman [Mon, 4 Jun 2018 12:56:14 +0000 (08:56 -0400)]
Merge pull request #22389 from MahatiC/nit-cleanup

doc: cleanup rendering syntax

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #22384 from ukernel/wip-mds-session-ref
Yan, Zheng [Mon, 4 Jun 2018 12:40:57 +0000 (20:40 +0800)]
Merge pull request #22384 from ukernel/wip-mds-session-ref

mds: add reference when setting Connection::priv to existing session

7 years agoMerge pull request #22346 from dzafman/wip-scrub-omap
Kefu Chai [Mon, 4 Jun 2018 11:53:18 +0000 (19:53 +0800)]
Merge pull request #22346 from dzafman/wip-scrub-omap

osd: Handle omap and data digests independently

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agodoc: cleanup 22389/head
Mahati Chamarthy [Mon, 4 Jun 2018 11:50:57 +0000 (17:20 +0530)]
doc: cleanup

cleanup format

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
7 years agoceph-volume lvm.activate Do not search for a MON configuration 22393/head
Wido den Hollander [Mon, 4 Jun 2018 11:21:12 +0000 (13:21 +0200)]
ceph-volume lvm.activate Do not search for a MON configuration

This system might not have one nor can we be sure that we have
a client.admin keyring on the system.

Just prime the directory and have the OSD then use it's own cephx
key to communicate with the MONs.

Signed-off-by: Wido den Hollander <wido@42on.com>
7 years agoMerge pull request #22328 from tspmelo/wip-tslint-unused
Lenz Grimmer [Mon, 4 Jun 2018 10:22:06 +0000 (12:22 +0200)]
Merge pull request #22328 from tspmelo/wip-tslint-unused

mgr/dashboard: Add 'no-unused-variable' rule to tslint

Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #22350 from theanalyst/doc-mimic-index-fix
Kefu Chai [Mon, 4 Jun 2018 10:01:21 +0000 (18:01 +0800)]
Merge pull request #22350 from theanalyst/doc-mimic-index-fix

doc: mimic is stable!

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agomds: fix MDSRank::send_message_client_counted() 22384/head
Yan, Zheng [Mon, 4 Jun 2018 05:56:44 +0000 (13:56 +0800)]
mds: fix MDSRank::send_message_client_counted()

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomds: add reference when setting Connection::priv to existing session
Yan, Zheng [Mon, 4 Jun 2018 05:40:00 +0000 (13:40 +0800)]
mds: add reference when setting Connection::priv to existing session

the bug was introduced by commit 72883956c26 "use intrusive_ptr for
holding Connection::priv"

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years agomgr/dashboard: Add 'no-unused-variable' rule to tslint 22328/head
Tiago Melo [Wed, 30 May 2018 15:04:01 +0000 (16:04 +0100)]
mgr/dashboard: Add 'no-unused-variable' rule to tslint

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard: Update RxJS to version 6 21826/head
Tiago Melo [Fri, 4 May 2018 19:07:21 +0000 (20:07 +0100)]
mgr/dashboard: Update RxJS to version 6

I used rxjs-tslint tool to automatically update most of the necessary code.

I added a new package, rxjs-compat, to maintain the compatibility
of external plugins that are still using RxJS v5.X.

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agoMerge pull request #21718 from majianpeng/admin-socket-cleanup
Kefu Chai [Sat, 2 Jun 2018 17:55:37 +0000 (01:55 +0800)]
Merge pull request #21718 from majianpeng/admin-socket-cleanup

common/admin_socket: add new api unregister_commands(AdminSocketHook …

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21913 from tspmelo/wip-cephfs-table
Kefu Chai [Sat, 2 Jun 2018 17:53:40 +0000 (01:53 +0800)]
Merge pull request #21913 from tspmelo/wip-cephfs-table

mgr/dashboard: Add Filesystems list component

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #22196 from thinkercui/bugfix
Kefu Chai [Sat, 2 Jun 2018 17:52:24 +0000 (01:52 +0800)]
Merge pull request #22196 from thinkercui/bugfix

osd: read object attrs failed at EC recovery

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #22336 from majianpeng/bluestore-handle-kvdb-error
Kefu Chai [Sat, 2 Jun 2018 17:51:00 +0000 (01:51 +0800)]
Merge pull request #22336 from majianpeng/bluestore-handle-kvdb-error

os/bluestore: firstly delete db then delete bluefs if open db met error.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #22306 from liewegas/wip-msgr-addrvec
Kefu Chai [Sat, 2 Jun 2018 17:49:58 +0000 (01:49 +0800)]
Merge pull request #22306 from liewegas/wip-msgr-addrvec

msg: addr -> addrvec (part 1)

Reviewed-by: Ricardo Dias <rdias@suse.com>
7 years agoMerge pull request #22342 from dillaman/wip-23516
Mykola Golub [Sat, 2 Jun 2018 06:47:16 +0000 (09:47 +0300)]
Merge pull request #22342 from dillaman/wip-23516

librbd: commit IO as safe when complete if writeback cache is disabled

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #22348 from dillaman/wip-24169
Mykola Golub [Sat, 2 Jun 2018 06:43:35 +0000 (09:43 +0300)]
Merge pull request #22348 from dillaman/wip-24169

rbd-mirror: ensure daemon can cleanly exit if pool is deleted

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #21812 from thmour/thmour_ceph-volume
Alfredo Deza [Fri, 1 Jun 2018 15:50:29 +0000 (11:50 -0400)]
Merge pull request #21812 from thmour/thmour_ceph-volume

ceph-volume: sort and align `lvm list` output

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #22367 from tchaikov/wip-cmake-rgw
Kefu Chai [Fri, 1 Jun 2018 13:56:46 +0000 (21:56 +0800)]
Merge pull request #22367 from tchaikov/wip-cmake-rgw

cmake: rgw_common should depend on tracing headers

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
7 years agoMerge pull request #22364 from tchaikov/wip-doc
Sage Weil [Fri, 1 Jun 2018 13:15:29 +0000 (08:15 -0500)]
Merge pull request #22364 from tchaikov/wip-doc

 doc: fix the links in releases/schedule.rst

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoosd/OSDMap: switch to addrvec for public_addr 22306/head
Sage Weil [Wed, 30 May 2018 21:13:32 +0000 (16:13 -0500)]
osd/OSDMap: switch to addrvec for public_addr

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon/Session: avoid OSDMap::get_addr()
Sage Weil [Wed, 30 May 2018 20:16:44 +0000 (15:16 -0500)]
mon/Session: avoid OSDMap::get_addr()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/OSDMap: remove get_addr()
Sage Weil [Wed, 30 May 2018 20:16:20 +0000 (15:16 -0500)]
osd/OSDMap: remove get_addr()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/OSDMap: avoid get_addr()
Sage Weil [Wed, 30 May 2018 20:16:14 +0000 (15:16 -0500)]
osd/OSDMap: avoid get_addr()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomsg/msg_types: entity_addrvec_t contains() and is_same_host()
Sage Weil [Wed, 30 May 2018 20:15:54 +0000 (15:15 -0500)]
msg/msg_types: entity_addrvec_t contains() and is_same_host()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: avoid OSDMap::get_addr()
Sage Weil [Wed, 30 May 2018 20:12:47 +0000 (15:12 -0500)]
osd: avoid OSDMap::get_addr()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoclient: use get_addrs()
Sage Weil [Wed, 30 May 2018 20:12:28 +0000 (15:12 -0500)]
client: use get_addrs()

These are legacy interfaces that should return an IP only.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomsg/msg_types: entity_addrvec_t::front()
Sage Weil [Wed, 30 May 2018 20:12:12 +0000 (15:12 -0500)]
msg/msg_types: entity_addrvec_t::front()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr: avoid OSDMap::get_addr()
Sage Weil [Wed, 30 May 2018 20:09:22 +0000 (15:09 -0500)]
mgr: avoid OSDMap::get_addr()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomsg/msg_types: entity_addrvec_t::probably_equals()
Sage Weil [Wed, 30 May 2018 20:09:13 +0000 (15:09 -0500)]
msg/msg_types: entity_addrvec_t::probably_equals()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomsg/msg_types: add entity_addrvec_t::get_ports()
Sage Weil [Wed, 30 May 2018 20:03:50 +0000 (15:03 -0500)]
msg/msg_types: add entity_addrvec_t::get_ports()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon/OSDMonitor: change 'osd find' output to list all addrs
Sage Weil [Wed, 30 May 2018 19:58:35 +0000 (14:58 -0500)]
mon/OSDMonitor: change 'osd find' output to list all addrs

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/OSDMap: remove get_inst()
Sage Weil [Wed, 30 May 2018 19:38:43 +0000 (14:38 -0500)]
osd/OSDMap: remove get_inst()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosdc/Objecter: use get_addrs
Sage Weil [Wed, 30 May 2018 19:38:39 +0000 (14:38 -0500)]
osdc/Objecter: use get_addrs

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomessages/MRoute: remove unused entity_inst_t dest
Sage Weil [Wed, 30 May 2018 19:36:08 +0000 (14:36 -0500)]
messages/MRoute: remove unused entity_inst_t dest

This is unused in luminous and mimic, too, although the code was
never removed.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon: remove dead try_send_message()
Sage Weil [Wed, 30 May 2018 19:01:40 +0000 (14:01 -0500)]
mon: remove dead try_send_message()

No more users!

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon: remove dead send_command()
Sage Weil [Wed, 30 May 2018 19:01:17 +0000 (14:01 -0500)]
mon: remove dead send_command()

No users.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon/OSDMonitor: remove dead 'osd scrub' implementation from mon
Sage Weil [Wed, 30 May 2018 19:00:34 +0000 (14:00 -0500)]
mon/OSDMonitor: remove dead 'osd scrub' implementation from mon

This is now handled by the mgr (as of luminous).

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomessages/MOSDMarkMeDown: use addrvec
Sage Weil [Wed, 30 May 2018 18:56:52 +0000 (13:56 -0500)]
messages/MOSDMarkMeDown: use addrvec

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agocmake: rgw_common should depend on tracing headers 22367/head
Kefu Chai [Fri, 1 Jun 2018 12:38:25 +0000 (20:38 +0800)]
cmake: rgw_common should depend on tracing headers

see also: 4c0d3531

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22324 from cbodley/wip-rgw-cache-time-added
Matt Benjamin [Fri, 1 Jun 2018 12:25:31 +0000 (08:25 -0400)]
Merge pull request #22324 from cbodley/wip-rgw-cache-time-added

rgw: update ObjectCacheInfo::time_added on overwrite

7 years agoMerge pull request #22327 from dillaman/wip-23512
Mykola Golub [Fri, 1 Jun 2018 11:00:15 +0000 (14:00 +0300)]
Merge pull request #22327 from dillaman/wip-23512

librbd: utilize the journal disabled policy when removing images

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoosd: retry to read object attrs at EC recovery 22196/head
cuixf [Thu, 24 May 2018 00:01:25 +0000 (20:01 -0400)]
osd: retry to read object attrs at EC recovery

In EC recovery read, if the object's attrs read failed or with errors, we erase the attrs we have read and
try to read it again from left shards. This will make the primary osd get the object's attrs correct and
avoid assert.

Signed-off-by: xiaofei cui <cuixiaofei@sangfor.com>
7 years agoos/bluestore: firstly delete db then delete bluefs if open db met error. 22336/head
Jianpeng Ma [Fri, 1 Jun 2018 09:44:56 +0000 (17:44 +0800)]
os/bluestore: firstly delete db then delete bluefs if open db met error.

When create Rocksdb but failed, met the followong error messages:

2018-05-31 22:30:15.017 7facd3f4f240 -1 rocksdb: do_open Failed to create rocksdb column family: L
2018-05-31 22:30:15.017 7facd3f4f240 -1 bluestore(/home/jianpeng/ceph/build/dev/osd0) _open_db erroring opening db:
*** Caught signal (Segmentation fault) **
 in thread 7facd3f4f240 thread_name:ceph-osd
 ceph version 14.0.0-109-g9d317e5d23 (9d317e5d23eb78deec1a048aff5c2a31997c8345) nautilus (dev)
 1: (()+0x910ee0) [0x555727d3aee0]
 2: (()+0x12890) [0x7facc9a8d890]
 3: (pthread_mutex_lock()+0) [0x7facc9a84fa0]
 4: (BlockDevice::queue_reap_ioc(IOContext*)+0x28) [0x555727ce4fa8]
 5: (BlueFS::_close_writer(BlueFS::FileWriter*)+0x62) [0x555727ce9d52]
 6: (BlueRocksWritableFile::~BlueRocksWritableFile()+0x49) [0x555727d0e659]
 7: (rocksdb::WritableFileWriter::Close()+0x1e7) [0x555727ef0c77]
 8: (rocksdb::log::Writer::~Writer()+0x4d) [0x555727dfbb1d]
 9: (rocksdb::DBImpl::CloseHelper()+0x342) [0x555727d6d632]
 10: (rocksdb::DBImpl::~DBImpl()+0x4dd) [0x555727d7cb6d]
 11: (rocksdb::DBImpl::~DBImpl()+0x11) [0x555727d7cc11]
 12: (RocksDBStore::~RocksDBStore()+0xc1) [0x555727c8a6f1]
 13: (RocksDBStore::~RocksDBStore()+0x9) [0x555727c8aa29]
 14: (BlueStore::_open_db(bool, bool)+0x2416) [0x555727c204b6]
 15: (BlueStore::mkfs()+0x805) [0x555727c50105]
 16: (OSD::mkfs(CephContext*, ObjectStore*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, uuid_d, int)+0x1b0) [0x5557277ffa70]
 17: (main()+0x4222) [0x5557276ebb92]
 18: (__libc_start_main()+0xe7) [0x7facc8948b97]
 19: (_start()+0x2a) [0x5557277b0a9a]
2018-05-31 22:30:15.789 7facd3f4f240 -1 *** Caught signal (Segmentation fault) **
 in thread 7facd3f4f240 thread_name:ceph-osd

This because the error handle for this case firstly delete bluefs then
db. Like close path, it should firstly delete db than delete bluefs.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agodoc: fix some redirected links reported by "build-doc linkcheck" 22364/head
Kefu Chai [Fri, 1 Jun 2018 08:05:16 +0000 (16:05 +0800)]
doc: fix some redirected links reported by "build-doc linkcheck"

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agodoc: fix the links in releases/schedule.rst
Kefu Chai [Fri, 1 Jun 2018 07:53:32 +0000 (15:53 +0800)]
doc: fix the links in releases/schedule.rst

they were broken in e37e49b2

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21864 from LenzGr/documentation-fixes
Kefu Chai [Fri, 1 Jun 2018 08:12:19 +0000 (16:12 +0800)]
Merge pull request #21864 from LenzGr/documentation-fixes

doc: fixed restful mgr module SSL configuration commands

Reveiwed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #22295 from jan--f/cmake-fix-ceph-test-build
Kefu Chai [Fri, 1 Jun 2018 07:22:54 +0000 (15:22 +0800)]
Merge pull request #22295 from jan--f/cmake-fix-ceph-test-build

cmake: fix cython target in test/CMakeFile.txt

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22317 from MahatiC/wip-doc-zipkin
Kefu Chai [Fri, 1 Jun 2018 07:22:23 +0000 (15:22 +0800)]
Merge pull request #22317 from MahatiC/wip-doc-zipkin

doc: update blkin changes

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22332 from TommyLike/bug/fix_typo
Kefu Chai [Fri, 1 Jun 2018 07:22:00 +0000 (15:22 +0800)]
Merge pull request #22332 from TommyLike/bug/fix_typo

test/encoding: Fix typo in encoding/types.h file

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22337 from tchaikov/wip-24361
Kefu Chai [Fri, 1 Jun 2018 06:15:40 +0000 (14:15 +0800)]
Merge pull request #22337 from tchaikov/wip-24361

osd,mon: enable level_compaction_dynamic_level_bytes for rocksdb

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #22285 from ricardoasmarques/wip-error-handling
Kefu Chai [Fri, 1 Jun 2018 06:05:51 +0000 (14:05 +0800)]
Merge pull request #22285 from ricardoasmarques/wip-error-handling

mgr/dashboard: Log frontend errors + @UiController

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #22335 from majianpeng/bluestore-cleanup
Kefu Chai [Fri, 1 Jun 2018 06:04:56 +0000 (14:04 +0800)]
Merge pull request #22335 from majianpeng/bluestore-cleanup

os/bluestore: remove useless condtion.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
7 years agoosdc/objecter: remove unused method finish_op 22359/head
wumingqiao [Fri, 1 Jun 2018 05:42:41 +0000 (13:42 +0800)]
osdc/objecter: remove unused method finish_op

Signed-off-by: wumingqiao <wumingqiao@inspur.com>
7 years agoMerge pull request #21689 from ovh/bp-reduce-bs-bl-rebuilds
Kefu Chai [Fri, 1 Jun 2018 04:15:55 +0000 (12:15 +0800)]
Merge pull request #21689 from ovh/bp-reduce-bs-bl-rebuilds

os/bluestore/BlueFS: reduce bufferlist rebuilds during WAL writes

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoMerge pull request #21920 from cbodley/wip-async-librados
Kefu Chai [Fri, 1 Jun 2018 04:14:59 +0000 (12:14 +0800)]
Merge pull request #21920 from cbodley/wip-async-librados

librados: use ceph::async::Completion for asio bindings

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22056 from jiangxiyxy/Branch_master
Kefu Chai [Fri, 1 Jun 2018 00:06:40 +0000 (08:06 +0800)]
Merge pull request #22056 from jiangxiyxy/Branch_master

mon: change monitor compact command to run asynchronously

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agorbd-mirror: attempt to re-acquire leader lock if watcher recovered 22348/head
Jason Dillaman [Thu, 31 May 2018 18:09:30 +0000 (14:09 -0400)]
rbd-mirror: attempt to re-acquire leader lock if watcher recovered

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agolibrbd: ensure managed lock can shut down if stuck waiting for register
Jason Dillaman [Thu, 31 May 2018 18:04:19 +0000 (14:04 -0400)]
librbd: ensure managed lock can shut down if stuck waiting for register

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoqa/workunits/rbd: dump long image directory upon rbd-mirror test failure
Jason Dillaman [Thu, 31 May 2018 23:17:52 +0000 (19:17 -0400)]
qa/workunits/rbd: dump long image directory upon rbd-mirror test failure

Signed-off-by: Jason Dillaman <dillaman@redhat.com>