]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoxio: build fixes (some unittest targets need XIO_LIBRARY) 11768/head
Matt Benjamin [Thu, 3 Nov 2016 14:38:44 +0000 (10:38 -0400)]
xio: build fixes (some unittest targets need XIO_LIBRARY)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoxio: build fixes (XioMessenger lacks features argument)
Matt Benjamin [Thu, 3 Nov 2016 14:46:55 +0000 (10:46 -0400)]
xio: build fixes (XioMessenger lacks features argument)

Applies the constructor signature change to the uses in
xio_client and xio_server test programs.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoxio: compile fix removing undeclared 'features'
Marov Aleksey [Thu, 3 Nov 2016 13:41:51 +0000 (09:41 -0400)]
xio:  compile fix removing undeclared 'features'

This fix was proposed on ceph-devel and acked by Sage Weil.
The corresponding change in in the later print is obvious
from context.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #9444 from Adirl/dout_prefix
Sage Weil [Thu, 3 Nov 2016 14:21:27 +0000 (09:21 -0500)]
Merge pull request #9444 from Adirl/dout_prefix

xio: provide dout_prefix for XioConnection

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #11704 from dillaman/wip-17752
Mykola Golub [Thu, 3 Nov 2016 13:59:49 +0000 (15:59 +0200)]
Merge pull request #11704 from dillaman/wip-17752

librbd: do not create empty object map object on image creation

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11696 from tanghaodong25/rocksdb-breakdown-wip
Sage Weil [Thu, 3 Nov 2016 13:51:48 +0000 (08:51 -0500)]
Merge pull request #11696 from tanghaodong25/rocksdb-breakdown-wip

kv/rocksdb: enable rocksdb write path breakdown

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11752 from stiopaa1/mds_mdsrank_addConstToMemFunc
Sage Weil [Thu, 3 Nov 2016 13:48:37 +0000 (08:48 -0500)]
Merge pull request #11752 from stiopaa1/mds_mdsrank_addConstToMemFunc

mds/MDSRank: add const to member functions

8 years agoMerge pull request #11761 from xiexingguo/xxg-wip-fix-envmirror-cleanup
Sage Weil [Thu, 3 Nov 2016 13:43:15 +0000 (08:43 -0500)]
Merge pull request #11761 from xiexingguo/xxg-wip-fix-envmirror-cleanup

os/bluestore: fixes and cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11762 from atheism/doc-rgw-s3-javaapi
Matt Benjamin [Thu, 3 Nov 2016 13:31:56 +0000 (09:31 -0400)]
Merge pull request #11762 from atheism/doc-rgw-s3-javaapi

doc: rgw: fix a typo in S3 java api example

8 years agodoc: rgw: fix a typo in S3 java api example 11762/head
Weibing Zhang [Thu, 3 Nov 2016 10:23:02 +0000 (18:23 +0800)]
doc: rgw: fix a typo in S3 java api example

    ObjectSummary.getSize() should be objectSummary.getSize()

Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
8 years agoMerge pull request #11753 from yehudasa/wip-17790
Orit Wasserman [Thu, 3 Nov 2016 10:07:24 +0000 (11:07 +0100)]
Merge pull request #11753 from yehudasa/wip-17790

rgw: support for x-robots-tag header
Reviewed-by: Orit wasserman <owasserm@redhat.com>
8 years agoos/bluestore: fix improper call of shutdown() to mempool_thread 11761/head
xie xingguo [Thu, 3 Nov 2016 07:15:36 +0000 (15:15 +0800)]
os/bluestore: fix improper call of shutdown() to mempool_thread

Because below here we haven't called mempool_thread.init() yet,
and call to mempool_thread.shutdown() will therefore raise an assert instead.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: drop safe check against g_conf
xie xingguo [Thu, 3 Nov 2016 06:44:42 +0000 (14:44 +0800)]
os/bluestore: drop safe check against g_conf

We are using g_conf unconditionly everywhere...

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: drop redundant boundary check
xie xingguo [Thu, 3 Nov 2016 03:18:25 +0000 (11:18 +0800)]
os/bluestore: drop redundant boundary check

As we have done the sanity check ahead.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: fix "rm -rf" cmd
xie xingguo [Thu, 3 Nov 2016 06:14:49 +0000 (14:14 +0800)]
os/bluestore: fix "rm -rf" cmd

The original cmd won't do the tidy-up work completedly.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agorgw: support for x-robots-tag header 11753/head
Yehuda Sadeh [Wed, 2 Nov 2016 22:55:34 +0000 (15:55 -0700)]
rgw: support for x-robots-tag header

Fixes: http://tracker.ceph.com/issues/17790
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11331 from liewegas/wip-mempool
Sage Weil [Wed, 2 Nov 2016 17:50:23 +0000 (12:50 -0500)]
Merge pull request #11331 from liewegas/wip-mempool

mempool: mempool infrastructure, bluestore changes to use it

Reviewed-by: Allen Samuels <allen.samuels@sandisk.com>
8 years agomempool: use function static for pool table 11331/head
Sage Weil [Thu, 20 Oct 2016 15:10:08 +0000 (10:10 -0500)]
mempool: use function static for pool table

The compiler/linker guarantee this is initialized before any invocation
of this function... even if it is by a ctor in another compilation unit
that is initialized by the mempool.cc compilation unit.

Suggested by Bartłomiej Święcki <bartlomiej.swiecki@corp.ovh.com>

Signed-off-by: Allen Samuels <allen.samuels@sandisk.com>
8 years agomempool: do not dump unused pools
Sage Weil [Tue, 18 Oct 2016 16:12:43 +0000 (12:12 -0400)]
mempool: do not dump unused pools

Notably, unittest_[12]. :)

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: put pool namespaces within mempool::
Sage Weil [Tue, 18 Oct 2016 16:09:39 +0000 (12:09 -0400)]
mempool: put pool namespaces within mempool::

e.g., mempool::bluestore_meta_other::list<...> ...

This avoids colliding with other names and types when the pool
name is something common (like "osd").

Signed-off-by: Sage Weil <sage@redhat.com>
# Conflicts:
# src/include/mempool.h

8 years agomempool: simplify debug settings
Sage Weil [Tue, 18 Oct 2016 16:06:27 +0000 (12:06 -0400)]
mempool: simplify debug settings

There's no need for a per-pool debug flag; just use the global
debug_mode bool!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: force per-type factories to register with the pool
Sage Weil [Tue, 18 Oct 2016 16:03:28 +0000 (12:03 -0400)]
mempool: force per-type factories to register with the pool

We want these to get their debug flag adjusted when it is turned
on and off.

(In contrast, we accept that STL containers will only be debugged
if mempool debug was on when they are constructed.)

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/encoding: parameterize stl containers encoders with allocator
Sage Weil [Tue, 18 Oct 2016 02:42:17 +0000 (22:42 -0400)]
include/encoding: parameterize stl containers encoders with allocator

This will let us encode/decode containers with custom allocators
(i.e., in mempools).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: simplify initialization
Sage Weil [Tue, 18 Oct 2016 16:01:52 +0000 (12:01 -0400)]
mempool: simplify initialization

Assume that the array will be zeroed when the process starts, and
avoid the possibility that it will be zeroed *again* when the
ctors run for this link module (potentially clobbering values
that have been filled in by other ctors who ran earlier than
ours).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/types: parameterize operator<< helpers on comparator, allocator
Sage Weil [Mon, 17 Oct 2016 18:19:27 +0000 (14:19 -0400)]
include/types: parameterize operator<< helpers on comparator, allocator

This allows these templates to apply to containers with
non-default comparators or allocators.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/mempool: fix comment
Sage Weil [Mon, 17 Oct 2016 17:56:59 +0000 (13:56 -0400)]
include/mempool: fix comment

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: dynamic index by type in pool_t
Sage Weil [Fri, 14 Oct 2016 21:50:33 +0000 (17:50 -0400)]
mempool: dynamic index by type in pool_t

This avoids having to use statics for the pool_allocators and
guessing what intenral types the containers are going to need.
It'll be a bit slower in debug on on construction and destruction,
but who cares!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/mempool: define additional pair factory for unordered_map
Sage Weil [Fri, 14 Oct 2016 20:48:52 +0000 (16:48 -0400)]
include/mempool: define additional pair factory for unordered_map

This fixes build on debian jessie, libstdc++-4.9-dev:amd64 4.9.2-10.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: pick shard on every allocation; move types to pool_t
Sage Weil [Tue, 11 Oct 2016 22:20:03 +0000 (18:20 -0400)]
mempool: pick shard on every allocation; move types to pool_t

If we have a static choice of shard for every *type*
(pool_allocator_base_t) then we will hammer that shard from all
threads and play cacheline ping-pong.  Instead, move the types
list to pool_t (there aren't that many anyway) and pick a shard
on every allocate/deallocate call.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomempool: make num_shards a power of 2
Sage Weil [Tue, 11 Oct 2016 22:17:41 +0000 (18:17 -0400)]
mempool: make num_shards a power of 2

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/mempool: rename containers -> types
Sage Weil [Tue, 11 Oct 2016 20:47:16 +0000 (16:47 -0400)]
include/mempool: rename containers -> types

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/mempool: note about runtime complexity
Sage Weil [Tue, 11 Oct 2016 20:44:51 +0000 (16:44 -0400)]
include/mempool: note about runtime complexity

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore/bluestore_types: disable ref_map internal _check
Sage Weil [Tue, 11 Oct 2016 19:46:42 +0000 (15:46 -0400)]
os/bluestore/bluestore_types: disable ref_map internal _check

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: restructure cache trimming in terms of mempool
Sage Weil [Tue, 11 Oct 2016 18:25:01 +0000 (14:25 -0400)]
os/bluestore: restructure cache trimming in terms of mempool

Trim cache based on overall memory utilization by cache objects,
as tracked by the bluestore_meta_* mempools.  This lets you
configure the bluestore cache size in terms of bytes of memory.

Note that we do not account for other memory utilization by the
OSD.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: move most cache types into mempools
Sage Weil [Tue, 11 Oct 2016 18:23:52 +0000 (14:23 -0400)]
os/bluestore: move most cache types into mempools

Keep onodes separate so we can use onodes as a sentinal for
overall memory usage (this is what we trim in terms of anyway).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoglobal: introduce mempool_debug config option, asok command
Sage Weil [Tue, 11 Oct 2016 18:21:56 +0000 (14:21 -0400)]
global: introduce mempool_debug config option, asok command

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoinclude/mempool: introduce mempool infrastructure
Sage Weil [Tue, 11 Oct 2016 18:33:14 +0000 (14:33 -0400)]
include/mempool: introduce mempool infrastructure

This is heavily based on Allen Samuels' prototype.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11726 from liewegas/wip-bluestore-fsck-omap
Sage Weil [Wed, 2 Nov 2016 13:49:11 +0000 (08:49 -0500)]
Merge pull request #11726 from liewegas/wip-bluestore-fsck-omap

os/bluestore: fsck: fix omap_head check

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: fsck: fix omap_head check 11726/head
Sage Weil [Wed, 2 Nov 2016 13:48:37 +0000 (09:48 -0400)]
os/bluestore: fsck: fix omap_head check

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11740 from xiexingguo/xxg-wip-bluestore-1102
Sage Weil [Wed, 2 Nov 2016 13:47:53 +0000 (08:47 -0500)]
Merge pull request #11740 from xiexingguo/xxg-wip-bluestore-1102

os/bluestore: less code redundancy

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11725 from liewegas/wip-bluestore-shard-span
Sage Weil [Wed, 2 Nov 2016 13:34:50 +0000 (08:34 -0500)]
Merge pull request #11725 from liewegas/wip-bluestore-shard-span

os/bluestore: fix extent shard span check

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #11738 from ceph/wip-cmake
Kefu Chai [Wed, 2 Nov 2016 10:44:26 +0000 (18:44 +0800)]
Merge pull request #11738 from ceph/wip-cmake

cmake: do not link erasure tests again libosd

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #11384 from wjwithagen/patch-14
Kefu Chai [Wed, 2 Nov 2016 10:39:28 +0000 (18:39 +0800)]
Merge pull request #11384 from wjwithagen/patch-14

test_subman.sh: Don't use --tmpdir

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agotest_subman.sh: Don't use --tmpdir 11384/head
Willem Jan Withagen [Sun, 9 Oct 2016 23:04:34 +0000 (01:04 +0200)]
test_subman.sh: Don't use --tmpdir

test_subman.sh: Don't use --tmpdir since on most Linux-is it is consideren default
when creating a directory:
`If TEMPLATE is not specified, use tmp.XXXXXXXXXX, and --tmpdir is implied.`

And on FreeBSD --tmpdir is not available anyways.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoos/bluestore: use string for most cases in _open_db() 11740/head
xie xingguo [Wed, 2 Nov 2016 09:22:23 +0000 (17:22 +0800)]
os/bluestore: use string for most cases in _open_db()

For a better readability.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agocmake: do not link erasure tests again libosd 11738/head
Kefu Chai [Wed, 2 Nov 2016 06:54:10 +0000 (14:54 +0800)]
cmake: do not link erasure tests again libosd

they are not referencing any symbols from it. and also the tests testing
plugins are not linked against the ec plugins, they *depend* on them.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agokv/rocksdb: enable rocksdb write path breakdown 11696/head
haodong [Fri, 28 Oct 2016 03:59:07 +0000 (11:59 +0800)]
kv/rocksdb: enable rocksdb write path breakdown

bluestore has unstable write performance partly because of
rocksdb internal overhead. So we add more breakdown in
rocksdb writh path.

Signed-off-by: Haodong Tang <haodong.tang@intel.com>
8 years agoMerge pull request #11730 from ceph/wip-17654
Kefu Chai [Wed, 2 Nov 2016 02:53:24 +0000 (10:53 +0800)]
Merge pull request #11730 from ceph/wip-17654

librados-dev: install inline_memory.h

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore: drop unused parameter "deep" from _fsck_check_extents()
xie xingguo [Wed, 2 Nov 2016 01:30:10 +0000 (09:30 +0800)]
os/bluestore: drop unused parameter "deep" from _fsck_check_extents()

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agotools/ceph_objectstore_tool: handle fsck and fsck-deep op in unified path
xie xingguo [Wed, 2 Nov 2016 01:19:15 +0000 (09:19 +0800)]
tools/ceph_objectstore_tool: handle fsck and fsck-deep op in unified path

https://github.com/ceph/ceph/pull/11724/commits/181e28ba999c4134957f04183bad5c4dfc0e7062
introduces too much code redundancy, this patch simplifies it a little.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agomds/MDSRank: add const to member functions 11752/head
Michal Jarzabek [Tue, 1 Nov 2016 22:22:37 +0000 (22:22 +0000)]
mds/MDSRank: add const to member functions

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agolibrados-dev: install inline_memory.h 11730/head
Josh Durgin [Tue, 1 Nov 2016 22:15:33 +0000 (15:15 -0700)]
librados-dev: install inline_memory.h

This is needed to compile against the c++ api since
c38869232c3c852d98fa1826632db360c5a6afd4

Fixes: http://tracker.ceph.com/issues/17654
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #11697 from weiqiaomiao/wqm-wip-rgw-bilist
Yehuda Sadeh [Tue, 1 Nov 2016 20:57:07 +0000 (13:57 -0700)]
Merge pull request #11697 from weiqiaomiao/wqm-wip-rgw-bilist

rgw: fix osd crashes when execute "radosgw-admin bi list --max-entries=1" command

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11695 from tanghaodong25/cache-logger-wip
Sage Weil [Tue, 1 Nov 2016 18:25:06 +0000 (13:25 -0500)]
Merge pull request #11695 from tanghaodong25/cache-logger-wip

os/bluestore: update cache logger after 'trim_cache' operation

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11506 from cbodley/wip-17569
Yehuda Sadeh [Tue, 1 Nov 2016 18:16:09 +0000 (11:16 -0700)]
Merge pull request #11506 from cbodley/wip-17569

rgw: clear data_sync_cr if RGWDataSyncControlCR fails

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11707 from yehudasa/wip-17755
Matt Benjamin [Tue, 1 Nov 2016 17:51:54 +0000 (13:51 -0400)]
Merge pull request #11707 from yehudasa/wip-17755

rgw: json encode/decode index_type, allow modification

8 years agoos/bluestore: rename variable in set_lextent 11725/head
Sage Weil [Tue, 1 Nov 2016 16:44:23 +0000 (12:44 -0400)]
os/bluestore: rename variable in set_lextent

Defensive naming

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: fix shard span check in set_lextent
Sage Weil [Tue, 1 Nov 2016 16:43:58 +0000 (12:43 -0400)]
os/bluestore: fix shard span check in set_lextent

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: fsck: check for extents spanning shards
Sage Weil [Tue, 1 Nov 2016 16:34:59 +0000 (12:34 -0400)]
os/bluestore: fsck: check for extents spanning shards

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: udpate cache logger after trim_cache 11695/head
haodong [Tue, 1 Nov 2016 15:39:03 +0000 (23:39 +0800)]
os/bluestore: udpate cache logger after trim_cache

Signed-off-by: Haodong Tang <haodong.tang@intel.com>
8 years agoMerge pull request #11708 from nitinkamble/master
Sage Weil [Tue, 1 Nov 2016 17:30:52 +0000 (12:30 -0500)]
Merge pull request #11708 from nitinkamble/master

install-deps.sh: allow building on SLES systems

8 years agoMerge pull request #10767 from rzarzynski/wip-rgw-frontend-rework
Matt Benjamin [Tue, 1 Nov 2016 17:11:07 +0000 (13:11 -0400)]
Merge pull request #10767 from rzarzynski/wip-rgw-frontend-rework

rgw: frontend subsystem rework

all requested changes have been made by the author
tested by-hand w/sigv2 and sigv4, and already passed teuthology rgw suite

8 years agoMerge pull request #11724 from liewegas/wip-bluestore-fsck
Sage Weil [Tue, 1 Nov 2016 16:21:16 +0000 (11:21 -0500)]
Merge pull request #11724 from liewegas/wip-bluestore-fsck

os/bluestore: deep fsck

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: verify we can read objects on deep fsck 11724/head
Sage Weil [Tue, 1 Nov 2016 15:11:07 +0000 (11:11 -0400)]
os/bluestore: verify we can read objects on deep fsck

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos: add fsck deep/shallow option
Sage Weil [Fri, 28 Oct 2016 11:34:22 +0000 (06:34 -0500)]
os: add fsck deep/shallow option

deep==false checks just metadata, and deep==true will (eventually) check
all data (and checksums) too.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph_test_objectstore: fix synthetic fsck
Sage Weil [Tue, 1 Nov 2016 15:15:25 +0000 (11:15 -0400)]
ceph_test_objectstore: fix synthetic fsck

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11537 from liewegas/wip-bluestore-parallel
Sage Weil [Tue, 1 Nov 2016 15:59:30 +0000 (10:59 -0500)]
Merge pull request #11537 from liewegas/wip-bluestore-parallel

os/bluestore: refactor bluestore_sync_submit_transaction

Reviewed-by: Somnath Roy <somnath.roy@sandisk.com>
Reviewed-by: Jianpeng Ma <jianpeng.ma@intel.com>
8 years agoMerge pull request #11661 from ceph/wip-git-ver
Sage Weil [Tue, 1 Nov 2016 15:04:10 +0000 (10:04 -0500)]
Merge pull request #11661 from ceph/wip-git-ver

cmake: fix git version string, cleanup

8 years agoos/bluestore: default to bluestore_sync_submit_transaction=true 11537/head
Sage Weil [Fri, 21 Oct 2016 19:47:21 +0000 (15:47 -0400)]
os/bluestore: default to bluestore_sync_submit_transaction=true

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: randomly inject serialize transaction submission
Sage Weil [Fri, 21 Oct 2016 15:25:38 +0000 (11:25 -0400)]
os/bluestore: randomly inject serialize transaction submission

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph_test_objectstore: move main() to bottom
Sage Weil [Fri, 21 Oct 2016 15:30:08 +0000 (11:30 -0400)]
ceph_test_objectstore: move main() to bottom

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: fix {nid,blobid}_max
Sage Weil [Fri, 21 Oct 2016 14:23:19 +0000 (10:23 -0400)]
os/bluestore: fix {nid,blobid}_max

- single case to cover increases ahead of schedule or just in time
- update global max only after txn commits, eliminating race
- drop unneeded id_lock
- improve t naming

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: prevent sync transaction submit with extent freelist
Sage Weil [Wed, 19 Oct 2016 17:59:53 +0000 (13:59 -0400)]
os/bluestore: prevent sync transaction submit with extent freelist

It doesn't support unordered transactions.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: submit txn via kv_sync_thread if ids exceed max
Sage Weil [Wed, 19 Oct 2016 17:56:19 +0000 (13:56 -0400)]
os/bluestore: submit txn via kv_sync_thread if ids exceed max

This ensures the txn will not commit before an update to the
global max.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: refactor bluestore_sync_submit_transaction
Sage Weil [Tue, 18 Oct 2016 18:52:58 +0000 (14:52 -0400)]
os/bluestore: refactor bluestore_sync_submit_transaction

And drop bluestore_sync_transaction, at least for now.

The key change here is to make a per-txc flag indicating
whether the txn was already submitted.  This allows us
to make a choice between sync and not-sync on a per-txn
basis.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11721 from dachary/wip-17561-log
Kefu Chai [Tue, 1 Nov 2016 13:53:52 +0000 (21:53 +0800)]
Merge pull request #11721 from dachary/wip-17561-log

tests: TestErasureCodePluginJerasure must stop the log thread

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11718 from xiexingguo/xxg-wip-bluestore-1101
Sage Weil [Tue, 1 Nov 2016 13:17:43 +0000 (08:17 -0500)]
Merge pull request #11718 from xiexingguo/xxg-wip-bluestore-1101

os/bluestore: add counter to trace blob splitting

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agotests: TestErasureCodePluginJerasure must stop the log thread 11721/head
Loic Dachary [Tue, 1 Nov 2016 11:24:56 +0000 (12:24 +0100)]
tests: TestErasureCodePluginJerasure must stop the log thread

When a log entry is created in dout.h, it holds a pointer to the

   static size_t _log_exp_length

variable. When OnExitManager::~OnExitManager from Log.cc is called
during global destruction, it may happen after the static variables
referenced by some entries have been deallocated. The flush() function
will try to access these deallocated variables via the hint_size()
method and core dump.

To prevent this race, the Log::stop() method must be called explicitly
to ensure no entries are left when the global destructors are called.

Fixes: http://tracker.ceph.com/issues/17561
Signed-off-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #10248 from ktdreyer/wip-doc-no-rpm-md
Alfredo Deza [Tue, 1 Nov 2016 12:24:17 +0000 (08:24 -0400)]
Merge pull request #10248 from ktdreyer/wip-doc-no-rpm-md

doc: rm "type=rpm-md" from yum repositories

Reviewed-by: Alfredo Deza <adeza@redhat.com>
8 years agoMerge pull request #11690 from yonghengdexin735/wip-zzz-fixword
xiexingguo [Tue, 1 Nov 2016 12:03:53 +0000 (20:03 +0800)]
Merge pull request #11690 from yonghengdexin735/wip-zzz-fixword

src/common/perf_counters.h: fix wrong word

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: add sanity check when compress_extent_map() 11718/head
xie xingguo [Tue, 1 Nov 2016 08:08:59 +0000 (16:08 +0800)]
os/bluestore: add sanity check when compress_extent_map()

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: formatting changes
xie xingguo [Tue, 1 Nov 2016 05:53:20 +0000 (13:53 +0800)]
os/bluestore: formatting changes

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: add counter to trace blob splitting
xie xingguo [Tue, 1 Nov 2016 03:32:49 +0000 (11:32 +0800)]
os/bluestore: add counter to trace blob splitting

As we want to know if it really happens and how often does it happen.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11568 from dillaman/wip-17588
Mykola Golub [Tue, 1 Nov 2016 10:37:01 +0000 (12:37 +0200)]
Merge pull request #11568 from dillaman/wip-17588

librbd: cannot access non-primary image when mirroring force disabled

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11280 from ceph/wip-17440
Orit Wasserman [Tue, 1 Nov 2016 09:14:13 +0000 (10:14 +0100)]
Merge pull request #11280 from ceph/wip-17440

rgw: fixes for virtual hosting of buckets
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #11559 from dillaman/wip-17618
Mykola Golub [Tue, 1 Nov 2016 07:14:07 +0000 (09:14 +0200)]
Merge pull request #11559 from dillaman/wip-17618

librbd: exclusive lock incorrectly initialized when switching to head revision

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11623 from dillaman/wip-cls-rbd-group
Mykola Golub [Tue, 1 Nov 2016 07:13:23 +0000 (09:13 +0200)]
Merge pull request #11623 from dillaman/wip-cls-rbd-group

librbd: ensure consistency groups will gracefully fail on older OSDs

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11703 from dillaman/wip-17750
Mykola Golub [Tue, 1 Nov 2016 07:11:50 +0000 (09:11 +0200)]
Merge pull request #11703 from dillaman/wip-17750

test: skip TestLibRBD.DiscardAfterWrite if skip partial discard enabled

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11714 from dachary/wip-17757-eio
Loic Dachary [Tue, 1 Nov 2016 00:29:57 +0000 (01:29 +0100)]
Merge pull request #11714 from dachary/wip-17757-eio

tests: disable failing tests

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agotests: disable failing unittest_erasure_code_plugin_jerasure 11714/head
Loic Dachary [Mon, 31 Oct 2016 23:40:14 +0000 (00:40 +0100)]
tests: disable failing unittest_erasure_code_plugin_jerasure

While figuring out what's wrong with it.

Refs: http://tracker.ceph.com/issues/17561

Signed-off-by: Loic Dachary <ldachary@redhat.com>
8 years agotests: disable failing test-erasure-eio.sh
Loic Dachary [Mon, 31 Oct 2016 22:53:58 +0000 (23:53 +0100)]
tests: disable failing test-erasure-eio.sh

While figuring out what's wrong with it.

Refs: http://tracker.ceph.com/issues/17757

Signed-off-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #11382 from yuyuyu101/wip-fix-shadow
Yuri Weinstein [Mon, 31 Oct 2016 23:37:45 +0000 (16:37 -0700)]
Merge pull request #11382 from yuyuyu101/wip-fix-shadow

osd/PGBackend: fix collection_list shadow return value

Reviewed-by: Kefu Chai <kchai@redhat.com>
tchaikov

8 years agoMerge pull request #11547 from javeme/check-pgid
Yuri Weinstein [Mon, 31 Oct 2016 23:36:17 +0000 (16:36 -0700)]
Merge pull request #11547 from javeme/check-pgid

osd/command tell: check pgid at the right time

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11203 from stiopaa1/osd_pg_replaceCountPart1
Yuri Weinstein [Mon, 31 Oct 2016 22:30:47 +0000 (15:30 -0700)]
Merge pull request #11203 from stiopaa1/osd_pg_replaceCountPart1

osd/PG.cc: prevent repeated searching of map/set

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11242 from stiopaa1/osd_replicatedpg_removeCount1
Yuri Weinstein [Mon, 31 Oct 2016 22:30:24 +0000 (15:30 -0700)]
Merge pull request #11242 from stiopaa1/osd_replicatedpg_removeCount1

osd/ReplicatedPG: remove unneeded use of count

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11365 from badone/wip-lsb_release-remove
Yuri Weinstein [Mon, 31 Oct 2016 22:29:25 +0000 (15:29 -0700)]
Merge pull request #11365 from badone/wip-lsb_release-remove

common: Remove the runtime dependency on lsb_release

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Ken Dreyer (Red Hat) <kdreyer@redhat.com>
8 years agotest: skip TestLibRBD.DiscardAfterWrite if skip partial discard enabled 11703/head
Jason Dillaman [Mon, 31 Oct 2016 15:08:55 +0000 (11:08 -0400)]
test: skip TestLibRBD.DiscardAfterWrite if skip partial discard enabled

Fixes: http://tracker.ceph.com/issues/17750
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoinstall-deps.sh: allow building on SLES systems 11708/head
Nitin A Kamble [Mon, 31 Oct 2016 18:46:13 +0000 (11:46 -0700)]
install-deps.sh: allow building on SLES systems

Avoids this error on SLES systems:

> ./install-deps.sh
sles is unknown, dependencies will have to be installed manually.

Signed-off-by: Nitin A Kamble <Nitin.Kamble@Teradata.com>
8 years agorgw: json encode/decode index_type, allow modification 11707/head
Yehuda Sadeh [Mon, 31 Oct 2016 17:47:15 +0000 (10:47 -0700)]
rgw: json encode/decode index_type, allow modification

Fixes: http://tracker.ceph.com/issues/17755
We didn't dump the index_type field of RGWBucketInfo, also didn't
allow modifying it via metadata api.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agodoc: rm "type=rpm-md" from yum repositories 10248/head
Ken Dreyer [Mon, 11 Jul 2016 15:13:49 +0000 (09:13 -0600)]
doc: rm "type=rpm-md" from yum repositories

As far as I can tell, this is only relevant to SUSE's Zypper, and yum
does not need it.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>