]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agorbd: enabling/disabling rbd feature should report missing dependency 12238/head
Gaurav Kumar Garg [Wed, 30 Nov 2016 09:47:34 +0000 (10:47 +0100)]
rbd: enabling/disabling rbd feature should report missing dependency

Currently while enabling or disabling rbd feature command does not
give missing dependency for eg: attempting to enable the journaling
feature on an image that doesn't have the exclusive-lock feature
enabled should give missing dependency error message.

Fixes: http://tracker.ceph.com/issues/16985
Reported-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Gaurav Kumar Garg <garg.gaurav52@gmail.com>
8 years agoMerge pull request #12183 from dachary/wip-17830-eio
Kefu Chai [Fri, 25 Nov 2016 03:20:21 +0000 (11:20 +0800)]
Merge pull request #12183 from dachary/wip-17830-eio

tests: facilitate background process debug in ceph-helpers.sh

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12184 from SUSE/wip-18040
John Spray [Thu, 24 Nov 2016 20:35:00 +0000 (20:35 +0000)]
Merge pull request #12184 from SUSE/wip-18040

doc: we can now run multiple MDS, so qualify warning

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agodoc: we can now run multiple MDS, so qualify warning 12184/head
Nathan Cutler [Thu, 24 Nov 2016 19:29:31 +0000 (20:29 +0100)]
doc: we can now run multiple MDS, so qualify warning

Fixes: http://tracker.ceph.com/issues/18040
Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agotests: facilitate background process debug in ceph-helpers.sh 12183/head
Loic Dachary [Thu, 24 Nov 2016 18:52:14 +0000 (19:52 +0100)]
tests: facilitate background process debug in ceph-helpers.sh

When displaying the output of a background process, do it on stderr so
that it is not bufferized. Otherwise the output of the background
process may be displayed after it completed.

Prefix the output of a background process with the PID of the process
known to the parent instead of the PID of the awk process processing the
output. When wait_background loops, it will print the process on which
it is waiting and it is confusing that they do not match with the PID
prefixing the process output.

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

Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agoMerge pull request #11733 from tchaikov/wip-17762
Kefu Chai [Thu, 24 Nov 2016 17:27:53 +0000 (01:27 +0800)]
Merge pull request #11733 from tchaikov/wip-17762

common: release g_ceph_context before returns

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #12172 from dachary/wip-17830-eio
Kefu Chai [Thu, 24 Nov 2016 17:24:13 +0000 (01:24 +0800)]
Merge pull request #12172 from dachary/wip-17830-eio

tests: osd-scrub-repair.sh abort if add_something fails

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agocrushtool: do not release g_ceph_context at exit 11733/head
Kefu Chai [Wed, 23 Nov 2016 11:45:57 +0000 (19:45 +0800)]
crushtool: do not release g_ceph_context at exit

it is but a work around of occasionally timeout.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocommon,test: g_ceph_context->put() upon return
Kefu Chai [Tue, 15 Nov 2016 06:21:03 +0000 (14:21 +0800)]
common,test: g_ceph_context->put() upon return

prior to this change, global_init() could create a new CephContext
and assign it to g_ceph_context. it's our responsibilty to release
the CephContext explicitly using cct->put() before the application
quits. but sometimes, we fail to do so.

in this change, global_init() will return an intrusive_ptr<CephContext>,
which calls `g_ceph_context->put()` in its dtor. this ensures that
the CephContext is always destroyed before main() returns. so the
log is flushed before _log_exp_length is destroyed.

there are two cases where global_pre_init() is called directly.
- ceph_conf.cc: g_ceph_context->put() will be called by an intrusive_ptr<>
  deleter.
- rgw_main.cc: global_init() is called later on on the success code
  path, so it will be taken care of.

Fixes: http://tracker.ceph.com/issues/17762
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #10296 from songbaisen/b4
Loic Dachary [Thu, 24 Nov 2016 13:27:10 +0000 (14:27 +0100)]
Merge pull request #10296 from songbaisen/b4

mon: small change on the HealthMonitor start_epoch  function

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agomon: small change on the HealthMonitor start_epoch function 10296/head
songbaisen [Thu, 24 Nov 2016 08:35:44 +0000 (16:35 +0800)]
mon: small change on the HealthMonitor start_epoch function

No need to call start_epoch function each time in the loop.

Signed-off-by: songbaisen <song.baisen@zte.com.cn>
8 years agoMerge pull request #9513 from songbaisen/a5
Loic Dachary [Thu, 24 Nov 2016 07:32:33 +0000 (08:32 +0100)]
Merge pull request #9513 from songbaisen/a5

mon: Forbidden copy and assignment function in monoprequest

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #12085 from wjwithagen/wip-freebsd-ceph-helpers-2
Loic Dachary [Thu, 24 Nov 2016 07:01:51 +0000 (08:01 +0100)]
Merge pull request #12085 from wjwithagen/wip-freebsd-ceph-helpers-2

workunits/ceph-helpers.sh: Fixes for FreeBSD

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agotests: osd-scrub-repair.sh abort if add_something fails 12172/head
Loic Dachary [Thu, 24 Nov 2016 06:52:56 +0000 (07:52 +0100)]
tests: osd-scrub-repair.sh abort if add_something fails

If the script keeps going after this function fails, it will be non
trivial to find the root cause of the problem.

Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agoMerge pull request #11943 from wido/docs-pool-remove
Kefu Chai [Thu, 24 Nov 2016 03:53:32 +0000 (11:53 +0800)]
Merge pull request #11943 from wido/docs-pool-remove

doc: Add documentation about mon_allow_pool_delete before pool remove

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoworkunits/ceph-helpers.sh: Fixes for FreeBSD 12085/head
Willem Jan Withagen [Sun, 20 Nov 2016 19:57:53 +0000 (20:57 +0100)]
workunits/ceph-helpers.sh: Fixes for FreeBSD

 - stat(1) does not have '%T'

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #10402 from ceph/wip-openstack-wusui
Sage Weil [Wed, 23 Nov 2016 21:42:34 +0000 (16:42 -0500)]
Merge pull request #10402 from ceph/wip-openstack-wusui

qa: Add ceph-ansible installer.

8 years agoMerge pull request #11673 from zhangsw/fix-rgw-initbucketshardsync-bug
Orit Wasserman [Wed, 23 Nov 2016 19:47:59 +0000 (20:47 +0100)]
Merge pull request #11673 from zhangsw/fix-rgw-initbucketshardsync-bug

rgw: Class member cookie is not initialized correctly in some coroutine's constructor.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #11969 from yehudasa/wip-17897
Orit Wasserman [Wed, 23 Nov 2016 19:46:55 +0000 (20:46 +0100)]
Merge pull request #11969 from yehudasa/wip-17897

rgw: don't store empty chains in gc
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #11815 from ceph/wip-17792
Orit Wasserman [Wed, 23 Nov 2016 19:45:07 +0000 (20:45 +0100)]
Merge pull request #11815 from ceph/wip-17792

rgw: remove circular reference in RGWAsyncRadosRequest
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #12142 from athanatos/wip-17966
David Zafman [Wed, 23 Nov 2016 19:24:17 +0000 (11:24 -0800)]
Merge pull request #12142 from athanatos/wip-17966

osd: Fix read error propogation in ECBackend

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
8 years agoMerge pull request #11994 from ukernel/wip-17193
John Spray [Wed, 23 Nov 2016 18:31:54 +0000 (18:31 +0000)]
Merge pull request #11994 from ukernel/wip-17193

mds: force client flush snap data before truncating objects

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11635 from batrick/mds-unique-ptr-20161024
John Spray [Wed, 23 Nov 2016 18:29:16 +0000 (18:29 +0000)]
Merge pull request #11635 from batrick/mds-unique-ptr-20161024

mds: more unique_pointer changes

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11917 from ajarr/wip-17800
John Spray [Wed, 23 Nov 2016 18:25:21 +0000 (18:25 +0000)]
Merge pull request #11917 from ajarr/wip-17800

ceph_volume_client: set an existing auth ID's default mon caps

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11983 from liewegas/wip-bluestore-release
Igor Fedotov [Wed, 23 Nov 2016 18:13:06 +0000 (21:13 +0300)]
Merge pull request #11983 from liewegas/wip-bluestore-release

os/bluestore: fix alloc release timing on sync submits

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #12129 from wjin/fix_backoffthrottle_comment
Samuel Just [Wed, 23 Nov 2016 16:44:15 +0000 (08:44 -0800)]
Merge pull request #12129 from wjin/fix_backoffthrottle_comment

common/Throttle: fix typo for BackoffThrottle

Reviewed-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #9643 from wjin/mon
Loic Dachary [Wed, 23 Nov 2016 16:37:12 +0000 (17:37 +0100)]
Merge pull request #9643 from wjin/mon

mon: clean legacy code

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agosrc/test: reenable test-erasure-eio.sh 12142/head
Samuel Just [Wed, 23 Nov 2016 15:52:35 +0000 (07:52 -0800)]
src/test: reenable test-erasure-eio.sh

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #12000 from jcsp/wip-doc-exports
Gregory Farnum [Wed, 23 Nov 2016 15:34:53 +0000 (10:34 -0500)]
Merge pull request #12000 from jcsp/wip-doc-exports

src/doc: fix class names in exports.txt

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #10474 from songbaisen/b5
Loic Dachary [Wed, 23 Nov 2016 15:34:33 +0000 (16:34 +0100)]
Merge pull request #10474 from songbaisen/b5

mon:  remove the redudant jugement in LogMonitor tick function

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
8 years agoMerge pull request #11631 from wolsen/issues/17689
Loic Dachary [Wed, 23 Nov 2016 15:28:51 +0000 (16:28 +0100)]
Merge pull request #11631 from wolsen/issues/17689

upstart: start ceph-all after static-network-up

Reviewed-by: James Page <james.page@ubuntu.com>
8 years agoMerge pull request #12128 from tchaikov/wip-cmake
Kefu Chai [Wed, 23 Nov 2016 15:21:32 +0000 (23:21 +0800)]
Merge pull request #12128 from tchaikov/wip-cmake

cmake: add -Wno-unknown-pragmas to CMAKE_CXX_FLAGS

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #12126 from branch-predictor/bp-doc-async-opts
Sage Weil [Wed, 23 Nov 2016 15:00:44 +0000 (10:00 -0500)]
Merge pull request #12126 from branch-predictor/bp-doc-async-opts

doc/rados/configuration/ms-ref.rst: document a few async msgr options

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #12135 from kylinstorage/wip-remove-unneeded-forward-declaration
Sage Weil [Wed, 23 Nov 2016 14:58:00 +0000 (09:58 -0500)]
Merge pull request #12135 from kylinstorage/wip-remove-unneeded-forward-declaration

osd/PG.h: remove unneeded forward declaration

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12162 from liewegas/wip-coverity
Sage Weil [Wed, 23 Nov 2016 14:15:13 +0000 (09:15 -0500)]
Merge pull request #12162 from liewegas/wip-coverity

script/run-coverity: update

8 years agoscript/run-coverity: -x 12162/head
Sage Weil [Wed, 23 Nov 2016 14:11:55 +0000 (09:11 -0500)]
script/run-coverity: -x

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11848 from javeme/case-CEPH_MSG_POOLOP
Loic Dachary [Wed, 23 Nov 2016 14:05:42 +0000 (15:05 +0100)]
Merge pull request #11848 from javeme/case-CEPH_MSG_POOLOP

mon: move case CEPH_MSG_POOLOP to OSDs group

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
8 years agoMerge pull request #12160 from vshankar/wip-17973
Jason Dillaman [Wed, 23 Nov 2016 13:22:16 +0000 (08:22 -0500)]
Merge pull request #12160 from vshankar/wip-17973

librbd: mark request as finished after failed refresh

8 years agodoc/rados/configuration/ms-ref.rst: document a few async msgr options 12126/head
Piotr Dałek [Tue, 22 Nov 2016 11:04:27 +0000 (12:04 +0100)]
doc/rados/configuration/ms-ref.rst: document a few async msgr options

Documentation of a few of Async Messenger configuration options.

Signed-off-by: Piotr Dałek <git@predictor.org.pl>
8 years agodoc: Add documentation about mon_allow_pool_delete before pool remove 11943/head
Wido den Hollander [Fri, 11 Nov 2016 08:53:31 +0000 (09:53 +0100)]
doc: Add documentation about mon_allow_pool_delete before pool remove

Tell users they need to set this to true before Monitors will allow
pools to be removed.

Also update the Pending Release Notes so that users can find this change
there.

This was changed with commit 5d7f4ea

Signed-off-by: Wido den Hollander <wido@42on.com>
8 years agoMerge pull request #12055 from liewegas/wip-17942
Kefu Chai [Wed, 23 Nov 2016 11:05:35 +0000 (19:05 +0800)]
Merge pull request #12055 from liewegas/wip-17942

osdc/Objecter: handle race between calc_target and handle_osd_map

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11178 from stiopaa1/osd_pg_changeStructPGRecoveryStatsToClass
Kefu Chai [Wed, 23 Nov 2016 11:02:53 +0000 (19:02 +0800)]
Merge pull request #11178 from stiopaa1/osd_pg_changeStructPGRecoveryStatsToClass

osd/PG.h: change PGRecoveryStats struct to class

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12009 from 363921219/master
Kefu Chai [Wed, 23 Nov 2016 11:01:04 +0000 (19:01 +0800)]
Merge pull request #12009 from 363921219/master

osd: clean up process_peering_events

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12031 from liewegas/wip-ceph-abort
Kefu Chai [Wed, 23 Nov 2016 11:00:10 +0000 (19:00 +0800)]
Merge pull request #12031 from liewegas/wip-ceph-abort

common: assert(0) -> ceph_abort()

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agolibrbd: account m_processing when failing request after refresh 12160/head
Venky Shankar [Wed, 23 Nov 2016 09:05:03 +0000 (14:35 +0530)]
librbd: account m_processing when failing request after refresh

AioImageRequestWQ::_void_process() dequeues an item from the
work queue by invoking ThreadPool::_void_process() which also
performs accounting by incrementing ->m_processing which never
gets decremented if an image refresh fails. This is exactly
the flow when running test_lock_fence.sh which blacklists a
client and expects failed I/O operation from the client.

Without this fix, running test_lock_fence.sh in a loop fails
with an assert in PointerWQ dtor within 100 odd runs.

Fixes: http://tracker.ceph.com/issues/17973
Signed-off-by: Venky Shankar <vshankar@redhat.com>
8 years agoMerge pull request #12034 from wjwithagen/wip-wjw-freebsd-strtoll
Kefu Chai [Wed, 23 Nov 2016 10:48:04 +0000 (18:48 +0800)]
Merge pull request #12034 from wjwithagen/wip-wjw-freebsd-strtoll

common/strtol.cc: Get error testing also to work on FreeBSD

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12150 from tchaikov/wip-kill-gf-complete-warnings
Kefu Chai [Wed, 23 Nov 2016 09:03:54 +0000 (17:03 +0800)]
Merge pull request #12150 from tchaikov/wip-kill-gf-complete-warnings

erasure-code: fix gf-complete warning

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agocmake: regroup CMAKE_CXX_FLAGS and CMAKE_C_FLAGS 12128/head
Kefu Chai [Wed, 23 Nov 2016 08:16:36 +0000 (16:16 +0800)]
cmake: regroup CMAKE_CXX_FLAGS and CMAKE_C_FLAGS

- some options are only meaningful for C++, so move them into
  CMAKE_CXX_FLAGS.
- regroup CMAKE_CXX_FLAGS and CMAKE_C_FLAGS, and remove the duplicated
  options.
- do not reset CMAKE_CXX_FLAGS with ${CMAKE_C_FLAGS}, instead, always
  append ${CMAKE_C_FLAGS} to existing ${CMAKE_CXX_FLAGS}. so we don't
  clobber CMAKE_CXX_FLAGS set by command line.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocmake: add -Wno-unknown-pragmas to CMAKE_C_FLAGS
Kefu Chai [Wed, 23 Nov 2016 07:55:15 +0000 (15:55 +0800)]
cmake: add -Wno-unknown-pragmas to CMAKE_C_FLAGS

this silences warnings like:

warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]

and recent clang (3.9 and 4.0) do not complain at seeing
so we only pass this this param to gcc.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoerasure-code: fix gf-complete warning 12150/head
Kefu Chai [Wed, 23 Nov 2016 07:32:42 +0000 (15:32 +0800)]
erasure-code: fix gf-complete warning

pick up latest gf-complete submodule

$ git log --no-merges --pretty=%s \
  a6847973cba329ae079d3bd26341a4ec2906f012..c431e1ff76bdce6c3f6c0d0cbdf6a01c68f81071
gf_w32.c: silence the -Wmaybe-uninitialized warning

it silences following warning:

ceph/src/erasure-code/jerasure/gf-complete/src/gf_w32.c: In
function ‘gf_w32_cfmgk_multiply_region_from_single’:

ceph/src/erasure-code/jerasure/gf-complete/src/gf_w32.c:410:5:
warning: ‘a’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
   g = _mm_insert_epi64 (a, g_star, 0);
     ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12146 from dzafman/wip-dz-delays
Loic Dachary [Wed, 23 Nov 2016 06:39:44 +0000 (07:39 +0100)]
Merge pull request #12146 from dzafman/wip-dz-delays

tests: minor make check cleanup

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #12136 from dachary/wip-17889-systemd-order
Kefu Chai [Wed, 23 Nov 2016 06:36:25 +0000 (14:36 +0800)]
Merge pull request #12136 from dachary/wip-17889-systemd-order

ceph-disk: resolve race conditions

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12145 from tchaikov/wip-client-use-after-freed
Brad Hubbard [Wed, 23 Nov 2016 06:07:28 +0000 (16:07 +1000)]
Merge pull request #12145 from tchaikov/wip-client-use-after-freed

client: trim_caps() do not dereference cap if it's removed

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agotest: Handle terminal width 0 case for running test in emacs 12146/head
David Zafman [Wed, 23 Nov 2016 05:41:17 +0000 (21:41 -0800)]
test: Handle terminal width 0 case for running test in emacs

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agotest: CLEANUP: Make wait_for_clean() clearer changing variable name
David Zafman [Wed, 23 Nov 2016 05:38:42 +0000 (21:38 -0800)]
test: CLEANUP: Make wait_for_clean() clearer changing variable name

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agotest: Return wait_for_clean() to start sleeping at .1
David Zafman [Wed, 23 Nov 2016 05:36:13 +0000 (21:36 -0800)]
test: Return wait_for_clean() to start sleeping at .1

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agotest: Enhance get_timeout_delays()
David Zafman [Wed, 23 Nov 2016 05:32:34 +0000 (21:32 -0800)]
test: Enhance get_timeout_delays()

Do all math using bc so we can have fractions
Allow caller to specify the first step (default 1)
Add testing of fractional first step

Signed-off-by: David Zafman <dzafman@redhat.com>
8 years agoclient: trim_caps() do not dereference cap if it's removed 12145/head
Kefu Chai [Wed, 23 Nov 2016 05:01:23 +0000 (13:01 +0800)]
client: trim_caps() do not dereference cap if it's removed

this silences the warning of "Use of memory after it is freed" reported
by clang static analyzer.

Reported-by: Brad Hubbard <bhubbard@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12127 from renhwztetecs/renhw-wip-doc-mds
Sage Weil [Wed, 23 Nov 2016 00:35:43 +0000 (19:35 -0500)]
Merge pull request #12127 from renhwztetecs/renhw-wip-doc-mds

doc/mds: fixup "mds bal mode" Description

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #12052 from liewegas/wip-osd-fast-dispatch
Yuri Weinstein [Wed, 23 Nov 2016 00:35:24 +0000 (16:35 -0800)]
Merge pull request #12052 from liewegas/wip-osd-fast-dispatch

osd: a few fast dispatch optimizations

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12059 from liewegas/wip-osd-omap-limits
Yuri Weinstein [Wed, 23 Nov 2016 00:34:54 +0000 (16:34 -0800)]
Merge pull request #12059 from liewegas/wip-osd-omap-limits

osd: set server-side limits on omap get operations

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #12064 from majianpeng/rocksdb-perf
Yuri Weinstein [Wed, 23 Nov 2016 00:33:22 +0000 (16:33 -0800)]
Merge pull request #12064 from majianpeng/rocksdb-perf

kv/RocksDBStore: Don't update rocksdb perf_context if rocksdb_perf di…

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12068 from yuyuyu101/wip-rdma-cct
Yuri Weinstein [Wed, 23 Nov 2016 00:32:32 +0000 (16:32 -0800)]
Merge pull request #12068 from yuyuyu101/wip-rdma-cct

msg/async/rdma: ensure CephContext existed

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12069 from liupan1111/wip-osd-up-heartbeat-peers
Yuri Weinstein [Wed, 23 Nov 2016 00:29:12 +0000 (16:29 -0800)]
Merge pull request #12069 from liupan1111/wip-osd-up-heartbeat-peers

osd: heartbeat peers need to be updated when a new OSD added into an existed cluster

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agomds: use unique_ptr unstable_bits_t in SimpleLock 11635/head
Patrick Donnelly [Mon, 24 Oct 2016 20:35:09 +0000 (16:35 -0400)]
mds: use unique_ptr unstable_bits_t in SimpleLock

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agomds: use unique_ptr in MDCache
Patrick Donnelly [Mon, 24 Oct 2016 20:34:52 +0000 (16:34 -0400)]
mds: use unique_ptr in MDCache

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agomds: use unique_ptr bufferlist in inline_data_t
Patrick Donnelly [Mon, 24 Oct 2016 15:51:50 +0000 (11:51 -0400)]
mds: use unique_ptr bufferlist in inline_data_t

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #11959 from batrick/mds-header-prot-org
John Spray [Tue, 22 Nov 2016 23:52:14 +0000 (23:52 +0000)]
Merge pull request #11959 from batrick/mds-header-prot-org

Partial organization of mds/ header sections

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #12111 from batrick/client-capsnap-emplace
John Spray [Tue, 22 Nov 2016 23:48:29 +0000 (23:48 +0000)]
Merge pull request #12111 from batrick/client-capsnap-emplace

client: put CapSnap not ptr in cap_snaps map

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #12098 from ukernel/wip-17606
John Spray [Tue, 22 Nov 2016 23:44:06 +0000 (23:44 +0000)]
Merge pull request #12098 from ukernel/wip-17606

multimds: fix state check in Migrator::find_stale_export_freeze()

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #12063 from batrick/i17858
John Spray [Tue, 22 Nov 2016 23:28:11 +0000 (23:28 +0000)]
Merge pull request #12063 from batrick/i17858

mds: use projected path construction for access

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agosrc/doc: move exports.txt into doc/ 12000/head
John Spray [Tue, 22 Nov 2016 23:13:29 +0000 (23:13 +0000)]
src/doc: move exports.txt into doc/

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agosrc/doc: remove anchortable.txt
John Spray [Tue, 22 Nov 2016 23:11:43 +0000 (23:11 +0000)]
src/doc: remove anchortable.txt

The anchor table is long gone.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agosrc/doc: fix class names in exports.txt
John Spray [Tue, 15 Nov 2016 16:43:31 +0000 (16:43 +0000)]
src/doc: fix class names in exports.txt

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #12141 from athanatos/wip-17983
Sage Weil [Tue, 22 Nov 2016 21:30:14 +0000 (16:30 -0500)]
Merge pull request #12141 from athanatos/wip-17983

osd/ECTransaction: only write out the hinfo if not delete

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12143 from rook/wip-boost-ext
Matt Benjamin [Tue, 22 Nov 2016 21:29:26 +0000 (16:29 -0500)]
Merge pull request #12143 from rook/wip-boost-ext

cmake: fix boost build on ubuntu 16.10 yakkety

8 years agoMerge pull request #12078 from yangdongsheng/rbd_cleanup
Jason Dillaman [Tue, 22 Nov 2016 21:03:30 +0000 (16:03 -0500)]
Merge pull request #12078 from yangdongsheng/rbd_cleanup

librbd: minor cleanup

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agocmake: fix boost build on ubuntu yakkety 12143/head
Bassam Tabbara [Tue, 22 Nov 2016 19:53:34 +0000 (11:53 -0800)]
cmake: fix boost build on ubuntu yakkety

If the host system has boost version 1.61 or higher (as in the case
for ubuntu 16.10 yakkety) the ceph build is currently broken. it
will pickup the system boost libraries but use the headers from the
submodule.

This commit ensure that when WITH_SYSTEM_BOOST is OFF we always
use the boost libraries and headers built from the submodule.

Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
8 years agoMerge pull request #12110 from batrick/client-failure-msg
Gregory Farnum [Tue, 22 Nov 2016 19:32:53 +0000 (14:32 -0500)]
Merge pull request #12110 from batrick/client-failure-msg

client: improve failure messages/debugging

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoosd/PG.h: remove unneeded forward declaration 12135/head
Li Wang [Tue, 22 Nov 2016 14:25:29 +0000 (14:25 +0000)]
osd/PG.h: remove unneeded forward declaration

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
8 years agocrushtool: s/exit(EXIT_FAILURE)/return EXIT_FAILURE/
Kefu Chai [Wed, 16 Nov 2016 03:56:09 +0000 (11:56 +0800)]
crushtool: s/exit(EXIT_FAILURE)/return EXIT_FAILURE/

so the destructor(s) can be called.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoglobal/signal_handler: reset injected segv after test
Kefu Chai [Wed, 16 Nov 2016 03:19:04 +0000 (11:19 +0800)]
global/signal_handler: reset injected segv after test

~CephContext() => ~TypedSingletonWrapper() => ~MempoolObs =>
unregister_command() => ldout() << "unregister_command" =>
Log::submit_entry() => *(volatile int *)(0) = 0xdead;

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agotest_cors.cc: fix the mem leak
Kefu Chai [Tue, 15 Nov 2016 06:42:35 +0000 (14:42 +0800)]
test_cors.cc: fix the mem leak

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoceph-disk: trigger must ensure device ownership 12132/head 12136/head
Loic Dachary [Tue, 22 Nov 2016 14:26:18 +0000 (15:26 +0100)]
ceph-disk: trigger must ensure device ownership

The udev rules that set the owner/group of the OSD devices are racing
with 50-udev-default.rules and depending on which udev event fires last,
ownership may not be as expected.

Since ceph-disk trigger --sync runs as root, always happens after
dm/lvm/filesystem units are complete and before activation, it is a good
time to set the ownership of the device.

It does not eliminate all races: a script running after systemd
local-fs.target and firing a udev event may create a situation where the
permissions of the device are temporarily reverted while the activation
is running.

Fixes: http://tracker.ceph.com/issues/17813
Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agoceph-disk: systemd unit must run after local-fs.target
Loic Dachary [Tue, 22 Nov 2016 13:45:45 +0000 (14:45 +0100)]
ceph-disk: systemd unit must run after local-fs.target

A ceph udev action may be triggered before the local file systems are
mounted because there is no ordering in udev. The ceph udev action
delegates asynchronously to systemd via ceph-disk@.service which will
fail if (for instance) the LVM partition required to mount /var/lib/ceph
is not available yet. The systemd unit will retry a few times but will
eventually fail permanently. The sysadmin can systemctl reset-fail at a
later time and it will succeed.

Add a dependency to ceph-disk@.service so that it waits until the local
file systems are mounted:

After=local-fs.target

Since local-fs.target depends on lvm, it will wait until the lvm
partition (as well as any dm devices) is ready and mounted before
attempting to activate the OSD. It may still fail because the
corresponding journal/data partition is not ready yet (which is
expected) but it will no longer fail because the lvm/filesystems/dm are
not ready.

Fixes: http://tracker.ceph.com/issues/17889
Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agocommon/Throttle: fix typo for BackoffThrottle 12129/head
Wei Jin [Tue, 22 Nov 2016 13:04:28 +0000 (21:04 +0800)]
common/Throttle: fix typo for BackoffThrottle

Fix formula so that pepople can understand it smoothly.

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
8 years agodoc/mds: fixup "mds bal mode" Description 12127/head
huanwen ren [Tue, 22 Nov 2016 12:10:51 +0000 (20:10 +0800)]
doc/mds: fixup "mds bal mode" Description

mds_load code is:
switch(g_conf->mds_bal_mode) {
  case 0:
    return
      .8 * auth.meta_load() +
      .2 * all.meta_load() +
      req_rate +
      10.0 * queue_len;

  case 1:
    return req_rate + 10.0*queue_len;

  case 2:
    return cpu_load_avg;
  }

from Brett Niver <bniver@redhat.com>

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
8 years agoMerge pull request #12124 from branch-predictor/bp-fast-markdown-doc
Kefu Chai [Tue, 22 Nov 2016 11:20:01 +0000 (19:20 +0800)]
Merge pull request #12124 from branch-predictor/bp-fast-markdown-doc

doc/rados/configuration/osd-config-ref.rst: document the fast mark down

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12123 from branch-predictor/bp-fast-markdown-is-default
Kefu Chai [Tue, 22 Nov 2016 11:04:39 +0000 (19:04 +0800)]
Merge pull request #12123 from branch-predictor/bp-fast-markdown-is-default

test/osd-fast-mark-down.sh: wrong assumption on first subtest

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agodoc/rados/configuration/osd-config-ref.rst: document the fast mark down 12124/head
Piotr Dałek [Tue, 22 Nov 2016 09:42:28 +0000 (10:42 +0100)]
doc/rados/configuration/osd-config-ref.rst: document the fast mark down

Document the "osd fast fail on connection refused" option.

Signed-off-by: Piotr Dałek <git@predictor.org.pl>
8 years agotest/osd-fast-mark-down.sh: wrong assumption on first subtest 12123/head
Piotr Dałek [Tue, 22 Nov 2016 09:14:14 +0000 (10:14 +0100)]
test/osd-fast-mark-down.sh: wrong assumption on first subtest

First subtest checks for proper behavior when "osd fast fail on
connection refused" is disabled, yet it doesn't disable it and
fails, as is it enabled by default.

Signed-off-by: Piotr Dałek <git@predictor.org.pl>
8 years agoMerge pull request #8948 from cooboos/perf-reset
Haomai Wang [Tue, 22 Nov 2016 06:31:08 +0000 (14:31 +0800)]
Merge pull request #8948 from cooboos/perf-reset

test: add perf-reset test in test/perf_counters.cc

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoassert(0) -> ceph_abort() 12031/head
Sage Weil [Tue, 22 Nov 2016 04:37:31 +0000 (23:37 -0500)]
assert(0) -> ceph_abort()

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12072 from dzafman/wip-test-17830
Kefu Chai [Tue, 22 Nov 2016 03:17:24 +0000 (11:17 +0800)]
Merge pull request #12072 from dzafman/wip-test-17830

tests: fix osd-scrub-repair.sh

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agolibrbd: cleanup: use a more proper variable name 12078/head
Dongsheng Yang [Sat, 19 Nov 2016 13:05:46 +0000 (08:05 -0500)]
librbd: cleanup: use a more proper variable name

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
8 years agoECTransaction: only write out the hinfo if not delete 12141/head
Samuel Just [Mon, 21 Nov 2016 23:37:25 +0000 (15:37 -0800)]
ECTransaction: only write out the hinfo if not delete

Fixes: http://tracker.ceph.com/issues/17983
Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agoECBackend: propogate read errors through callbacks
Samuel Just [Mon, 21 Nov 2016 22:56:56 +0000 (14:56 -0800)]
ECBackend: propogate read errors through callbacks

Signed-off-by: Samuel Just <sjust@redhat.com>
8 years agomds: organize CDentry class members 11959/head
Patrick Donnelly [Sat, 12 Nov 2016 00:12:17 +0000 (19:12 -0500)]
mds: organize CDentry class members

This amends the code to follow our C++ style guidelines with the goal of
increasing header readability.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agomds: organize Capability class members
Patrick Donnelly [Fri, 11 Nov 2016 23:54:03 +0000 (18:54 -0500)]
mds: organize Capability class members

This amends the code to follow our C++ style guidelines with the goal of
increasing header readability.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agomds: organize Beacon class members
Patrick Donnelly [Thu, 10 Nov 2016 23:51:27 +0000 (18:51 -0500)]
mds: organize Beacon class members

This amends the code to follow our C++ style guidelines with the goal of
increasing header readability.

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