]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agolibrbd: clean up pre-release lock handling 12982/head
Jason Dillaman [Wed, 18 Jan 2017 16:14:56 +0000 (11:14 -0500)]
librbd: clean up pre-release lock handling

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agotest: separate testing of exclusive lock from managed lock
Jason Dillaman [Wed, 18 Jan 2017 15:44:52 +0000 (10:44 -0500)]
test: separate testing of exclusive lock from managed lock

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: removed ManagedLock dependency from ancillary classes
Jason Dillaman [Tue, 17 Jan 2017 18:42:43 +0000 (13:42 -0500)]
librbd: removed ManagedLock dependency from ancillary classes

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12972 from linuxbox2/wip-librgw-shut
Matt Benjamin [Wed, 18 Jan 2017 21:31:26 +0000 (16:31 -0500)]
Merge pull request #12972 from linuxbox2/wip-librgw-shut

rgw: librgw shut

8 years agoMerge pull request #12907 from theanalyst/wip-18064
Casey Bodley [Wed, 18 Jan 2017 19:21:41 +0000 (14:21 -0500)]
Merge pull request #12907 from theanalyst/wip-18064

rgw: sync status compares the current master period

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #12357 from dongbula/fix-versioned-bucket-datasync-fail
Casey Bodley [Wed, 18 Jan 2017 19:21:00 +0000 (14:21 -0500)]
Merge pull request #12357 from dongbula/fix-versioned-bucket-datasync-fail

rgw: fix versioned bucket data sync fail when upload is busy

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #12945 from jimmyway/wip-add-cmd-snap-set-limit-prompt
Jason Dillaman [Wed, 18 Jan 2017 19:15:58 +0000 (14:15 -0500)]
Merge pull request #12945 from jimmyway/wip-add-cmd-snap-set-limit-prompt

rbd: add error prompt when input command 'snap set limit' is incomplete

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12886 from rjfd/wip-shared-managed-lock
Jason Dillaman [Wed, 18 Jan 2017 19:15:03 +0000 (14:15 -0500)]
Merge pull request #12886 from rjfd/wip-shared-managed-lock

librbd: support for shared locking in ManagedLock

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrgw: remove call to crypto::shutdown 12972/head
Matt Benjamin [Wed, 18 Jan 2017 04:27:41 +0000 (23:27 -0500)]
librgw: remove call to crypto::shutdown

The call is cognate to removed code in radosgw, and triggers an
assert that the crypto module has already been shutdown.  With this
and preceding changes, I see clean shutdown on abnormal termination
of nfs-ganesha during startup.

Fixes: http://tracker.ceph.com/issues/18585
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw: s/static std::map/static pointer/ for ext_mime_map
Matt Benjamin [Wed, 18 Jan 2017 04:10:58 +0000 (23:10 -0500)]
rgw:  s/static std::map/static pointer/ for ext_mime_map

In some librgw shutdown cases, it appears that the shared
object runtime has partially destructed the static map when
our shutdown code is running.

Fixes: http://tracker.ceph.com/issues/18585
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorgw_file: signal RGWLibFrontend shutdown correctly
Matt Benjamin [Wed, 18 Jan 2017 04:07:17 +0000 (23:07 -0500)]
rgw_file:  signal RGWLibFrontend shutdown correctly

The shutdown member of RGWLibProcess should be set.

Fixes: http://tracker.ceph.com/issues/18585
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #12927 from rjfd/wip-fix-rpath-suse
Kefu Chai [Wed, 18 Jan 2017 15:08:09 +0000 (23:08 +0800)]
Merge pull request #12927 from rjfd/wip-fix-rpath-suse

cmake: fix rpath on shared libraries and binaries targets

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12750 from zhangsw/feature-rgw-lc-validatei
Daniel Gryniewicz [Wed, 18 Jan 2017 14:36:50 +0000 (09:36 -0500)]
Merge pull request #12750 from zhangsw/feature-rgw-lc-validatei

rgw: add lifecycle validation according to S3.

8 years agoMerge pull request #12827 from Liuchang0812/wip-18459
Daniel Gryniewicz [Wed, 18 Jan 2017 14:08:39 +0000 (09:08 -0500)]
Merge pull request #12827 from Liuchang0812/wip-18459

doc: correct S3 lifecycle support explain

8 years agoMerge pull request #12681 from xiexingguo/xxg-wip-bluestore-1227
Sage Weil [Wed, 18 Jan 2017 13:37:15 +0000 (07:37 -0600)]
Merge pull request #12681 from xiexingguo/xxg-wip-bluestore-1227

os/bluestore: generate same onode extent-shard keys in a more efficient way

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #12696 from xiexingguo/xxg-wip-improve-loops
Sage Weil [Wed, 18 Jan 2017 13:36:45 +0000 (07:36 -0600)]
Merge pull request #12696 from xiexingguo/xxg-wip-improve-loops

os/bluestore: miscellaneous fixes to BitAllocator

Reviewed-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
8 years agoMerge pull request #12719 from xiexingguo/xxg-wip-bluestore-1229
Sage Weil [Wed, 18 Jan 2017 13:36:00 +0000 (07:36 -0600)]
Merge pull request #12719 from xiexingguo/xxg-wip-bluestore-1229

os/bluestore/BitmapFreelistManager: readability improvements

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12942 from Liuchang0812/cleanup-bluestore
Sage Weil [Wed, 18 Jan 2017 13:35:41 +0000 (07:35 -0600)]
Merge pull request #12942 from Liuchang0812/cleanup-bluestore

os/bluestore: avoid unnecessary memory copy, use variable reference in BlockDevice::Open

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #12946 from ifed01/wip-bluestore-pextent-vector-mempooled
Sage Weil [Wed, 18 Jan 2017 13:35:18 +0000 (07:35 -0600)]
Merge pull request #12946 from ifed01/wip-bluestore-pextent-vector-mempooled

os/bluestore: Add bluestore pextent vector to mempool

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agocmake: fix rpath on shared libraries and executables 12927/head
Ricardo Dias [Fri, 13 Jan 2017 20:15:02 +0000 (20:15 +0000)]
cmake: fix rpath on shared libraries and executables

The problem was due to the attempt of CMake to rewrite the RPATH of
the executables, or shared libraries, that didn't have any RPATH linked
during the building phase.

Currently INSTALL_RPATH is already set for all binaries. This patch
sets an empty INSTALL_RPATH for all binaries that don't depend on
any internal (also being built) target.

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agodoc: correct S3 lifecycle support explain 12827/head
liuchang0812 [Mon, 9 Jan 2017 03:34:02 +0000 (11:34 +0800)]
doc: correct S3 lifecycle support explain

Fixes: http://tracker.ceph.com/issues/18459
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
8 years agolibrbd: Support for shared locking in ManagedLock 12886/head
Ricardo Dias [Thu, 5 Jan 2017 11:23:56 +0000 (11:23 +0000)]
librbd: Support for shared locking in ManagedLock

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agoMerge pull request #12964 from jcsp/wip-18574
Gregory Farnum [Tue, 17 Jan 2017 17:37:21 +0000 (09:37 -0800)]
Merge pull request #12964 from jcsp/wip-18574

qa: update remaining ceph.com to download.ceph.com

8 years agoMerge pull request #12962 from dillaman/wip-rbd-boost-crash
Kefu Chai [Tue, 17 Jan 2017 16:48:51 +0000 (00:48 +0800)]
Merge pull request #12962 from dillaman/wip-rbd-boost-crash

rbd: remove direct linking to static boost libraries

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoqa: update remaining ceph.com to download.ceph.com 12964/head
John Spray [Tue, 17 Jan 2017 16:12:46 +0000 (17:12 +0100)]
qa: update remaining ceph.com to download.ceph.com

Fixes: http://tracker.ceph.com/issues/18574
Signed-off-by: John Spray <john.spray@redhat.com>
8 years agorbd: remove direct linking to static boost libraries 12962/head
Jason Dillaman [Tue, 17 Jan 2017 15:39:03 +0000 (10:39 -0500)]
rbd: remove direct linking to static boost libraries

The boost libraries are included in libceph-common. If linked
directly, boost::regex will abort during shutdown since it uses
a global static variable and it will be destructed twice.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12885 from rjfd/wip-18325
Jason Dillaman [Tue, 17 Jan 2017 13:45:52 +0000 (08:45 -0500)]
Merge pull request #12885 from rjfd/wip-18325

librbd: allow to open an image without opening the parent image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12922 from trociny/wip-managed_lock_refactoring
Jason Dillaman [Tue, 17 Jan 2017 13:45:22 +0000 (08:45 -0500)]
Merge pull request #12922 from trociny/wip-managed_lock_refactoring

librbd: managed lock refactoring

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12953 from dillaman/wip-18542
Mykola Golub [Tue, 17 Jan 2017 08:03:11 +0000 (10:03 +0200)]
Merge pull request #12953 from dillaman/wip-18542

qa/tasks/qemu: update default image url after ceph.com redesign

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #12954 from dillaman/wip-rbd-coverity
Mykola Golub [Tue, 17 Jan 2017 08:02:46 +0000 (10:02 +0200)]
Merge pull request #12954 from dillaman/wip-rbd-coverity

rbd: correct coverity warnings

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #12467 from bassam/pr-external-rocksdb
Kefu Chai [Tue, 17 Jan 2017 05:53:01 +0000 (13:53 +0800)]
Merge pull request #12467 from bassam/pr-external-rocksdb

cmake: support for external rocksdb

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agorbd: correct coverity warnings 12954/head
Jason Dillaman [Tue, 17 Jan 2017 03:44:04 +0000 (22:44 -0500)]
rbd: correct coverity warnings

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #9028 from tchaikov/wip-bt-dump
Kefu Chai [Tue, 17 Jan 2017 03:20:54 +0000 (11:20 +0800)]
Merge pull request #9028 from tchaikov/wip-bt-dump

common/BackTrace: add operator<<

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoqa/tasks/qemu: update default image url after ceph.com redesign 12953/head
Jason Dillaman [Tue, 17 Jan 2017 03:12:51 +0000 (22:12 -0500)]
qa/tasks/qemu: update default image url after ceph.com redesign

Fixes: http://tracker.ceph.com/issues/18542
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12807 from runsisi/wip-fix-pg-ls
Kefu Chai [Tue, 17 Jan 2017 02:56:21 +0000 (10:56 +0800)]
Merge pull request #12807 from runsisi/wip-fix-pg-ls

mon/PGMonitor: fix description for ceph pg ls

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agorgw: modify error code in lifecycle to be compatible with S3. 12750/head
Zhang Shaowen [Tue, 17 Jan 2017 02:44:31 +0000 (10:44 +0800)]
rgw: modify error code in lifecycle to be compatible with S3.

Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
8 years agomon/PGMonitor: ceph pg ls-by-pool only supports string type of pool arg 12807/head
runsisi [Fri, 6 Jan 2017 03:04:20 +0000 (11:04 +0800)]
mon/PGMonitor: ceph pg ls-by-pool only supports string type of pool arg

Signed-off-by: runsisi <runsisi@zte.com.cn>
8 years agoMerge pull request #12928 from tmuthamizhan/wip-ansible-fs-suite
Yuri Weinstein [Tue, 17 Jan 2017 00:55:34 +0000 (16:55 -0800)]
Merge pull request #12928 from tmuthamizhan/wip-ansible-fs-suite

qa/suites/ceph-ansible: removing fs workunit

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
8 years agolibrbd: helper methods to query and break lock 12922/head
Mykola Golub [Fri, 13 Jan 2017 14:13:22 +0000 (15:13 +0100)]
librbd: helper methods to query and break lock

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: managed_lock: make AcquireRequest use GetLockRequest and BreakRequest
Mykola Golub [Fri, 13 Jan 2017 13:51:16 +0000 (14:51 +0100)]
librbd: managed_lock: make AcquireRequest use GetLockRequest and BreakRequest

Initially this was implemented for exclusive_lock (03533b9,
23f60fe) but was lost when merging managed_lock refactoring.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #12915 from jcsp/wip-18361
John Spray [Mon, 16 Jan 2017 21:36:43 +0000 (21:36 +0000)]
Merge pull request #12915 from jcsp/wip-18361

client: populate metadata during mount

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agoMerge pull request #12107 from mslovy/wip-monmsg-minwait
Yuri Weinstein [Mon, 16 Jan 2017 21:12:06 +0000 (13:12 -0800)]
Merge pull request #12107 from mslovy/wip-monmsg-minwait

mon: no delay for single message MSG_ALIVE and MSG_PGTEMP

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11955 from batrick/log-2-to-1-write
Yuri Weinstein [Mon, 16 Jan 2017 21:10:09 +0000 (13:10 -0800)]
Merge pull request #11955 from batrick/log-2-to-1-write

log: use one write system call per message

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #9924 from Yan-waller/yj-wiph-commonentitynamecc
Yuri Weinstein [Mon, 16 Jan 2017 21:09:05 +0000 (13:09 -0800)]
Merge pull request #9924 from Yan-waller/yj-wiph-commonentitynamecc

common/config: fix return type of string::find and use string::npos

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12925 from liewegas/wip-crypto-shutdown-fixes
Yuri Weinstein [Mon, 16 Jan 2017 21:07:32 +0000 (13:07 -0800)]
Merge pull request #12925 from liewegas/wip-crypto-shutdown-fixes

common: misc fixes detected by crypto shutdown assert

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #12944 from liewegas/wip-centos-latest
Yuri Weinstein [Mon, 16 Jan 2017 20:31:28 +0000 (12:31 -0800)]
Merge pull request #12944 from liewegas/wip-centos-latest

qa/distros: make centos_latest 7.3

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
8 years agoMerge pull request #12841 from cbodley/wip-18407
Yehuda Sadeh [Mon, 16 Jan 2017 18:48:14 +0000 (10:48 -0800)]
Merge pull request #12841 from cbodley/wip-18407

rgw multisite: fix ref counting of completions

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #12605 from cbodley/wip-18300
Yehuda Sadeh [Mon, 16 Jan 2017 18:47:04 +0000 (10:47 -0800)]
Merge pull request #12605 from cbodley/wip-18300

rgw: RGWMetaSyncShardCR drops stack refs on destruction

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agolibrbd: allow to open an image without opening parent image 12885/head
Ricardo Dias [Tue, 10 Jan 2017 15:11:19 +0000 (15:11 +0000)]
librbd: allow to open an image without opening parent image

Fixes: http://tracker.ceph.com/issues/18325
Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agocmake: support for external rocksdb 12467/head
Bassam Tabbara [Sat, 10 Dec 2016 04:45:22 +0000 (20:45 -0800)]
cmake: support for external rocksdb

add support for building with an external rocksdb.

Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
8 years agoMerge pull request #12798 from wjwithagen/wip-wjw-krbd-optional
Jason Dillaman [Mon, 16 Jan 2017 16:22:15 +0000 (11:22 -0500)]
Merge pull request #12798 from wjwithagen/wip-wjw-krbd-optional

rbd: enable rbd on FreeBSD (without KRBD)

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoos/bluestore: add pextent vector to mempool 12946/head
Igor Fedotov [Mon, 16 Jan 2017 15:12:23 +0000 (15:12 +0000)]
os/bluestore: add pextent vector to mempool

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agotest/objectstore: add bufferptr & blouestore_blob_t::extents to "sizeof" UT
Igor Fedotov [Mon, 16 Jan 2017 14:47:31 +0000 (14:47 +0000)]
test/objectstore: add bufferptr & blouestore_blob_t::extents to "sizeof" UT

Signed-off-by: Igor Fedotvo <ifedotov@mirantis.com>
8 years agoMerge pull request #12930 from chendave/wip_cephx_refactor
Sage Weil [Mon, 16 Jan 2017 14:41:51 +0000 (08:41 -0600)]
Merge pull request #12930 from chendave/wip_cephx_refactor

msg: Revert the change from assert(0)-> ceph_abort() where is not applicable

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoqa/distros: make centos_latest 7.3 12944/head
Sage Weil [Mon, 16 Jan 2017 14:36:19 +0000 (09:36 -0500)]
qa/distros: make centos_latest 7.3

This will fix smithi runs and break vps runs until we get a 7.3 cloud-init
image ready.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agorbd: add error prompt when input command 'snap set limit' is incomplete 12945/head
tang.jin [Mon, 16 Jan 2017 14:28:23 +0000 (22:28 +0800)]
rbd: add error prompt when input command 'snap set limit' is incomplete

Signed-off-by: Tang Jin <tang.jin@istuary.com>
8 years agoos/bluestore: avoid unnecessary memory copy, use variable reference in BlockDevice... 12942/head
liuchang0812 [Mon, 16 Jan 2017 13:49:15 +0000 (21:49 +0800)]
os/bluestore: avoid unnecessary memory copy, use variable reference in BlockDevice::Open

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
8 years agoMerge pull request #12939 from johnlinp/fix-nspr-include
Kefu Chai [Mon, 16 Jan 2017 09:28:36 +0000 (17:28 +0800)]
Merge pull request #12939 from johnlinp/fix-nspr-include

cmake: search for nspr include files for both suffixes: nspr4 and nspr

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agocmake: search for nspr include files for both suffixes: nspr4 and nspr 12939/head
John Lin [Mon, 16 Jan 2017 08:26:44 +0000 (16:26 +0800)]
cmake: search for nspr include files for both suffixes: nspr4 and nspr

Fixes: http://tracker.ceph.com/issues/18535
Signed-off-by: John Lin <johnlinp@gmail.com>
8 years agoMerge pull request #12936 from badone/wip-pg-states-doc-fix
Kefu Chai [Mon, 16 Jan 2017 06:52:38 +0000 (14:52 +0800)]
Merge pull request #12936 from badone/wip-pg-states-doc-fix

doc: min_size advice is not helpful

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore: generate same onode extent-shard keys in a more efficient way 12681/head
xie xingguo [Mon, 16 Jan 2017 02:49:59 +0000 (10:49 +0800)]
os/bluestore: generate same onode extent-shard keys in a more efficient way

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agodoc: min_size advice is not helpful 12936/head
Brad Hubbard [Mon, 16 Jan 2017 02:36:33 +0000 (12:36 +1000)]
doc: min_size advice is not helpful

When we are in the incomplete state adjusting min_size will not help with recovery.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #12247 from YankunLi/fix_bf_append_parameter
Kefu Chai [Mon, 16 Jan 2017 01:55:14 +0000 (09:55 +0800)]
Merge pull request #12247 from YankunLi/fix_bf_append_parameter

bufferlist: cleanup semantical wrong for bufferlist::append

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12345 from rook/wip-embedded-add-rgw-mds
Kefu Chai [Mon, 16 Jan 2017 01:54:12 +0000 (09:54 +0800)]
Merge pull request #12345 from rook/wip-embedded-add-rgw-mds

cmake: add RGW and MDS to libcephd

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agocommon/BackTrace: add operator<< 9028/head
Kefu Chai [Tue, 10 May 2016 13:56:55 +0000 (21:56 +0800)]
common/BackTrace: add operator<<

replace BackTrace::print() with the operator<< where the former is used.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12784 from LiumxNL/fix-wrongly-delete-routed-op
Kefu Chai [Sun, 15 Jan 2017 08:17:48 +0000 (16:17 +0800)]
Merge pull request #12784 from LiumxNL/fix-wrongly-delete-routed-op

mon: fix wrongly delete routed pgstats op

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12651 from liewegas/wip-mempool-string
Sage Weil [Sun, 15 Jan 2017 04:35:31 +0000 (22:35 -0600)]
Merge pull request #12651 from liewegas/wip-mempool-string

os/bluestore: put strings in mempool

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #12661 from xiexingguo/xxg-wip-cleanup-bitalloc
Sage Weil [Sun, 15 Jan 2017 04:35:01 +0000 (22:35 -0600)]
Merge pull request #12661 from xiexingguo/xxg-wip-cleanup-bitalloc

os/bluestore: cleanup BitAllocator

Reviewed-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
8 years agoMerge pull request #12700 from ifed01/wip-bluestore-collection-everywhere
Sage Weil [Sun, 15 Jan 2017 04:34:22 +0000 (22:34 -0600)]
Merge pull request #12700 from ifed01/wip-bluestore-collection-everywhere

os/bluestore: various onode changes to reduce its in-memory footprint.

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12876 from xiexingguo/xxg-wip-be-for-cache
Sage Weil [Sun, 15 Jan 2017 04:34:13 +0000 (22:34 -0600)]
Merge pull request #12876 from xiexingguo/xxg-wip-be-for-cache

os/bluestore: use Best-Effort policy when evicting onode from cache

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12877 from xiexingguo/xxg-wip-compress-opt
Sage Weil [Sun, 15 Jan 2017 04:34:03 +0000 (22:34 -0600)]
Merge pull request #12877 from xiexingguo/xxg-wip-compress-opt

os/bluestore: conditionally load crr option

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12900 from XinzeChi/wip-bluestore-valid
Sage Weil [Sun, 15 Jan 2017 04:33:54 +0000 (22:33 -0600)]
Merge pull request #12900 from XinzeChi/wip-bluestore-valid

os/bluestore: nullptr in OmapIteratorImpl::valid

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12844 from athanatos/wip-17831
Samuel Just [Sun, 15 Jan 2017 02:48:00 +0000 (18:48 -0800)]
Merge pull request #12844 from athanatos/wip-17831

osd/ReplicatedBackend: take read locks for clone sources during recovery

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoRevert the change from assert(0)-> ceph_abort() where is not applicable 12930/head
Dave Chen [Sat, 14 Jan 2017 04:46:15 +0000 (12:46 +0800)]
Revert the change from assert(0)-> ceph_abort() where is not applicable

Signed-off-by: Dave Chen <wei.d.chen@intel.com>
8 years agoremoving fs workunit 12928/head
Tamil Muthamizhan [Fri, 13 Jan 2017 23:25:32 +0000 (15:25 -0800)]
removing fs workunit

removing fs workunit for now until tracker issue 18528 is resolved.

Signed-off-by: Tamil Muthamizhan <tmuthami@redhat.com>
8 years agoMerge pull request #12924 from dillaman/wip-librbd-test-header
Mykola Golub [Fri, 13 Jan 2017 21:40:46 +0000 (23:40 +0200)]
Merge pull request #12924 from dillaman/wip-librbd-test-header

test: correct language mode in file headers

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #12892 from ceph/wip-cd-fs-fix
Alfredo Deza [Fri, 13 Jan 2017 21:06:24 +0000 (16:06 -0500)]
Merge pull request #12892 from ceph/wip-cd-fs-fix

qa/tasks/ceph-deploy: use the new create option during instantiation

Reviewed-by: Alfredo Deza <adeza@redhat.com>
8 years agorgw: RGWCloneMetaLogCoroutine uses RGWMetadataLogInfoCompletion 12605/head
Casey Bodley [Thu, 5 Jan 2017 18:10:50 +0000 (13:10 -0500)]
rgw: RGWCloneMetaLogCoroutine uses RGWMetadataLogInfoCompletion

Fixes: http://tracker.ceph.com/issues/18412
Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: expose completion for RGWMetadataLog::get_info_async()
Casey Bodley [Thu, 5 Jan 2017 18:10:18 +0000 (13:10 -0500)]
rgw: expose completion for RGWMetadataLog::get_info_async()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: RGWMetaSyncShardCR drops stack refs on destruction
Casey Bodley [Wed, 21 Dec 2016 19:32:04 +0000 (14:32 -0500)]
rgw: RGWMetaSyncShardCR drops stack refs on destruction

if the coroutine is canceled before collect_children() can clean up
all of its child stacks, those stack refs will leak. store these
stacks as boost::intrusive_ptr so the ref is dropped automatically on
destruction

Fixes: http://tracker.ceph.com/issues/18300
Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #12884 from cbodley/wip-18488
Yehuda Sadeh [Fri, 13 Jan 2017 17:04:35 +0000 (09:04 -0800)]
Merge pull request #12884 from cbodley/wip-18488

rgw: fix off-by-one in RGWDataChangesLog::get_info

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoos/bluestore: put Onode::key in mempool 12651/head
Sage Weil [Fri, 23 Dec 2016 21:52:43 +0000 (16:52 -0500)]
os/bluestore: put Onode::key in mempool

This is a pain in the butt because std::string and
std::basic_string<...,custom allocator> are incompatible.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: avoid substr
Sage Weil [Fri, 23 Dec 2016 21:52:59 +0000 (16:52 -0500)]
os/bluestore: avoid substr

This creates an intermediate string, which is a waste.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agokv: add char* versions of get, set, rmkey
Sage Weil [Fri, 23 Dec 2016 21:36:44 +0000 (16:36 -0500)]
kv: add char* versions of get, set, rmkey

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore,kstore: combine kv helpers in header
Sage Weil [Fri, 23 Dec 2016 18:55:45 +0000 (13:55 -0500)]
os/bluestore,kstore: combine kv helpers in header

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: use mempool string for onode_t attr map
Sage Weil [Fri, 23 Dec 2016 18:35:40 +0000 (13:35 -0500)]
os/bluestore: use mempool string for onode_t attr map

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/denc: parameterize string by allocator
Sage Weil [Fri, 23 Dec 2016 17:20:27 +0000 (12:20 -0500)]
include/denc: parameterize string by allocator

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: Add string to mempool data types.
Allen Samuels [Sat, 3 Dec 2016 00:51:27 +0000 (16:51 -0800)]
mempool: Add string to mempool data types.

Signed-off-by: Allen Samuels <allen.samuels@sandisk.com>
8 years agoglobal/signal_handler: dump backtrace even from within logging code 12925/head
Sage Weil [Tue, 10 Jan 2017 03:53:31 +0000 (21:53 -0600)]
global/signal_handler: dump backtrace even from within logging code

We can dump the backtrace regardless of where we hit the assertion.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoglobal/signal_handler: behave if g_ceph_context or _log are null
Sage Weil [Tue, 10 Jan 2017 03:52:02 +0000 (21:52 -0600)]
global/signal_handler: behave if g_ceph_context or _log are null

This can happen if we trigger an assertion while g_ceph_context is being
torn down.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agounittest_crypto: fix leaks
Sage Weil [Sat, 24 Dec 2016 16:46:19 +0000 (11:46 -0500)]
unittest_crypto: fix leaks

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MonClient: use std::unique_ptr<>; fix leak
Sage Weil [Thu, 22 Dec 2016 20:23:33 +0000 (15:23 -0500)]
mon/MonClient: use std::unique_ptr<>; fix leak

We were leaking several heap items from
LibRadosMiscConnectFailure.ConnectFailure when connect() was called
multiple times (after failure).  Use std::unique_ptr to avoid maintaining
fragile cleanup paths.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12233 from kylinstorage/optimize_request_auth_log
Yuri Weinstein [Fri, 13 Jan 2017 16:29:24 +0000 (08:29 -0800)]
Merge pull request #12233 from kylinstorage/optimize_request_auth_log

osd/pg: bound the portion of the log we request in GetLog::GetLog()

Reviewed-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #12919 from tchaikov/wip-qa-cleanup
Kefu Chai [Fri, 13 Jan 2017 16:27:32 +0000 (00:27 +0800)]
Merge pull request #12919 from tchaikov/wip-qa-cleanup

tests: remove temporary file

Reviewed-by: Abhishek Lekshmanan <alekshmanan@suse.com>
8 years agoMerge pull request #12615 from linuxbox2/wip-sanitizers
Kefu Chai [Fri, 13 Jan 2017 16:26:12 +0000 (00:26 +0800)]
Merge pull request #12615 from linuxbox2/wip-sanitizers

build/cmake:  provide asan, tsan, ubsan builds

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
8 years agorgw_admin: read master log shards from master's current period 12907/head
Abhishek Lekshmanan [Fri, 13 Jan 2017 15:32:55 +0000 (16:32 +0100)]
rgw_admin: read master log shards from master's current period

Also make the sync output look similar to the output of data sync
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agorgw: allow getting master log shards info on specified period
Abhishek Lekshmanan [Fri, 13 Jan 2017 15:29:47 +0000 (16:29 +0100)]
rgw: allow getting master log shards info on specified period

This is needed for rgw admin's sync status or else we end up always
publishing that we're behind since we are always checking against
master's first period to sync from

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoMerge pull request #12920 from Liuchang0812/update-document-for-logging-level
Sage Weil [Fri, 13 Jan 2017 15:15:10 +0000 (09:15 -0600)]
Merge pull request #12920 from Liuchang0812/update-document-for-logging-level

doc: explain about logging levels

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agotest: correct language mode in file headers 12924/head
Jason Dillaman [Fri, 13 Jan 2017 15:05:10 +0000 (10:05 -0500)]
test: correct language mode in file headers

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12887 from jronak/documentation
Casey Bodley [Fri, 13 Jan 2017 15:03:35 +0000 (10:03 -0500)]
Merge pull request #12887 from jronak/documentation

Doc:Fixes Python Swift client commands

Reviewed-by: Casey Bodley <cbodley@redhat.com>