]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoos/filestore: Fix erroneous WARNING: max attr too small 11246/head
Brad Hubbard [Wed, 28 Sep 2016 04:50:28 +0000 (14:50 +1000)]
os/filestore: Fix erroneous WARNING: max attr too small

When we read the conf values from the conf file we call handle_conf_change which
calls set_xattr_limits_via_conf but this is before m_fs_type is initialised so
we fall through to the default comaprison with
filestore_max_xattr_value_size_other (1024) and erroneously issue the warning.
This happens at every startup but subsequent calls once the filestore is mounted
proceed as expected. Don't call set_xattr_limits_via_conf unless the filestore
is mounted.

Fixes: http://tracker.ceph.com/issues/17420
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #11196 from tchaikov/wip-lttng-the-right-way
Jason Dillaman [Sun, 25 Sep 2016 20:27:58 +0000 (16:27 -0400)]
Merge pull request #11196 from tchaikov/wip-lttng-the-right-way

lttng: build the tracepoint provider lib from .c files in repo

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11090 from dillaman/wip-16974
Mykola Golub [Sat, 24 Sep 2016 17:13:25 +0000 (20:13 +0300)]
Merge pull request #11090 from dillaman/wip-16974

rbd-mirror: force-promoted image will remain R/O until rbd-mirror daemon restarted

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11197 from yuyuyu101/wip-bluestore-misc
Sage Weil [Fri, 23 Sep 2016 22:50:10 +0000 (17:50 -0500)]
Merge pull request #11197 from yuyuyu101/wip-bluestore-misc

os/bluestore: misc cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11215 from stiopaa1/mon_paxos_moveContextClassesToCC
Sage Weil [Fri, 23 Sep 2016 22:09:37 +0000 (17:09 -0500)]
Merge pull request #11215 from stiopaa1/mon_paxos_moveContextClassesToCC

mon/Paxos: move classes to .cc file

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agomon/Paxos: move classes to .cc file 11215/head
Michal Jarzabek [Fri, 23 Sep 2016 18:43:56 +0000 (19:43 +0100)]
mon/Paxos: move classes to .cc file

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agoMerge pull request #11170 from ukernel/wip-17253
John Spray [Fri, 23 Sep 2016 16:54:03 +0000 (17:54 +0100)]
Merge pull request #11170 from ukernel/wip-17253

client: fix segment fault in Client::_invalidate_kernel_dcache().

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11142 from hzhang-wx/master
Jason Dillaman [Fri, 23 Sep 2016 15:29:42 +0000 (11:29 -0400)]
Merge pull request #11142 from hzhang-wx/master

cls_rbd: clean up status from rbd-mirror if image removed

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #10939 from oritwas/wip-rgw-acl-underscore
Yehuda Sadeh [Fri, 23 Sep 2016 15:24:05 +0000 (08:24 -0700)]
Merge pull request #10939 from oritwas/wip-rgw-acl-underscore

rgw: fix regression with handling double underscore

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11159 from linuxbox2/rgw-setattr-920
Casey Bodley [Fri, 23 Sep 2016 14:28:25 +0000 (10:28 -0400)]
Merge pull request #11159 from linuxbox2/rgw-setattr-920

rgw_file: fix set_attrs operation

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #11172 from batrick/ceph-conf-metavar
Sage Weil [Fri, 23 Sep 2016 13:45:02 +0000 (08:45 -0500)]
Merge pull request #11172 from batrick/ceph-conf-metavar

doc: add $pid metavar conf doc

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11200 from yuyuyu101/wip-upper-thread
Sage Weil [Fri, 23 Sep 2016 13:43:26 +0000 (08:43 -0500)]
Merge pull request #11200 from yuyuyu101/wip-upper-thread

msg/async: avoid set out of range ms_async_op_threads option

Reviewed-by: Mark Nelson <mnelson@redhat.com>
8 years agoMerge pull request #9170 from Yan-waller/yj-wip-fixrgwnew
Orit Wasserman [Fri, 23 Sep 2016 13:40:23 +0000 (15:40 +0200)]
Merge pull request #9170 from Yan-waller/yj-wip-fixrgwnew

rgw/admin: fix some return values and indents
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #11210 from xiexingguo/xxg-wip-bluestore-0923
Sage Weil [Fri, 23 Sep 2016 13:36:34 +0000 (08:36 -0500)]
Merge pull request #11210 from xiexingguo/xxg-wip-bluestore-0923

os/bluestore: more cleanups and fixes

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #10463 from gongchuang/gc-wip-test
John Spray [Fri, 23 Sep 2016 13:12:42 +0000 (14:12 +0100)]
Merge pull request #10463 from gongchuang/gc-wip-test

Client: fixup param type and return value

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agojournal: send update notification when tag allocated 11090/head
Jason Dillaman [Mon, 19 Sep 2016 15:24:17 +0000 (11:24 -0400)]
journal: send update notification when tag allocated

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: new journal listener event for force promotion
Jason Dillaman [Wed, 14 Sep 2016 01:54:46 +0000 (21:54 -0400)]
librbd: new journal listener event for force promotion

Fixes: http://tracker.ceph.com/issues/16974
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: helper class for quiescing in-flight async ops
Jason Dillaman [Tue, 13 Sep 2016 20:38:51 +0000 (16:38 -0400)]
librbd: helper class for quiescing in-flight async ops

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: unify journal event callbacks into single interface
Jason Dillaman [Tue, 13 Sep 2016 16:37:53 +0000 (12:37 -0400)]
librbd: unify journal event callbacks into single interface

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agojournal: expose ability to retrieve partial tag list
Jason Dillaman [Tue, 13 Sep 2016 20:28:50 +0000 (16:28 -0400)]
journal: expose ability to retrieve partial tag list

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoqa/workunits/rbd: fix remove mirrored image race conditions
Jason Dillaman [Wed, 14 Sep 2016 12:49:39 +0000 (08:49 -0400)]
qa/workunits/rbd: fix remove mirrored image race conditions

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoqa/workunits/rbd: new mirroring forced promotion test
Jason Dillaman [Tue, 13 Sep 2016 16:32:45 +0000 (12:32 -0400)]
qa/workunits/rbd: new mirroring forced promotion test

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11153 from dillaman/wip-17317
Mykola Golub [Fri, 23 Sep 2016 12:55:18 +0000 (15:55 +0300)]
Merge pull request #11153 from dillaman/wip-17317

test/rbd: fix possible mock journal race conditions

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11054 from rzarzynski/wip-rgw-postobj-nodynalloc
Orit Wasserman [Fri, 23 Sep 2016 12:20:00 +0000 (14:20 +0200)]
Merge pull request #11054 from rzarzynski/wip-rgw-postobj-nodynalloc

rgw: eradicate dynamic memory allocation in RGWPostObj.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoos/bluestore: fix potential access violation during shard-key scan 11210/head
xie xingguo [Fri, 23 Sep 2016 07:55:24 +0000 (15:55 +0800)]
os/bluestore: fix potential access violation during shard-key scan

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: kill unused variables "ekey"
xie xingguo [Fri, 23 Sep 2016 07:46:41 +0000 (15:46 +0800)]
os/bluestore: kill unused variables "ekey"

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11208 from tchaikov/wip-17380
Loic Dachary [Fri, 23 Sep 2016 07:26:29 +0000 (09:26 +0200)]
Merge pull request #11208 from tchaikov/wip-17380

osd: should not look up an empty pg

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #10949 from avnerbh/avnerbh-preforker-fix
Kefu Chai [Fri, 23 Sep 2016 07:16:41 +0000 (15:16 +0800)]
Merge pull request #10949 from avnerbh/avnerbh-preforker-fix

preforker: prevent call to 'write' on an fd that was already closed

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agotest: re-enable test_pg_scrub() test in ceph-helper.sh 11208/head
Kefu Chai [Fri, 23 Sep 2016 06:26:42 +0000 (14:26 +0800)]
test: re-enable test_pg_scrub() test in ceph-helper.sh

this reverts d053705. i disabled this test in hope to bisect the
offending tests that fail the mysterious jenkins failure, which was
fixed by 6f3ce3a.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoosd: should not look up an empty pg
Kefu Chai [Fri, 23 Sep 2016 06:20:37 +0000 (14:20 +0800)]
osd: should not look up an empty pg

this fixes the scrub timeouts we spotted in jenkins run and qa run.
it's a regression introduced by c2b7cdb

Fixes: http://tracker.ceph.com/issues/17380
Signed-off-by: Loic Dachary <loic@dachary.org>
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore: drop csum_enabled parameter from blob::get_chunk_size()
xie xingguo [Fri, 23 Sep 2016 06:14:14 +0000 (14:14 +0800)]
os/bluestore: drop csum_enabled parameter from blob::get_chunk_size()

The only two callers from bluestore now always set csum_enabled to true,
so there is no need to keep this parameter any more.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: simplify BlueStore::_setup_block_symlink_or_file()
xie xingguo [Fri, 23 Sep 2016 05:57:21 +0000 (13:57 +0800)]
os/bluestore: simplify BlueStore::_setup_block_symlink_or_file()

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11205 from liewegas/wip-async-debug
Haomai Wang [Fri, 23 Sep 2016 01:53:50 +0000 (09:53 +0800)]
Merge pull request #11205 from liewegas/wip-async-debug

msg/async: less verbose debug messages at debug_ms=1

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agorgw_file: fix set_attrs operation 11159/head
Matt Benjamin [Tue, 20 Sep 2016 21:32:03 +0000 (17:32 -0400)]
rgw_file: fix set_attrs operation

The effective part of this change is to always set a value
for RGW_ATTR_UNIX_KEY1 (because it is expected later).

Secondarily, do not pass the address of the to-set attributes
buffer::list as remove attrs--this is confusing.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #11181 from linuxbox2/rgw-legacy-time
Casey Bodley [Thu, 22 Sep 2016 20:27:54 +0000 (16:27 -0400)]
Merge pull request #11181 from linuxbox2/rgw-legacy-time

rgw_file:  pre-assign times

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #11048 from jimifm/wip-FDCache-master
Sage Weil [Thu, 22 Sep 2016 19:02:19 +0000 (14:02 -0500)]
Merge pull request #11048 from jimifm/wip-FDCache-master

os/filestore/FDCache: fix bug when filestore_fd_cache_shards = 0

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agomsg/async: no need for ..."started." suffix 11205/head
Sage Weil [Thu, 22 Sep 2016 18:57:08 +0000 (14:57 -0400)]
msg/async: no need for ..."started." suffix

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg/async: less noisy about EventCenter owner
Sage Weil [Thu, 22 Sep 2016 18:56:22 +0000 (14:56 -0400)]
msg/async: less noisy about EventCenter owner

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg/async: make rx line look like normal debug
Sage Weil [Thu, 22 Sep 2016 18:56:13 +0000 (14:56 -0400)]
msg/async: make rx line look like normal debug

The DispatchQueue prints the traditional ==== line.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg/async: make send debug line look like SimpleMessenger's
Sage Weil [Thu, 22 Sep 2016 18:55:55 +0000 (14:55 -0400)]
msg/async: make send debug line look like SimpleMessenger's

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg/async/AsyncConnection: less noisy about connection top
Sage Weil [Thu, 22 Sep 2016 18:46:37 +0000 (14:46 -0400)]
msg/async/AsyncConnection: less noisy about connection top

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomsg/async/EventCenter: less noisy debug on events
Sage Weil [Thu, 22 Sep 2016 18:45:45 +0000 (14:45 -0400)]
msg/async/EventCenter: less noisy debug on events

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11190 from tchaikov/wip-memstore-clone-fixture
Casey Bodley [Thu, 22 Sep 2016 18:21:27 +0000 (14:21 -0400)]
Merge pull request #11190 from tchaikov/wip-memstore-clone-fixture

tests: use a fixture for memstore clone testing

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agomsg/async: avoid set out of range ms_async_op_threads option 11200/head
Haomai Wang [Thu, 22 Sep 2016 15:15:58 +0000 (23:15 +0800)]
msg/async: avoid set out of range ms_async_op_threads option

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #10587 from b-ranto/wip-logrotate-root
Boris Ranto [Thu, 22 Sep 2016 16:22:53 +0000 (18:22 +0200)]
Merge pull request #10587 from b-ranto/wip-logrotate-root

logrotate: Run as root/ceph

Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #7338 from ceph/cls-lua
Yuri Weinstein [Thu, 22 Sep 2016 16:17:57 +0000 (09:17 -0700)]
Merge pull request #7338 from ceph/cls-lua

Lua object class support

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Ken Dreyer (Red Hat) <kdreyer@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #10135 from david-z/wip-enhance-ceph-disk-bluestore
Loic Dachary [Thu, 22 Sep 2016 16:13:00 +0000 (18:13 +0200)]
Merge pull request #10135 from david-z/wip-enhance-ceph-disk-bluestore

ceph-disk: support creating block.db and block.wal with customized size for bluestore

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #10371 from Yan-waller/yj-wip-msgsimple-0720
Yuri Weinstein [Thu, 22 Sep 2016 16:10:01 +0000 (09:10 -0700)]
Merge pull request #10371 from Yan-waller/yj-wip-msgsimple-0720

msg/simple: close the failed socket fds

https://github.com/ceph/ceph/pull/11052

8 years agoMerge pull request #11052 from yuyuyu101/wip-shutdown-deadlock
Yuri Weinstein [Thu, 22 Sep 2016 16:03:39 +0000 (09:03 -0700)]
Merge pull request #11052 from yuyuyu101/wip-shutdown-deadlock

OSD: avoid FileStore finisher deadlock in osd_lock when shutdown OSD

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11082 from aiicore/nearfull_flag_fix
Yuri Weinstein [Thu, 22 Sep 2016 16:01:24 +0000 (09:01 -0700)]
Merge pull request #11082 from aiicore/nearfull_flag_fix

mon: OSDMonitor: Missing nearfull flag set

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11089 from dachary/wip-16477-ceph-helper
Kefu Chai [Thu, 22 Sep 2016 15:26:32 +0000 (23:26 +0800)]
Merge pull request #11089 from dachary/wip-16477-ceph-helper

cli: retry when the mon is not configured

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11199 from yuyuyu101/wip-17378
Sage Weil [Thu, 22 Sep 2016 15:25:09 +0000 (10:25 -0500)]
Merge pull request #11199 from yuyuyu101/wip-17378

msg/async: remove fd output in log prefix

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11195 from xiexingguo/xxg-wip-csum-improve
Sage Weil [Thu, 22 Sep 2016 15:14:20 +0000 (10:14 -0500)]
Merge pull request #11195 from xiexingguo/xxg-wip-csum-improve

os/bluestore: a few fixes about  the global csum setting

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agomsg/async: remove fd output in log prefix 11199/head
Haomai Wang [Thu, 22 Sep 2016 15:11:09 +0000 (23:11 +0800)]
msg/async: remove fd output in log prefix

it's tricky to prevent fd racing in logs, otherwise we need to provide with
lock to totally avoid this. But I don't think it deserve lock

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #11182 from ceph/wip-docs-rm-ink
Sage Weil [Thu, 22 Sep 2016 14:59:37 +0000 (09:59 -0500)]
Merge pull request #11182 from ceph/wip-docs-rm-ink

remove old references to inktank premium support

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11194 from wjwithagen/wip-wjw-rocksdb-include
Kefu Chai [Thu, 22 Sep 2016 14:57:20 +0000 (22:57 +0800)]
Merge pull request #11194 from wjwithagen/wip-wjw-rocksdb-include

src/kv/CMakeLists.txt: force rocksdb/include to first include directory

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore: fix race condition of global csum setting 11195/head
xie xingguo [Thu, 22 Sep 2016 11:59:05 +0000 (19:59 +0800)]
os/bluestore: fix race condition of global csum setting

The global csum_type option can be changed dynamically and
can be fixed by upgrading into std::atomic.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: drop the global bluestore_csum option
xie xingguo [Thu, 22 Sep 2016 11:07:31 +0000 (19:07 +0800)]
os/bluestore: drop the global bluestore_csum option

We don't need this option as it can be properly covered
by the bluestore_csum_type option.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: use blob internal settings for csum checking
xie xingguo [Thu, 22 Sep 2016 07:38:44 +0000 (15:38 +0800)]
os/bluestore: use blob internal settings for csum checking

This is because:
1. It is more accurate, as the global csum settings may change dynamically.
2. bluestore_blob_t::verify_csum() can handle both csum-on and csum-off correctly.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11151 from ceph/wip-bluestore-error-injection
Sage Weil [Thu, 22 Sep 2016 14:17:06 +0000 (09:17 -0500)]
Merge pull request #11151 from ceph/wip-bluestore-error-injection

os/bluestore: add error injection

8 years agoMerge pull request #11184 from liewegas/wip-down-out
Sage Weil [Thu, 22 Sep 2016 14:15:52 +0000 (09:15 -0500)]
Merge pull request #11184 from liewegas/wip-down-out

mon: wait 10m (not 5m) before marking down OSDs out

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agoMerge pull request #11186 from majianpeng/bluestore-allocator
Sage Weil [Thu, 22 Sep 2016 14:15:20 +0000 (09:15 -0500)]
Merge pull request #11186 from majianpeng/bluestore-allocator

os/bluestore: remove unused head file.

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agorgw_file: pre-assign times 11181/head
Matt Benjamin [Wed, 21 Sep 2016 21:18:20 +0000 (17:18 -0400)]
rgw_file:  pre-assign times

Set unix timestamps based on RGW values for creation, modification
time for buckets, objects in stat requests.  Regard any saved
value of these in unix attributes as an overlay.

Fixes: http://tracker.ceph.com/issues/17367
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agoMerge pull request #11192 from xiexingguo/xxg-wip-bluestore-0922
Sage Weil [Thu, 22 Sep 2016 14:03:59 +0000 (09:03 -0500)]
Merge pull request #11192 from xiexingguo/xxg-wip-bluestore-0922

os/bluestore: a few cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11152 from dillaman/wip-17198
Mykola Golub [Thu, 22 Sep 2016 13:31:57 +0000 (16:31 +0300)]
Merge pull request #11152 from dillaman/wip-17198

librbd: potential deadlock closing image with in-flight readahead

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #10506 from wjwithagen/wip-wjw-clock-realtime
Sage Weil [Thu, 22 Sep 2016 13:31:34 +0000 (08:31 -0500)]
Merge pull request #10506 from wjwithagen/wip-wjw-clock-realtime

FreeBSD: Define CLOCK_REALTIME_COARSE in compat.h

8 years agolttng: build the tracepoint provider lib from .c files in repo 11196/head
Kefu Chai [Thu, 22 Sep 2016 02:40:17 +0000 (10:40 +0800)]
lttng: build the tracepoint provider lib from .c files in repo

we should not have `TRACEPOINT_DEFINE` deinfed in both the application
we are tracing and the tracing provider library.

* tracing/*.c: reference the header file with path
* README.md: add instructions to add .c file
* CMakeLists.c:
  - compile the .c file in repo, not the one generated by
    lttng-gen-tp
  - no need to mark the generated header file as GENEREATED,
    they are marked so by default (they are listed in OUTPUT)
  - do not generate .c file anymore, they are not used.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agosrc/kv/CMakeLists.txt: force rocksdb/include to first include directory 11194/head
Willem Jan Withagen [Thu, 22 Sep 2016 12:19:09 +0000 (14:19 +0200)]
src/kv/CMakeLists.txt: force rocksdb/include to first include directory

 - Otherwise on FreeBSD older packages could be used for include
   this then can result to missing declared functions because
   includes and libs are out of sync

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agodoc/rados/troubleshooting: remove references to premium support from inktank.com 11182/head
Alfredo Deza [Wed, 21 Sep 2016 21:57:06 +0000 (17:57 -0400)]
doc/rados/troubleshooting: remove references to premium support from inktank.com

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agodoc/rados: remove references to premium support from inktank.com
Alfredo Deza [Wed, 21 Sep 2016 21:56:41 +0000 (17:56 -0400)]
doc/rados: remove references to premium support from inktank.com

Signed-off-by: Alfredo Deza <adeza@redhat.com>
8 years agoMerge pull request #11147 from ukernel/wip-17286
John Spray [Thu, 22 Sep 2016 11:42:56 +0000 (12:42 +0100)]
Merge pull request #11147 from ukernel/wip-17286

client: fix readdir vs fragmentation race

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #10393 from ukernel/wip-mds-log-flush
John Spray [Thu, 22 Sep 2016 11:41:27 +0000 (12:41 +0100)]
Merge pull request #10393 from ukernel/wip-mds-log-flush

reduce unnecessary mds log flush

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11155 from dillaman/wip-17330
Mykola Golub [Thu, 22 Sep 2016 10:54:08 +0000 (13:54 +0300)]
Merge pull request #11155 from dillaman/wip-17330

librbd: backward/forward compatibility for update_features

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11148 from dillaman/wip-17310
Mykola Golub [Thu, 22 Sep 2016 10:50:03 +0000 (13:50 +0300)]
Merge pull request #11148 from dillaman/wip-17310

librbd: block name prefix might overflow fixed size C-string

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoos/bluestore: remove unused head file. 11186/head
Jianpeng Ma [Mon, 19 Sep 2016 13:32:43 +0000 (21:32 +0800)]
os/bluestore: remove unused head file.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
8 years agoMerge pull request #11176 from zealoussnow/wip-0922
Kefu Chai [Thu, 22 Sep 2016 08:56:32 +0000 (16:56 +0800)]
Merge pull request #11176 from zealoussnow/wip-0922

ceph_fuse: use sizeof get the buf length

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agotest_memstore_clone: use StoreTestFixture to do the setup/teardown 11190/head
Kefu Chai [Thu, 22 Sep 2016 06:09:04 +0000 (14:09 +0800)]
test_memstore_clone: use StoreTestFixture to do the setup/teardown

rename test case name from `MemStore` to `MemStoreClone`, because
if we use `TEST_F` to group the tests into a fixture, `MemStore`
will be used as the class name of the fixture, and hence conflicts
with the existing `MemStore` class under testing.

but the object store is created and destroyed for every test. before
this change, we do this for every test case. if it's a concern
we need to use SetUpTestCase() and TearDownTestCase() instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoceph_test_objectstore: fail the test if SetUp() fails
Kefu Chai [Thu, 22 Sep 2016 05:46:54 +0000 (13:46 +0800)]
ceph_test_objectstore: fail the test if SetUp() fails

so it will issues a fatal error if anything goes wrong, instead of continuing
with the test cases.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoceph_test_objectstore: extract StoreTestFixture into store_test_fixture.cc
Kefu Chai [Thu, 22 Sep 2016 05:08:46 +0000 (13:08 +0800)]
ceph_test_objectstore: extract StoreTestFixture into store_test_fixture.cc

so it can be reused by other tests like test_memstore_clone.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoos/bluestore: clean up finishers properly 11192/head
xie xingguo [Thu, 22 Sep 2016 07:16:03 +0000 (15:16 +0800)]
os/bluestore: clean up finishers properly

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: move lookup() of SharedBlobSet back into .h
xie xingguo [Thu, 22 Sep 2016 03:26:48 +0000 (11:26 +0800)]
os/bluestore: move lookup() of SharedBlobSet back into .h

Because the lookup() method is simple and easy,
and requires no dout for debugging.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agomon: wait 10m (not 5m) before marking down OSDs out 11184/head
Sage Weil [Wed, 21 Sep 2016 22:06:57 +0000 (18:06 -0400)]
mon: wait 10m (not 5m) before marking down OSDs out

5m isn't quite enough time for many boxes to reboot.  10m will do
a better job of masking transient crashes without having much
effect on time to repair.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: add error injection 11151/head
Sage Weil [Wed, 21 Sep 2016 20:49:25 +0000 (16:49 -0400)]
os/bluestore: add error injection

This is used by the teuthology repair_test.py.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11122 from branch-predictor/bp-zlib-improvements
Sage Weil [Wed, 21 Sep 2016 19:48:21 +0000 (14:48 -0500)]
Merge pull request #11122 from branch-predictor/bp-zlib-improvements

compressor/zlib: switch to raw deflate

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11108 from liewegas/wip-bluefs-dirty-fnodes
Sage Weil [Wed, 21 Sep 2016 19:47:38 +0000 (14:47 -0500)]
Merge pull request #11108 from liewegas/wip-bluefs-dirty-fnodes

os/bluestore/BlueFS: log dirty files at sync time

8 years agoceph_fuse: use sizeof get the buf length 11176/head
Leo Zhang [Wed, 21 Sep 2016 16:25:23 +0000 (00:25 +0800)]
ceph_fuse: use sizeof get the buf length

Signed-off-by: LeoZhang <nguzcf@gmail.com>
8 years agoMerge pull request #11173 from tchaikov/wip-17306
Kefu Chai [Wed, 21 Sep 2016 15:35:04 +0000 (23:35 +0800)]
Merge pull request #11173 from tchaikov/wip-17306

test/cli/crushtool: fix the test of compile-decompile-recompile.t

Reviewed-by: Samuel Just <sjust@redhat.com>
8 years agotest/cli/crushtool: fix the test of compile-decompile-recompile.t 11173/head
Kefu Chai [Wed, 21 Sep 2016 14:58:49 +0000 (22:58 +0800)]
test/cli/crushtool: fix the test of compile-decompile-recompile.t

should read the map from $TESTDIR,
it's a regression introduced by b2c0a07

Fixes: http://tracker.ceph.com/issues/17306
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agodoc: add $pid metavar conf doc 11172/head
Patrick Donnelly [Wed, 21 Sep 2016 14:57:44 +0000 (10:57 -0400)]
doc: add $pid metavar conf doc

$pid introduced in 2012 via cf2a0454.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #11166 from xiexingguo/xxg-wip-bluestore-0921
Sage Weil [Wed, 21 Sep 2016 14:11:52 +0000 (09:11 -0500)]
Merge pull request #11166 from xiexingguo/xxg-wip-bluestore-0921

os/bluestore: simplify calculation of collection key range

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11131 from ceph/rgw-lifecycle-testing
Casey Bodley [Wed, 21 Sep 2016 14:05:57 +0000 (10:05 -0400)]
Merge pull request #11131 from ceph/rgw-lifecycle-testing

Rgw lifecycle testing

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoclient: fix segment fault in Client::_invalidate_kernel_dcache(). 11170/head
Yan, Zheng [Wed, 21 Sep 2016 13:57:25 +0000 (21:57 +0800)]
client: fix segment fault in Client::_invalidate_kernel_dcache().

when umounting, root can be NULL

Fixes: http://tracker.ceph.com/issues/17253
Signed-off-by: Yan, Zheng <zyan@redhat.com>
8 years agoLifecycle testing 11131/head
Daniel Gryniewicz [Thu, 14 Jul 2016 16:40:29 +0000 (12:40 -0400)]
Lifecycle testing

Add new config option - rgw_lc_debug_interval - that modifies the
lifecycle algorithm.  It treats days as being the configured number of
seconds.  This allows lifecycle to be tested in minutes, rather than
days.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
8 years agoLifecycle - Fix config locking
Daniel Gryniewicz [Wed, 14 Sep 2016 17:38:36 +0000 (13:38 -0400)]
Lifecycle - Fix config locking

The lifecycle config lock was not setting a cookie.  This means that all
instances of that lock conflict, causing errors to be returned to the
client.

Set a unique cookie on each lock instance.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
8 years agoMerge pull request #11031 from yangdongsheng/du
Jason Dillaman [Wed, 21 Sep 2016 12:56:05 +0000 (08:56 -0400)]
Merge pull request #11031 from yangdongsheng/du

rbd: return error if we specified a wrong image name for rbd du

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11163 from jcsp/wip-cmake-vstart
John Spray [Wed, 21 Sep 2016 09:18:04 +0000 (10:18 +0100)]
Merge pull request #11163 from jcsp/wip-cmake-vstart

doc: Update developer docs for cmake paths

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agodoc: update vstart guide for cmake-ish paths 11163/head
John Spray [Wed, 21 Sep 2016 07:59:45 +0000 (08:59 +0100)]
doc: update vstart guide for cmake-ish paths

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agodoc: update build instructions for cmake
John Spray [Wed, 21 Sep 2016 07:54:24 +0000 (08:54 +0100)]
doc: update build instructions for cmake

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agokv/RocksDBStore: no reason to make write_batch using new/delete 11197/head
Haomai Wang [Wed, 21 Sep 2016 08:20:48 +0000 (16:20 +0800)]
kv/RocksDBStore: no reason to make write_batch using new/delete

discards new/delete for bat

Signed-off-by: Haomai Wang <haomai@xsky.com>
8 years agoos/bluestore: simplify calculation of collection key range 11166/head
xie xingguo [Wed, 21 Sep 2016 05:57:39 +0000 (13:57 +0800)]
os/bluestore: simplify calculation of collection key range

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>