]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agocmake/modules/BuildDPDK.cmake: link whole-archive
Kefu Chai [Wed, 29 Aug 2018 07:38:25 +0000 (15:38 +0800)]
cmake/modules/BuildDPDK.cmake: link whole-archive

we build dpdk as static library, linking against them without specifying
--whole-archive will get the constructor symbols droppped by the linker
as they are not referenced directly by the excecutable. so we need to do
so to make sure we call all the constructors.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomsg/async: do not include dpdk headers in public header
Kefu Chai [Tue, 21 Aug 2018 04:12:46 +0000 (12:12 +0800)]
msg/async: do not include dpdk headers in public header

before this change, async/Stack.cc includes DPDKStack.h, which in
turn includes dpdk headers. this practically renders the dpdk::dpdk an
PUBLIC library of common_async_dpdk. as dpdk needs to be compiled
with -march=core2, we should constrain the scope of this compiler
option. hence this change.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: fix the build WITH_DPDK=ON
Kefu Chai [Mon, 20 Aug 2018 14:11:02 +0000 (22:11 +0800)]
cmake: fix the build WITH_DPDK=ON

* add Findcryptopp.cmake back
  cryptopp support was dropped in #20015, but it's required by
  src/msg/async/dpdk/TCP.h, which `#include <cryptopp/md5.h>`
  so, to fix the FTBFS of WITH_DPDK=ON, we need to bring
  Findcryptopp.cmake back. it was also removed in #20015.
* pass "-march=core2" when building sources which include dpdk headers.
  i was wrong that the headers shipped by distro are generic.
  the headers use the sse instructions for speedup memcpy, see
  /usr/include/x86_64-linux-gnu/dpdk/rte_memcpy.h .
* also, we need to include the arch specific include directory
  for building with dpdk.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomsg/dpdk: use ceph::crypto::MD5 instead of cryptopp
Casey Bodley [Mon, 20 Aug 2018 15:28:54 +0000 (11:28 -0400)]
msg/dpdk: use ceph::crypto::MD5 instead of cryptopp

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23767 from tchaikov/wip-operator-insertion-ADL
Kefu Chai [Thu, 30 Aug 2018 03:04:43 +0000 (11:04 +0800)]
Merge pull request #23767 from tchaikov/wip-operator-insertion-ADL

include/types: move operator<< into the proper namespace

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23795 from tchaikov/wip-cmake-definitions-cleanup
Kefu Chai [Thu, 30 Aug 2018 02:36:30 +0000 (10:36 +0800)]
Merge pull request #23795 from tchaikov/wip-cmake-definitions-cleanup

cmake: no need to add "-D" before definitions

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Ali Maredia <amaredia@redhat.com>
6 years agoMerge pull request #23774 from tchaikov/wip-include-cleanup
Kefu Chai [Thu, 30 Aug 2018 02:32:41 +0000 (10:32 +0800)]
Merge pull request #23774 from tchaikov/wip-include-cleanup

auth,common: include cleanups

Reviewed-by: Noah Watkins <nwatkins@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23733 from dillaman/wip-migration-parent
Mykola Golub [Wed, 29 Aug 2018 18:45:08 +0000 (21:45 +0300)]
Merge pull request #23733 from dillaman/wip-migration-parent

librbd: always open first parent image if it exists for a snapshot

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #23788 from alfredodeza/wip-rm34311
Andrew Schoen [Wed, 29 Aug 2018 18:18:48 +0000 (13:18 -0500)]
Merge pull request #23788 from alfredodeza/wip-rm34311

ceph-volume: tests.functional inherit SSH_ARGS from ansible

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume tests.functional use Debian ansible os family in deploy.yml 23788/head
Alfredo Deza [Wed, 29 Aug 2018 17:32:55 +0000 (10:32 -0700)]
ceph-volume tests.functional use Debian ansible os family in deploy.yml

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge PR #23742 into master
Sage Weil [Wed, 29 Aug 2018 17:25:23 +0000 (12:25 -0500)]
Merge PR #23742 into master

* refs/pull/23742/head:
mon/OSDMonitor: don't change in-memory state on prune

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoceph-volume lvm.batch use the abspath attribute for Device objects in bluestore
Alfredo Deza [Wed, 29 Aug 2018 16:56:21 +0000 (09:56 -0700)]
ceph-volume lvm.batch use the abspath attribute for Device objects in bluestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume lvm.batch remove usage of non-existent method
Alfredo Deza [Wed, 29 Aug 2018 16:55:31 +0000 (09:55 -0700)]
ceph-volume lvm.batch remove usage of non-existent method

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #23801 from alfredodeza/wip-rm34317
Alfredo Deza [Wed, 29 Aug 2018 16:32:15 +0000 (09:32 -0700)]
Merge pull request #23801 from alfredodeza/wip-rm34317

doc/rados update invalid bash on bluestore migration

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoceph-volume tests.functional inherit SSH_ARGS from ansible with synchronize module
Alfredo Deza [Tue, 28 Aug 2018 22:34:58 +0000 (15:34 -0700)]
ceph-volume tests.functional inherit SSH_ARGS from ansible with synchronize module

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #23787 from alfredodeza/wip-rm34310
Andrew Schoen [Wed, 29 Aug 2018 16:12:37 +0000 (11:12 -0500)]
Merge pull request #23787 from alfredodeza/wip-rm34310

ceph-volume lvm.batch remove non-existent sys_api property

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #23741 from liewegas/wip-protect-monmap
Kefu Chai [Wed, 29 Aug 2018 15:36:31 +0000 (23:36 +0800)]
Merge pull request #23741 from liewegas/wip-protect-monmap

mon: only share monmap after authenticating

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23738 from dmick/wip-fix-crashdump
Kefu Chai [Wed, 29 Aug 2018 15:26:46 +0000 (23:26 +0800)]
Merge pull request #23738 from dmick/wip-fix-crashdump

global/signal_handler.cc: report assert_file as correct name

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23734 from hjwsm1989/wip-speedup-upmap
Kefu Chai [Wed, 29 Aug 2018 15:25:30 +0000 (23:25 +0800)]
Merge pull request #23734 from hjwsm1989/wip-speedup-upmap

osd/OSDMap: map pgs with smaller batchs in calc_pg_upmaps

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge pull request #23681 from tchaikov/wip-26994
Kefu Chai [Wed, 29 Aug 2018 14:51:24 +0000 (22:51 +0800)]
Merge pull request #23681 from tchaikov/wip-26994

qa/mgr/selftest: handle always-on module fall out

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agodoc/rados update invalid bash on bluestore migration 23801/head
Alfredo Deza [Wed, 29 Aug 2018 14:26:11 +0000 (07:26 -0700)]
doc/rados update invalid bash on bluestore migration

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #23706 from tspmelo/wip-update-angular
Lenz Grimmer [Wed, 29 Aug 2018 09:34:16 +0000 (11:34 +0200)]
Merge pull request #23706 from tspmelo/wip-update-angular

mgr/dashboard: Update Angular packages

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
6 years agocmake: no need to add "-D" before definitions 23795/head
Kefu Chai [Wed, 29 Aug 2018 09:00:15 +0000 (17:00 +0800)]
cmake: no need to add "-D" before definitions

and there is no need to make the definition public for the executable
target.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomon,auth,common: include necessary headers 23774/head
Kefu Chai [Tue, 28 Aug 2018 12:08:33 +0000 (20:08 +0800)]
mon,auth,common: include necessary headers

we cannot assume the included header alway indirectly include the use types

in this case, CephContext is defined by ceph_context.h, and
g_ceph_context is declared by global_context.h. so we need to included
them respectively.

and remove unused headers.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoauth/AuthMethodList: add std:: before type names
Kefu Chai [Tue, 28 Aug 2018 12:07:22 +0000 (20:07 +0800)]
auth/AuthMethodList: add std:: before type names

we cannot assume 'using namespace std`

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoceph-volume lvm.batch remove non-existent sys_api property 23787/head
Alfredo Deza [Tue, 28 Aug 2018 21:28:08 +0000 (14:28 -0700)]
ceph-volume lvm.batch remove non-existent sys_api property

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoqa/mgr/selftest: handle always-on module fall out 23681/head
Noah Watkins [Tue, 28 Aug 2018 20:45:56 +0000 (13:45 -0700)]
qa/mgr/selftest: handle always-on module fall out

need a non-always-on module. hello doesn't work because it isn't
installed. so switch to selftest.

Signed-off-by: Noah Watkins <nwatkins@redhat.com>
6 years agoMerge pull request #23765 from chenzhua/master
Jason Dillaman [Tue, 28 Aug 2018 17:02:52 +0000 (13:02 -0400)]
Merge pull request #23765 from chenzhua/master

doc: fix spelling errors in rbd doc

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23596 from cbodley/wip-rgw-no-datalog-marker
Casey Bodley [Tue, 28 Aug 2018 15:30:31 +0000 (11:30 -0400)]
Merge pull request #23596 from cbodley/wip-rgw-no-datalog-marker

rgw multisite: incremental data sync uses truncated flag to detect end of listing

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agoMerge pull request #23768 from wjwithagen/wjw-fix-shared_mutex
Casey Bodley [Tue, 28 Aug 2018 13:00:54 +0000 (09:00 -0400)]
Merge pull request #23768 from wjwithagen/wjw-fix-shared_mutex

core: Clang misses <optional> include

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agomgr/dashboard: Update Angular packages 23706/head
Tiago Melo [Thu, 23 Aug 2018 10:32:49 +0000 (11:32 +0100)]
mgr/dashboard: Update Angular packages

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agocore: Clang misses <optional> include 23768/head
Willem Jan Withagen [Tue, 28 Aug 2018 09:21:00 +0000 (11:21 +0200)]
core: Clang misses <optional> include

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
6 years agoMerge pull request #23764 from ceph/docs
Kai Wagner [Tue, 28 Aug 2018 07:59:57 +0000 (09:59 +0200)]
Merge pull request #23764 from ceph/docs

doc: fixed typo in cephfs snapshots

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23699 from tchaikov/wip-monc-drop-rwlock
Kefu Chai [Tue, 28 Aug 2018 07:36:23 +0000 (15:36 +0800)]
Merge pull request #23699 from tchaikov/wip-monc-drop-rwlock

auth: drop the RWLock in AuthClientHandler

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoinclude/types: move operator<< into the proper namespace 23767/head
Kefu Chai [Tue, 28 Aug 2018 06:48:28 +0000 (14:48 +0800)]
include/types: move operator<< into the proper namespace

we should define the operator<< in the namespace of its 2nd parameter.

normally, the operator<< defined in the global namespace works. but
there is a subtle difference between the operator<< defined in std
namespace and the global one because of Koenig lookup.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agodoc: fixed typo in cephfs snapshots 23764/head
Kai Wagner [Tue, 28 Aug 2018 06:24:47 +0000 (08:24 +0200)]
doc: fixed typo in cephfs snapshots

Signed-off-by: Kai Wagner <kwagner@suse.com>
6 years agodoc: fix spelling errors in rbd doc 23765/head
Chen Zhenghua [Tue, 28 Aug 2018 06:56:16 +0000 (14:56 +0800)]
doc: fix spelling errors in rbd doc

Signed-off-by: Chen Zhenghua <chen.zhenghua@zte.com.cn>
6 years agoMerge pull request #23763 from chenzhua/master
Jos Collin [Tue, 28 Aug 2018 02:41:48 +0000 (08:11 +0530)]
Merge pull request #23763 from chenzhua/master

doc: fix cephfs spelling errors

Reviewed-by: Jos Collin <jcollin@redhat.com>
6 years agodoc: fix cephfs spelling errors 23763/head
Chen Zhenghua [Tue, 28 Aug 2018 01:49:36 +0000 (09:49 +0800)]
doc: fix cephfs spelling errors

Signed-off-by: Chen Zhenghua <chen.zhenghua@zte.com.cn>
6 years agomon/OSDMonitor: don't change in-memory state on prune 23742/head
Joao Eduardo Luis [Sun, 26 Aug 2018 15:01:46 +0000 (16:01 +0100)]
mon/OSDMonitor: don't change in-memory state on prune

We were modifying the in-memory state when running through several
osdmap pruning functions.

Should the transaction we're encoding not be committed, we may end up in
a state where we have a stale in-memory state that does not match what
is on disk; including having in-memory state while not having on-disk
state.

We prevent this sort of inconsistency by working on temporary states
instead.

Fixes: http://tracker.ceph.com/issues/24612
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
6 years agolibrbd: always open first parent image if it exists for a snapshot 23733/head
Jason Dillaman [Fri, 17 Aug 2018 14:17:55 +0000 (10:17 -0400)]
librbd: always open first parent image if it exists for a snapshot

The deep-copy and migration features required force-opening the
parent image just in case the deep-flatten feature wasn't enabled
on an image. This change simplies the code by always opening the
direct parent image, which really only matters if a cloned image
has snapshots w/o the deep-flatten feature.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge PR #23718 into master
Sage Weil [Mon, 27 Aug 2018 20:31:43 +0000 (15:31 -0500)]
Merge PR #23718 into master

* refs/pull/23718/head:
cleanup: Replace always-false assertions with abort
include/assert: Smarten up ceph_assert
common: Call ceph_abort(), not abort()
include,common: Remove assert and clobber-foo
rbd_replay: Use ceph_assert for asserts.
rbd_fuse: Use ceph_assert for asserts.
osdc: Use ceph_assert for asserts.
osd: Use ceph_assert for asserts.
msg: Use ceph_assert for asserts.
mgr: Use ceph_assert for asserts.
messages: Use ceph_assert for asserts.
mds: Use ceph_assert for asserts.
log: Use ceph_assert for asserts.
libradosstriper: Use ceph_assert for asserts.
librados: Use ceph_assert for asserts.
kv: Use ceph_assert for asserts.
test: Use ceph_assert for asserts.
key_value_store: Use ceph_assert for asserts.
json_spirit: Use ceph_assert for asserts.
journal: Use ceph_assert for asserts.
global: Use ceph_assert for asserts.
erasure-code: Use ceph_assert for asserts.
rbd: Use ceph_assert for asserts.
tools: Use ceph_assert for asserts.
rgw: Use ceph_assert for asserts.
mon: Use ceph_assert for asserts.
crush: Use ceph_assert for asserts in C++ code.
crimson: Use ceph_assert for asserts.
compressor: Use ceph_assert for asserts.
cls: Use ceph_assert for asserts.
client: Use ceph_assert for asserts.
auth: Use ceph_assert for asserts
os: Use ceph_assert for asserts
common: Use ceph_assert for asserts
include: Use ceph_assert for asserts
include/assert: Deprecate assert macro

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agomon: only share monmap after authenticated 23741/head
Sage Weil [Tue, 7 Aug 2018 17:59:25 +0000 (12:59 -0500)]
mon: only share monmap after authenticated

It is no longer necessary to fetch a monmap pre-authentication, something
we previous did for get_monmap_privately().  New code has replaced this
with get_monmap_and_config(), and it authenticates in order to get that
same information (plus configs).

That change was made in mimic, but we must support upgrades from N-2,
which means that luminous daemons still need to function.  The only caller
for get_monmap_privately() in luminous is from ceph-osd during mkfs.
Disabling this here means that new OSDs cannot be created using nautilus
mons and a luminous ceph-osd.  Include a note for the (future) nautilus
upgrade notes.

Reported-by: Christopher Ryan Harrell <harrellcr@email.arizona.edu>
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/AuthMonitor: do not share monmap until authenticated
Sage Weil [Tue, 7 Aug 2018 17:51:37 +0000 (12:51 -0500)]
mon/AuthMonitor: do not share monmap until authenticated

Reported-by: Christopher Ryan Harrell <harrellcr@email.arizona.edu>
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23750 from tchaikov/wip-doc-cephx
Sage Weil [Mon, 27 Aug 2018 14:51:10 +0000 (10:51 -0400)]
Merge pull request #23750 from tchaikov/wip-doc-cephx

doc/dev/cephx_protocol: fix couple errors

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23747 from tchaikov/wip-monclient-no-magic-nr
Sage Weil [Mon, 27 Aug 2018 14:50:04 +0000 (10:50 -0400)]
Merge pull request #23747 from tchaikov/wip-monclient-no-magic-nr

mon/MonClient: avoid using magic number for the `MAuth::protocol`

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agocleanup: Replace always-false assertions with abort 23718/head
Adam C. Emerson [Thu, 23 Aug 2018 20:27:11 +0000 (16:27 -0400)]
cleanup: Replace always-false assertions with abort

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoinclude/assert: Smarten up ceph_assert
Adam C. Emerson [Thu, 23 Aug 2018 19:39:11 +0000 (15:39 -0400)]
include/assert: Smarten up ceph_assert

Change ceph_assert_msg to not require a CephContext. Add
ceph_assert_msgf that accepts a format string.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agocommon: Call ceph_abort(), not abort()
Adam C. Emerson [Thu, 23 Aug 2018 18:32:03 +0000 (14:32 -0400)]
common: Call ceph_abort(), not abort()

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoinclude,common: Remove assert and clobber-foo
Adam C. Emerson [Thu, 23 Aug 2018 17:23:41 +0000 (13:23 -0400)]
include,common: Remove assert and clobber-foo

Since everything is using the ceph_assert macro, get rid of the assert
macro in include/assert.h .

As that is no longer a concern, get of macros to break the compile if
our macro gets replaced with the system assert.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agorbd_replay: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:26:38 +0000 (11:26 -0400)]
rbd_replay: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agorbd_fuse: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:26:30 +0000 (11:26 -0400)]
rbd_fuse: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoosdc: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:26:18 +0000 (11:26 -0400)]
osdc: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoosd: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:26:10 +0000 (11:26 -0400)]
osd: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agomsg: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:26:01 +0000 (11:26 -0400)]
msg: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agomgr: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:25:51 +0000 (11:25 -0400)]
mgr: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agomessages: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:25:42 +0000 (11:25 -0400)]
messages: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agomds: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:25:33 +0000 (11:25 -0400)]
mds: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agolog: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:25:26 +0000 (11:25 -0400)]
log: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agolibradosstriper: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:25:16 +0000 (11:25 -0400)]
libradosstriper: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agolibrados: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:25:02 +0000 (11:25 -0400)]
librados: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agokv: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:24:49 +0000 (11:24 -0400)]
kv: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agotest: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:24:39 +0000 (11:24 -0400)]
test: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agokey_value_store: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:24:28 +0000 (11:24 -0400)]
key_value_store: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agojson_spirit: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:24:12 +0000 (11:24 -0400)]
json_spirit: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agojournal: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:24:01 +0000 (11:24 -0400)]
journal: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoglobal: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:23:49 +0000 (11:23 -0400)]
global: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoerasure-code: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:23:37 +0000 (11:23 -0400)]
erasure-code: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agorbd: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:23:21 +0000 (11:23 -0400)]
rbd: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agotools: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:21:13 +0000 (11:21 -0400)]
tools: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agorgw: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:21:04 +0000 (11:21 -0400)]
rgw: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agomon: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:20:29 +0000 (11:20 -0400)]
mon: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoMerge pull request #20526 from k0ste/newfeature
Casey Bodley [Mon, 27 Aug 2018 13:26:21 +0000 (09:26 -0400)]
Merge pull request #20526 from k0ste/newfeature

docs: radosgw: ldap-auth: fixed option name 'rgw_ldap_searchfilter'

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agocrush: Use ceph_assert for asserts in C++ code.
Adam C. Emerson [Thu, 23 Aug 2018 15:20:00 +0000 (11:20 -0400)]
crush: Use ceph_assert for asserts in C++ code.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agocrimson: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:19:34 +0000 (11:19 -0400)]
crimson: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agocompressor: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:19:18 +0000 (11:19 -0400)]
compressor: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agocls: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:19:07 +0000 (11:19 -0400)]
cls: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoclient: Use ceph_assert for asserts.
Adam C. Emerson [Thu, 23 Aug 2018 15:18:54 +0000 (11:18 -0400)]
client: Use ceph_assert for asserts.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoauth: Use ceph_assert for asserts
Adam C. Emerson [Thu, 23 Aug 2018 15:18:15 +0000 (11:18 -0400)]
auth: Use ceph_assert for asserts

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoos: Use ceph_assert for asserts
Adam C. Emerson [Thu, 23 Aug 2018 15:17:42 +0000 (11:17 -0400)]
os: Use ceph_assert for asserts

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agocommon: Use ceph_assert for asserts
Adam C. Emerson [Thu, 23 Aug 2018 15:17:26 +0000 (11:17 -0400)]
common: Use ceph_assert for asserts

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoinclude: Use ceph_assert for asserts
Adam C. Emerson [Thu, 23 Aug 2018 15:16:52 +0000 (11:16 -0400)]
include: Use ceph_assert for asserts

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agoinclude/assert: Deprecate assert macro
Adam C. Emerson [Wed, 22 Aug 2018 16:39:41 +0000 (12:39 -0400)]
include/assert: Deprecate assert macro

Prior to switching callers to ceph_assert.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
6 years agodoc/dev/cephx_protocol: fix couple errors 23750/head
Kefu Chai [Mon, 27 Aug 2018 09:41:16 +0000 (17:41 +0800)]
doc/dev/cephx_protocol: fix couple errors

there are 3 phases of authentication and authorization in cephx:

0. proto = CEPH_AUTH_UNKNOWN, for start the session,
   create auth handlers on both sides.
1. GET_AUTH_SESSION_KEY, to get authenticated, the client will
   get the session ticket at the end of this phase. the session ticket,
   is actually also a service ticket for CEPH_ENTITY_TYPE_AUTH.
2. CEPHX_GET_PRINCIPAL_SESSION_KEY, to get authorized, the client
   will get the requested, service tickets at the end of this phase.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23391 from votdev/cleanup_25161
Lenz Grimmer [Mon, 27 Aug 2018 09:28:08 +0000 (11:28 +0200)]
Merge pull request #23391 from votdev/cleanup_25161

mgr/dashboard: Prevent API call on every keystroke

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agomon/MonClient: avoid using magic number for the `MAuth::protocol` 23747/head
Kefu Chai [Mon, 27 Aug 2018 08:26:10 +0000 (16:26 +0800)]
mon/MonClient: avoid using magic number for the `MAuth::protocol`

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23746 from libingyang-zte/master
Xie Xingguo [Mon, 27 Aug 2018 07:49:10 +0000 (15:49 +0800)]
Merge pull request #23746 from libingyang-zte/master

doc: Fix Spelling Error of Rados Deployment/Operations

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agodoc: Fix Spelling Error of Rados Deployment/Operations 23746/head
libingyang [Mon, 27 Aug 2018 02:47:47 +0000 (10:47 +0800)]
doc: Fix Spelling Error of Rados Deployment/Operations
Signed-off-by: Li Bingyang <li.bingyang1@zte.com.cn>
6 years agoMerge pull request #23745 from chenzhua/master
Xie Xingguo [Mon, 27 Aug 2018 04:13:48 +0000 (12:13 +0800)]
Merge pull request #23745 from chenzhua/master

doc: fix spelling errors of cephfs

Reviewed-by: Jos Collin <jcollin@redhat.com>
6 years agodoc: fix spelling errors of cephfs 23745/head
Chen Zhenghua [Mon, 27 Aug 2018 02:56:24 +0000 (10:56 +0800)]
doc: fix spelling errors of cephfs

Signed-off-by: Chen Zhenghua <chen.zhenghua@zte.com.cn>
6 years agoMerge pull request #23688 from tchaikov/wip-monclient-sub
Kefu Chai [Mon, 27 Aug 2018 02:19:49 +0000 (10:19 +0800)]
Merge pull request #23688 from tchaikov/wip-monclient-sub

mon/MonClient: extract MonSub out

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23736 from dillaman/wip-librbd-gmock
Mykola Golub [Sun, 26 Aug 2018 07:13:29 +0000 (10:13 +0300)]
Merge pull request #23736 from dillaman/wip-librbd-gmock

test/librbd: fix gmock warning in snapshot rollback test

Reviewed-by: songweibin <song.weibin@zte.com.cn>
Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge PR #23088 into master
Patrick Donnelly [Sat, 25 Aug 2018 20:14:09 +0000 (13:14 -0700)]
Merge PR #23088 into master

* refs/pull/23088/head:
mds: adjust export size after renaming directory into freezing subtree
mds: clear scatterlock's flushed when removing dirty
mds: export subtree part by part
mds: change default mds_max_export_size to 20M
mds: limit total size of exporting subtrees
mds: optimize the way how max export size is enforced
mds: make CInode::get_dirfrags container agnostic
mds: cleanup MutationImpl::More initialization

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23548 into master
Patrick Donnelly [Sat, 25 Aug 2018 20:14:04 +0000 (13:14 -0700)]
Merge PR #23548 into master

* refs/pull/23548/head:
mds: migrate strays part by part when shutdown mds

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23439 into master
Patrick Donnelly [Sat, 25 Aug 2018 20:04:43 +0000 (13:04 -0700)]
Merge PR #23439 into master

* refs/pull/23439/head:
qa: whitelist cap revoke warning
doc: document cap revoke non-responders client eviction
test: validate client eviction for cap revoke non-responders
mds: add counter for tracking cap non-responding clients
mds: evict clients that do not respond to cap revoke by MDS
mds: pass timeout argument for fetching late clients

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #23413 into master
Patrick Donnelly [Sat, 25 Aug 2018 19:57:03 +0000 (12:57 -0700)]
Merge PR #23413 into master

* refs/pull/23413/head:
mds: fix premature stop of MDBalancer::try_rebalance()
mds: don't queue straydir for split

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #23469 into master
Patrick Donnelly [Sat, 25 Aug 2018 19:55:19 +0000 (12:55 -0700)]
Merge PR #23469 into master

* refs/pull/23469/head:
mds: access last std::vector element with `back()`
mds: disallow certain file operations to "." and ".." dirents

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #23656 into master
Patrick Donnelly [Sat, 25 Aug 2018 19:52:09 +0000 (12:52 -0700)]
Merge PR #23656 into master

* refs/pull/23656/head:
build/ops: rpm: package cephfs-shell for SUSE as well as Fedora

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #23640 into master
Patrick Donnelly [Sat, 25 Aug 2018 19:50:43 +0000 (12:50 -0700)]
Merge PR #23640 into master

* refs/pull/23640/head:
mds: use monotonic waits in Beacon

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
6 years agogithubmap: update contributors
Patrick Donnelly [Sat, 25 Aug 2018 19:50:42 +0000 (12:50 -0700)]
githubmap: update contributors

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>