]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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 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 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 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>
7 years agodoc: mimic is stable! 22350/head
Abhishek Lekshmanan [Thu, 31 May 2018 22:43:34 +0000 (00:43 +0200)]
doc: mimic is stable!

Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
7 years agoMerge pull request #22319 from theanalyst/releases/mimic/13.2
Abhishek L [Thu, 31 May 2018 22:40:56 +0000 (00:40 +0200)]
Merge pull request #22319 from theanalyst/releases/mimic/13.2

doc: release/mimic: correct the changelog to the latest version

7 years agomgr/dashboard: Remove unused data from summary controller 21913/head
Tiago Melo [Thu, 10 May 2018 09:36:57 +0000 (10:36 +0100)]
mgr/dashboard: Remove unused data from summary controller

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard: Rename clients component to 'cephfs-clients'
Tiago Melo [Wed, 9 May 2018 17:13:06 +0000 (18:13 +0100)]
mgr/dashboard: Rename clients component to 'cephfs-clients'

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard: Rename cephfs component to 'cephfs-detail'
Tiago Melo [Wed, 9 May 2018 17:24:03 +0000 (18:24 +0100)]
mgr/dashboard: Rename cephfs component to 'cephfs-detail'

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard: Add Filesystems list component
Tiago Melo [Tue, 8 May 2018 15:17:10 +0000 (16:17 +0100)]
mgr/dashboard: Add Filesystems list component

Also adapted the existing cephfs components for them
to be used inside the new cephfs-list componment.

Fixes: https://tracker.ceph.com/issues/23825
Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agomgr/dashboard: Refactor CephFS controller
Tiago Melo [Tue, 8 May 2018 15:16:29 +0000 (16:16 +0100)]
mgr/dashboard: Refactor CephFS controller

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agoMerge pull request #22330 from neha-ojha/wip-async-up
Josh Durgin [Thu, 31 May 2018 18:07:50 +0000 (11:07 -0700)]
Merge pull request #22330 from neha-ojha/wip-async-up

osd/PG: do not choose stray osds as async_recovery_targets

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #22121 from mogeb/bluestore-mono-clock
Kefu Chai [Thu, 31 May 2018 16:20:41 +0000 (00:20 +0800)]
Merge pull request #22121 from mogeb/bluestore-mono-clock

os/bluestore: use the monotonic clock for perf counters latencies

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #22318 from rjfd/wip-dashboard-rest-methods
Kefu Chai [Thu, 31 May 2018 16:17:27 +0000 (00:17 +0800)]
Merge pull request #22318 from rjfd/wip-dashboard-rest-methods

mgr/dashboard: rest: add support for query params

Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #18241 from hjwsm1989/wip-21756
Kefu Chai [Thu, 31 May 2018 16:15:53 +0000 (00:15 +0800)]
Merge pull request #18241 from hjwsm1989/wip-21756

osd: don't check overwrite flag when handling copy-get

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agomon: enable level_compaction_dynamic_level_bytes for rocksdb 22337/head
Kefu Chai [Thu, 31 May 2018 15:04:14 +0000 (23:04 +0800)]
mon: enable level_compaction_dynamic_level_bytes for rocksdb

Fixes: http://tracker.ceph.com/issues/24361
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoqa/tasks: rbd_mirror_thrash should wait for daemon exit before restarting
Jason Dillaman [Thu, 24 May 2018 14:52:46 +0000 (10:52 -0400)]
qa/tasks: rbd_mirror_thrash should wait for daemon exit before restarting

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #22174 from zhongyimao/cleanup
Kefu Chai [Thu, 31 May 2018 13:30:08 +0000 (21:30 +0800)]
Merge pull request #22174 from zhongyimao/cleanup

doc: fix typos

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agolibrbd: commit IO as safe when complete if writeback cache is disabled 22342/head
Jason Dillaman [Thu, 31 May 2018 13:29:00 +0000 (09:29 -0400)]
librbd: commit IO as safe when complete if writeback cache is disabled

We do not need to flush IO to ensure its safe if the writeback cache is
disabled when performing a journal replay. Instead, immediately mark the
IO as safe and let the journal's periodic commit throttle handle updating
the position.

Fixes: http://tracker.ceph.com/issues/23516
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agomon/OSDMonitor: avoid many/most OSDMap::get_inst() calls
Sage Weil [Wed, 30 May 2018 18:48:14 +0000 (13:48 -0500)]
mon/OSDMonitor: avoid many/most OSDMap::get_inst() calls

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomessages/MOSDFailure: use addrvec instead of addr
Sage Weil [Wed, 30 May 2018 18:34:08 +0000 (13:34 -0500)]
messages/MOSDFailure: use addrvec instead of addr

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: kill get_{cluster,hb_front,hb_back}_inst users
Sage Weil [Wed, 30 May 2018 17:45:48 +0000 (12:45 -0500)]
osd: kill get_{cluster,hb_front,hb_back}_inst users

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon/OSDMonitor: kill get_most_recent_inst usage
Sage Weil [Wed, 30 May 2018 17:43:09 +0000 (12:43 -0500)]
mon/OSDMonitor: kill get_most_recent_inst usage

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/OSDMap: add addrvec accessors
Sage Weil [Wed, 30 May 2018 17:42:10 +0000 (12:42 -0500)]
osd/OSDMap: add addrvec accessors

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomds/MDSMap: remove inst and addr accessors
Sage Weil [Wed, 30 May 2018 15:43:57 +0000 (10:43 -0500)]
mds/MDSMap: remove inst and addr accessors

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoclient: switch to addrvec for MetaSession
Sage Weil [Wed, 30 May 2018 15:43:44 +0000 (10:43 -0500)]
client: switch to addrvec for MetaSession

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomds: use addrvec interface
Sage Weil [Wed, 30 May 2018 15:52:05 +0000 (10:52 -0500)]
mds: use addrvec interface

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomds/MDSMap: add addrvec accessors
Sage Weil [Wed, 30 May 2018 15:43:15 +0000 (10:43 -0500)]
mds/MDSMap: add addrvec accessors

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr: use entity_addrvec_t for MgrMap
Sage Weil [Tue, 29 May 2018 21:47:07 +0000 (16:47 -0500)]
mgr: use entity_addrvec_t for MgrMap

This does several entity_addr_t -> entity_addrvec_t conversions across the
mgr code.

(Note that entity_addr_t and entity_addrvec_t already encode in an
interoperable way.)

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomsg/msg_types: include type in entity_addr_t::dump()
Sage Weil [Tue, 29 May 2018 21:47:21 +0000 (16:47 -0500)]
msg/msg_types: include type in entity_addr_t::dump()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomsg: add Message addrvec accessors
Sage Weil [Wed, 30 May 2018 15:30:25 +0000 (10:30 -0500)]
msg: add Message addrvec accessors

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomsg/Messenger: *myinst -> *myname and *myaddr
Sage Weil [Sat, 26 May 2018 13:42:07 +0000 (08:42 -0500)]
msg/Messenger: *myinst -> *myname and *myaddr

Initial step moving Messenger interface away from entity_inst_t.  This
is mostly s/my_inst.addr/my_addr/ and s/my_inst.name/my_name/.

Also add Connection::get_peer_addrs() and Messenger::get_myaddrs().

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoSubmittingPatches: fix the spelling error 22174/head
Mao Zhongyi [Thu, 24 May 2018 01:51:44 +0000 (09:51 +0800)]
SubmittingPatches: fix the spelling error

Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
7 years agolibrados: fix the spelling error
Mao Zhongyi [Wed, 23 May 2018 07:14:03 +0000 (15:14 +0800)]
librados: fix the spelling error

Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
7 years agodoc: update the discarded option '--delay' in command 'rbd trash mv'
Mao Zhongyi [Wed, 23 May 2018 01:37:05 +0000 (09:37 +0800)]
doc: update the discarded option '--delay' in command 'rbd trash mv'

I got the following error message when I used the command '#rbd trash
mv foo --delay' as a document:

rbd: unrecognised option '--delay'

so replace the discarded option '--delay' with '--expires-at' avoid
others getting into the same doubt. In addition, some spelling mistakes
were fixed.

Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
7 years agomsg/Messenger: add per-type connect_to_* and send_to_*
Sage Weil [Wed, 30 May 2018 15:57:00 +0000 (10:57 -0500)]
msg/Messenger: add per-type connect_to_* and send_to_*

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomsg/Messenger: add send_to() and connect_to() addrvec-base variants
Sage Weil [Tue, 29 May 2018 21:27:30 +0000 (16:27 -0500)]
msg/Messenger: add send_to() and connect_to() addrvec-base variants

For now, just wrap the existing methods and assume all addrs are legacy
addrs.  (That will change soon.)

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agotest/direct_messenger: disable for now
Sage Weil [Tue, 29 May 2018 19:11:20 +0000 (14:11 -0500)]
test/direct_messenger: disable for now

This is failing after the addrvec changes (coming next) and it has no
users.  We can fix and resurrect it later when we need it.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoos/bluestore: remove useless condtion. 22335/head
Jianpeng Ma [Wed, 30 May 2018 15:44:45 +0000 (23:44 +0800)]
os/bluestore: remove useless condtion.

onode must not be null in this func.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agodoc: update blkin changes 22317/head
Mahati Chamarthy [Wed, 30 May 2018 08:58:47 +0000 (14:28 +0530)]
doc: update blkin changes

Update blkin and zipkin changes to reflect current state

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
7 years agoMerge pull request #20822 from Devp00l/table-user-config
Lenz Grimmer [Thu, 31 May 2018 09:11:22 +0000 (11:11 +0200)]
Merge pull request #20822 from Devp00l/table-user-config

mgr/dashboard: Store user table configurations

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoceph-volume: sort and align output 21812/head
Theofilos Mouratidis [Fri, 4 May 2018 09:37:18 +0000 (11:37 +0200)]
ceph-volume: sort and align output

This commit targets the `ceph-volume lvm list` command.
The output is sorted by the osd id and each device's
attributed are sorted, so the ceph operators can find
relevant information easier. The devices (block,db,..etc)
are now properly aligned.

Signed-off-by: Theofilos Mouratidis <t.mour@cern.ch>
7 years agotest/encoding: Fix typo in encoding/types.h file 22332/head
TommyLike [Thu, 31 May 2018 03:37:09 +0000 (11:37 +0800)]
test/encoding: Fix typo in encoding/types.h file

Fix typo in encoding/types.h fie

Signed-off-by: TommyLike <tommylikehu@gmail.com>
7 years agoMerge pull request #22292 from tchaikov/wip-20924
Kefu Chai [Thu, 31 May 2018 05:31:03 +0000 (13:31 +0800)]
Merge pull request #22292 from tchaikov/wip-20924

osd,mon,msg: use intrusive_ptr for holding Connection::priv

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoPG: do not choose stray osds as async_recovery_targets 22330/head
Neha Ojha [Wed, 30 May 2018 18:33:41 +0000 (11:33 -0700)]
PG: do not choose stray osds as async_recovery_targets

Without this change, we might accept stray osds as async_recovery_targets,
and need to ensure that they get a chance to become part of the acting set
after recovery is over.

However, when choose_acting() is called in the Recovered state, we set
restrict_to_up_acting=true, which does not allow them to get back to the
acting set.

Therefore, similar to backfill, do not allow stray osds to become
async_recovery_targets.

Signed-off-by: Neha Ojha <nojha@redhat.com>
7 years agomds,osd,mon,msg: use intrusive_ptr for holding Connection::priv 22292/head
Kefu Chai [Tue, 29 May 2018 07:51:07 +0000 (15:51 +0800)]
mds,osd,mon,msg: use intrusive_ptr for holding Connection::priv

See-also: http://tracker.ceph.com/issues/20924
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22010 from b-ranto/wip-expose-avgcount
Boris Ranto [Wed, 30 May 2018 15:15:41 +0000 (17:15 +0200)]
Merge pull request #22010 from b-ranto/wip-expose-avgcount

Expose avgcount to the python modules

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reveiwed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22155 from tspmelo/fix-jest-coverage
Lenz Grimmer [Wed, 30 May 2018 15:14:02 +0000 (17:14 +0200)]
Merge pull request #22155 from tspmelo/fix-jest-coverage

mgr/dashboard: Fix Jest conflict with coverage files

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agolibrbd: utilize the journal disabled policy when removing images 22327/head
Jason Dillaman [Wed, 30 May 2018 14:34:48 +0000 (10:34 -0400)]
librbd: utilize the journal disabled policy when removing images

Fixes: http://tracker.ceph.com/issues/23512
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agodoc/prometheus: Mention the long running avg types 22010/head
Boris Ranto [Tue, 22 May 2018 20:51:04 +0000 (22:51 +0200)]
doc/prometheus: Mention the long running avg types

Signed-off-by: Boris Ranto <branto@redhat.com>
7 years agoprometheus: Expose sum/count pairs for avgs
Boris Ranto [Wed, 16 May 2018 15:59:59 +0000 (17:59 +0200)]
prometheus: Expose sum/count pairs for avgs

This patch exposes the long running avgs as sum/count pairs in the
prometheus exporter module.

Signed-off-by: Boris Ranto <branto@redhat.com>
7 years agomgr_module: Deal with long running avgs properly
Boris Ranto [Tue, 15 May 2018 09:05:22 +0000 (11:05 +0200)]
mgr_module: Deal with long running avgs properly

We have recently started exposing long running avgs with the mgr python
modules but that only covers the total sum, not the avgcount.

With this patch, the counts for long running avgs are exposed to the
python modules allowing them to deal with the new data.

Signed-off-by: Boris Ranto <branto@redhat.com>
7 years agomgr: Expose avgcount for long running avgs
Boris Ranto [Tue, 15 May 2018 08:27:53 +0000 (10:27 +0200)]
mgr: Expose avgcount for long running avgs

This provides a basic interface to export avg count for long running
averages.

Signed-off-by: Boris Ranto <branto@redhat.com>