]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agorgw: add location when data in another region. 2801/head
VRan Liu [Fri, 14 Nov 2014 08:27:17 +0000 (16:27 +0800)]
rgw: add location when data in another region.

When the bucket of requested is in another region, Add location header
in response, so client can follow that to get data.

Signed-off-by: VRan Liu <gliuwr@gmail.com>
10 years agoMerge pull request #2753 from dachary/wip-mailmap
Loic Dachary [Sat, 25 Oct 2014 23:44:31 +0000 (16:44 -0700)]
Merge pull request #2753 from dachary/wip-mailmap

mailmap updates

10 years agodoc/release-notes: v0.87 giant (draft)
Sage Weil [Fri, 24 Oct 2014 22:22:23 +0000 (15:22 -0700)]
doc/release-notes: v0.87 giant (draft)

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2763 from ceph/wip-da-SCA-20141010
Sage Weil [Fri, 24 Oct 2014 21:53:53 +0000 (14:53 -0700)]
Merge pull request #2763 from ceph/wip-da-SCA-20141010

Some fixes from SCA runs

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoPaxos.cc: use reinterpret_cast instead of c-style cast 2763/head
Danny Al-Gaaf [Tue, 21 Oct 2014 12:39:21 +0000 (14:39 +0200)]
Paxos.cc: use reinterpret_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agofuse_ll.cc: use reinterpret_cast instead of c-style cast
Danny Al-Gaaf [Tue, 21 Oct 2014 12:38:59 +0000 (14:38 +0200)]
fuse_ll.cc: use reinterpret_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agolibrados.cc: use static_cast instead of c-style cast
Danny Al-Gaaf [Tue, 21 Oct 2014 10:01:06 +0000 (12:01 +0200)]
librados.cc: use static_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #2789 from ceph/wip-rgw-explicit-reason
Sage Weil [Fri, 24 Oct 2014 18:35:06 +0000 (11:35 -0700)]
Merge pull request #2789 from ceph/wip-rgw-explicit-reason

rgw: send http status reason explicitly in fastcgi

10 years agoMerge remote-tracking branch 'gh/giant'
Sage Weil [Fri, 24 Oct 2014 18:19:39 +0000 (11:19 -0700)]
Merge remote-tracking branch 'gh/giant'

10 years agoRevert "Enforce cache size on read requests"
Sage Weil [Fri, 24 Oct 2014 18:19:35 +0000 (11:19 -0700)]
Revert "Enforce cache size on read requests"

This reverts commit 4fc9fffc494abedac0a9b1ce44706343f18466f1.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoRevert "osdc: Fix ObjectCounter::_readx perf counters"
Sage Weil [Fri, 24 Oct 2014 18:19:21 +0000 (11:19 -0700)]
Revert "osdc: Fix ObjectCounter::_readx perf counters"

This reverts commit 830373ef018a78c3fe9d1b9ade208249fe8ccc6a.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoRevert "osdc: Fix compiler warning"
Sage Weil [Fri, 24 Oct 2014 18:19:15 +0000 (11:19 -0700)]
Revert "osdc: Fix compiler warning"

This reverts commit cb290a117ae17961c9e43e5fe76bb3edb2ed7efa.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoRevert "rbd: ObjectCacher reads can hang when reading sparse files"
Sage Weil [Fri, 24 Oct 2014 18:16:36 +0000 (11:16 -0700)]
Revert "rbd: ObjectCacher reads can hang when reading sparse files"

This reverts commit cdb7675a21c9107e3596c90c2b1598def3c6899f.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoRevert "Fix read performance regression in ObjectCacher"
Sage Weil [Fri, 24 Oct 2014 18:16:25 +0000 (11:16 -0700)]
Revert "Fix read performance regression in ObjectCacher"

This reverts commit 65be257e9295619b960b49f6aa80ecdf8ea4d16a.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years ago.gitmodules: ignoring changes in rocksdb submodule
Federico Gimenez [Fri, 24 Oct 2014 06:46:50 +0000 (08:46 +0200)]
.gitmodules: ignoring changes in rocksdb submodule

Signed-off-by: Federico Gimenez <fgimenez@coit.es>
(cherry picked from commit 60eaeca4ddccc79b29b17ad433c6569cb2a89500)

10 years agoMerge pull request #2797 from ceph/wip-rbd-revert
Josh Durgin [Fri, 24 Oct 2014 18:12:29 +0000 (11:12 -0700)]
Merge pull request #2797 from ceph/wip-rbd-revert

rbd/objectcacher: revert recent changes for giant

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoRevert "Enforce cache size on read requests" 2797/head
Sage Weil [Fri, 24 Oct 2014 18:06:16 +0000 (11:06 -0700)]
Revert "Enforce cache size on read requests"

This reverts commit 4fc9fffc494abedac0a9b1ce44706343f18466f1.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoRevert "rbd: ObjectCacher reads can hang when reading sparse files"
Sage Weil [Fri, 24 Oct 2014 18:06:08 +0000 (11:06 -0700)]
Revert "rbd: ObjectCacher reads can hang when reading sparse files"

This reverts commit cdb7675a21c9107e3596c90c2b1598def3c6899f.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoRevert "Fix read performance regression in ObjectCacher"
Sage Weil [Fri, 24 Oct 2014 18:05:53 +0000 (11:05 -0700)]
Revert "Fix read performance regression in ObjectCacher"

This reverts commit 65be257e9295619b960b49f6aa80ecdf8ea4d16a.

Too late for giant.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2768 from ceph/wip-msgr
Sage Weil [Fri, 24 Oct 2014 17:58:27 +0000 (10:58 -0700)]
Merge pull request #2768 from ceph/wip-msgr

msgr: merge AsyncMessenger

Lightly reviewed.  Won't impact build or runtime unless explicitly enabled with ms_type = async (or random).

10 years agoMerge pull request #2795 from ceph/wip-9873
David Zafman [Fri, 24 Oct 2014 17:49:32 +0000 (10:49 -0700)]
Merge pull request #2795 from ceph/wip-9873

objecter: fix tick_event shutdown race (9873)

Reviewed-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #2793 from dachary/wip-dead-code-lrc
Sage Weil [Fri, 24 Oct 2014 17:40:58 +0000 (10:40 -0700)]
Merge pull request #2793 from dachary/wip-dead-code-lrc

erasure-code: remove LRC dead code

10 years agoosdc/Objecter: fix tick_event handling in shutdown vs tick race 2795/head
Sage Weil [Fri, 24 Oct 2014 16:32:20 +0000 (09:32 -0700)]
osdc/Objecter: fix tick_event handling in shutdown vs tick race

If we fail to cancel the tick_event, we rely on tick() itself to clear
tick_event.  I'm not quite sure how we got this wrong in the previous
commit, but this boils down to two cases:

1) shutdown() successfully cancels the event and clears tick_event.  tick()
   never runs.  tick_event == NULL when we finish.
2) shutdown() fails to cancel the event because it has already started.  In
   this case tick itself is blocking (or about to block) waiting on the
   rlock.  When it does run it will clear tick_event itself, then see
   initiazed == 0 and exit without rescheduling.

Fixes: #9873
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agocommon/Timer: recheck stopping before sleep if we dropped the lock
Sage Weil [Fri, 24 Oct 2014 16:20:41 +0000 (09:20 -0700)]
common/Timer: recheck stopping before sleep if we dropped the lock

If we have safe_callbacks==false, the stopping flag may have changed while
we were doing our callback. Recheck it and exit to avoid a deadlock on
shutdown.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoerasure-code: remove LRC dead code 2793/head
Loic Dachary [Fri, 24 Oct 2014 15:09:39 +0000 (08:09 -0700)]
erasure-code: remove LRC dead code

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2790 from fgimenez/git-ignore-src-rocksdb
Sage Weil [Fri, 24 Oct 2014 15:01:16 +0000 (08:01 -0700)]
Merge pull request #2790 from fgimenez/git-ignore-src-rocksdb

.gitmodules: ignoring changes in rocksdb submodule

10 years agoMerge pull request #2791 from majianpeng/fix1
Sage Weil [Fri, 24 Oct 2014 13:58:18 +0000 (06:58 -0700)]
Merge pull request #2791 from majianpeng/fix1

ECTransaction: Remove unused typedef.

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoECTransaction: Remove unused typedef. 2791/head
Jianpeng Ma [Tue, 21 Oct 2014 03:56:07 +0000 (11:56 +0800)]
ECTransaction: Remove unused typedef.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years ago.gitmodules: ignoring changes in rocksdb submodule 2790/head
Federico Gimenez [Fri, 24 Oct 2014 06:46:50 +0000 (08:46 +0200)]
.gitmodules: ignoring changes in rocksdb submodule

Signed-off-by: Federico Gimenez <fgimenez@coit.es>
10 years agoMerge pull request #2783 from xanpeng/patch-1
Sage Weil [Fri, 24 Oct 2014 00:59:56 +0000 (17:59 -0700)]
Merge pull request #2783 from xanpeng/patch-1

Remove unnecessary expressions about conf_journal_sz

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2787 from ceph/fix-fstat-mode
Sage Weil [Fri, 24 Oct 2014 00:57:02 +0000 (17:57 -0700)]
Merge pull request #2787 from ceph/fix-fstat-mode

java: fill in stat structure correctly

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2784 from xinxinsh/master
Sage Weil [Fri, 24 Oct 2014 00:54:56 +0000 (17:54 -0700)]
Merge pull request #2784 from xinxinsh/master

check rocksdb library when '--with-librocksdb' option is enabled

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agorgw: send http status reason explicitly in fastcgi 2789/head
Yehuda Sadeh [Fri, 24 Oct 2014 00:39:42 +0000 (17:39 -0700)]
rgw: send http status reason explicitly in fastcgi

There are issues in certain versions of apache 2.4, where the reason is
not sent back. Instead, just provide the reason explicitly.

Backport: firefly, giant

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge remote-tracking branch 'gh/giant'
Sage Weil [Thu, 23 Oct 2014 23:44:45 +0000 (16:44 -0700)]
Merge remote-tracking branch 'gh/giant'

10 years agojava: fill in stat structure correctly 2787/head
Noah Watkins [Thu, 23 Oct 2014 20:22:52 +0000 (13:22 -0700)]
java: fill in stat structure correctly

Added stat filling helper function but only stat and lstat were updated.
This patch makes fstat use it. Crucially the fstat wasn't updating the
mode flags.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
10 years agoMerge pull request #2785 from athanatos/wip-9821
Sage Weil [Thu, 23 Oct 2014 20:45:26 +0000 (13:45 -0700)]
Merge pull request #2785 from athanatos/wip-9821

PG:: reset_interval_flush and in set_last_peering_reset

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2733 from dachary/wip-9372-injectargs
Dan Mick [Thu, 23 Oct 2014 19:32:37 +0000 (12:32 -0700)]
Merge pull request #2733 from dachary/wip-9372-injectargs

cli: do not parse injectargs arguments twice

Reviewed-by: Dan Mick <dan.mick@inktank.com>
10 years agoMerge pull request #2759 from dachary/wip-9836-test-mon-id
Loic Dachary [Thu, 23 Oct 2014 18:29:26 +0000 (11:29 -0700)]
Merge pull request #2759 from dachary/wip-9836-test-mon-id

tests: mon id is incorrectly skipped

10 years agoMerge pull request #2766 from dachary/wip-9408-buffer-alignment-giant
Samuel Just [Thu, 23 Oct 2014 16:52:00 +0000 (09:52 -0700)]
Merge pull request #2766 from dachary/wip-9408-buffer-alignment-giant

erasure-code: buffer alignment (giant)

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #2781 from zhouyuan/lrc_layer_plugin_doc
Loic Dachary [Thu, 23 Oct 2014 15:26:40 +0000 (08:26 -0700)]
Merge pull request #2781 from zhouyuan/lrc_layer_plugin_doc

EC: document the LRC per layer plugin configuration

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoRemove unnecessary expressions about conf_journal_sz 2783/head
xan [Thu, 23 Oct 2014 11:05:32 +0000 (19:05 +0800)]
Remove unnecessary expressions about conf_journal_sz

Signed-off-by: Xan Peng xanpeng@gmail.com
10 years agoEC: document the LRC per layer plugin configuration 2781/head
Yuan Zhou [Thu, 23 Oct 2014 05:27:45 +0000 (13:27 +0800)]
EC: document the LRC per layer plugin configuration

LRC now uses Jerasure as the default EC backend. But it is actually
possible to switch to other backend like Isa using the low level
configuration. This commits Adds documents on how to specify the EC
backend in each LRC layer:

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
10 years agocheck rocksdb library when '--with-librocksdb' option is enabled 2784/head
xinxin shu [Thu, 23 Oct 2014 05:20:58 +0000 (13:20 +0800)]
check rocksdb library when '--with-librocksdb' option is enabled

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
10 years agoMerge pull request #2767 from derricks/more_verbose_error_output
Loic Dachary [Thu, 23 Oct 2014 00:22:12 +0000 (17:22 -0700)]
Merge pull request #2767 from derricks/more_verbose_error_output

Make better error reporting for client's call to rados.Rados

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoqa: use sudo when rsyncing /usr so we can read everything
Greg Farnum [Tue, 21 Oct 2014 17:55:06 +0000 (10:55 -0700)]
qa: use sudo when rsyncing /usr so we can read everything

Signed-off-by: Greg Farnum <greg@inktank.com>
(cherry picked from commit fa07c04231db2d130de54647957ffab4a7a53733)

10 years agoqa: use sudo when rsyncing /usr so we can read everything
Greg Farnum [Tue, 21 Oct 2014 17:55:06 +0000 (10:55 -0700)]
qa: use sudo when rsyncing /usr so we can read everything

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoMerge pull request #2777 from ceph/wip-9859
Sage Weil [Wed, 22 Oct 2014 18:36:07 +0000 (11:36 -0700)]
Merge pull request #2777 from ceph/wip-9859

mon: Monitor: MMonGetMap doesn't require caps

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agomon: Monitor: MMonGetMap doesn't require caps 2777/head
Joao Eduardo Luis [Wed, 22 Oct 2014 18:30:08 +0000 (19:30 +0100)]
mon: Monitor: MMonGetMap doesn't require caps

We are dropping the requirement for MON_CAP_R for MMonGetMap.

Reason is simple enough: clients may need to contact the monitors and
obtain the latest monmap before authenticating.  This happens, for
instance, when a client calls MonClient::get_monmap_privately().  The
osd uses this function during mkfs, prior to initializing a keyring or
even so much as existing.

Fixes: #9859
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agoMerge pull request #2770 from ceph/wip-9857
Josh Durgin [Tue, 21 Oct 2014 23:53:27 +0000 (16:53 -0700)]
Merge pull request #2770 from ceph/wip-9857

rbd: Correct readahead divide by zero exception

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMake better error reporting for client's call to rados.Rados 2767/head
Derrick Schneider [Tue, 21 Oct 2014 18:56:10 +0000 (11:56 -0700)]
Make better error reporting for client's call to rados.Rados

Signed-off-by: Derrick Schneider derrick.schneider@gmail.com
10 years agoPG:: reset_interval_flush and in set_last_peering_reset 2785/head
Samuel Just [Mon, 20 Oct 2014 21:10:58 +0000 (14:10 -0700)]
PG:: reset_interval_flush and in set_last_peering_reset

If we have a change in the prior set, but not in the up/acting set, we go back
through Reset in order to reset peering state.  Previously, we would reset
last_peering_reset in the Reset constructor.  This did not, however, reset the
flush_interval, which caused the eventual flush event to be ignored and the
peering messages to not be sent.

Instead, we will always reset_interval_flush if we are actually changing the
last_peering_reset value.

Fixes: #9821
Backport: firefly
Signed-off-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge remote-tracking branch 'gh/giant'
Sage Weil [Tue, 21 Oct 2014 17:39:42 +0000 (10:39 -0700)]
Merge remote-tracking branch 'gh/giant'

10 years agoobjecter: Unlock in shutdown before waiting for timer thread
David Zafman [Tue, 21 Oct 2014 07:52:37 +0000 (00:52 -0700)]
objecter: Unlock in shutdown before waiting for timer thread

Fixes: #9845
Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoerasure-code: use ErasureCode::SIMD_ALIGN in ceph_erasure_code_benchmark 2766/head
Loic Dachary [Mon, 13 Oct 2014 14:43:20 +0000 (16:43 +0200)]
erasure-code: use ErasureCode::SIMD_ALIGN in ceph_erasure_code_benchmark

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: add ErasureCode::encode unit test
Loic Dachary [Mon, 13 Oct 2014 12:48:27 +0000 (14:48 +0200)]
erasure-code: add ErasureCode::encode unit test

Re-create and describe the situation that is fixed by
91a7e18f60bbc9acab3045baaa1b6505474ec4a9 which reworks the buffer
preparation function provided by ErasureCode::encode.

http://tracker.ceph.com/issues/9408 Refs: #9408

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: expose ErasureCode::SIMD_ALIGN as a const
Loic Dachary [Mon, 13 Oct 2014 12:46:22 +0000 (14:46 +0200)]
erasure-code: expose ErasureCode::SIMD_ALIGN as a const

For test purposes and it will also be useful for plugins that must
ensure the chunk size is a multiple of SIMD_ALIGN.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoceph_erasure_code_benchmark: use 32-byte aligned input
Janne Grunau [Mon, 29 Sep 2014 12:34:32 +0000 (14:34 +0200)]
ceph_erasure_code_benchmark: use 32-byte aligned input

The benchmark is supposed to measure the encoding/decoding speed and
not the overhead of buffer realignments.

Signed-off-by: Janne Grunau <j@jannau.net>
10 years agoerasure code: use 32-byte aligned buffers
Janne Grunau [Mon, 29 Sep 2014 12:34:31 +0000 (14:34 +0200)]
erasure code: use 32-byte aligned buffers

Requiring page aligned buffers and realigning the input if necessary
creates measurable oberhead. ceph_erasure_code_benchmark is between
10-20% faster depending on the workload.

Also prevents a misaligned buffer when bufferlist::c_str(bufferlist)
has to allocate a new buffer to provide continuous one. See bug #9408

Signed-off-by: Janne Grunau <j@jannau.net>
10 years agoerasure code: use a function for the chunk mapping index
Janne Grunau [Mon, 29 Sep 2014 12:34:30 +0000 (14:34 +0200)]
erasure code: use a function for the chunk mapping index

10 years agocommon: add an aligned buffer with less alignment than a page
Loic Dachary [Mon, 13 Oct 2014 14:32:18 +0000 (16:32 +0200)]
common: add an aligned buffer with less alignment than a page

SIMD optimized erasure code computation needs aligned memory. Buffers
aligned to a page boundary are not needed though. The buffers used
for the erasure code computation are typical smaller than a page.

The typical alignment requirements SIMD operations are 16 bytes for
SSE2 and NEON and 32 bytes for AVX/AVX2.

Add new prototypes with an align argument, similar to the one enforcing
page alignment. The implementation is exactly the same, except for the
align parameter. The page alignment method are then implemented as calls
to the more generic methods.

The align parameter is an unsigned (same type as CEPH_PAGE_SIZE). The
CEPH_PAGE_MASK value ( ~(CEPH_PAGE_SIZE - 1) ) was only used as
~CEPH_PAGE_MASK, i.e. equivalent of (CEPH_PAGE_SIZE - 1) once the double
~~ is reduced. These occurrence are replaced with (align - 1). The type
of CEPH_PAGE_MASK is an unsigned long which probably because it was
~(CEPH_PAGE_SIZE). When using (align - 1) as a mask for both
CEPH_PAGE_SIZE and SIMD alignment there is no need to use an unsigned
long because there is no risk of overflowing the unsigned value.

The CYGWIN specific code is also modified but not tested.

Unit tests are added for the new methods.

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agocommon: remove dead code in buffer.cc
Loic Dachary [Mon, 13 Oct 2014 14:29:10 +0000 (16:29 +0200)]
common: remove dead code in buffer.cc

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agomsg/async/AsyncConnection: drop unused port 2768/head
Sage Weil [Tue, 21 Oct 2014 16:56:17 +0000 (09:56 -0700)]
msg/async/AsyncConnection: drop unused port

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomsg/Messenger: allow ms_type 'random'
Sage Weil [Tue, 21 Oct 2014 15:42:38 +0000 (08:42 -0700)]
msg/Messenger: allow ms_type 'random'

Randomly select simple or async, for testing purposes.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomsg/Makefile: keep headers
Sage Weil [Tue, 21 Oct 2014 15:40:44 +0000 (08:40 -0700)]
msg/Makefile: keep headers

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomsg/async: rename ms_event_ -> ms_async_, drop unused config options
Sage Weil [Tue, 21 Oct 2014 15:39:31 +0000 (08:39 -0700)]
msg/async: rename ms_event_ -> ms_async_, drop unused config options

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge branch 'msg-event-worker-mode' of git://github.com/yuyuyu101/ceph into wip...
Sage Weil [Tue, 21 Oct 2014 15:31:53 +0000 (08:31 -0700)]
Merge branch 'msg-event-worker-mode' of git://github.com/yuyuyu101/ceph into wip-msgr

10 years agoMerge pull request #2710 from yuyuyu101/keyvaluestore-clone-rmattr
Sage Weil [Tue, 21 Oct 2014 15:31:27 +0000 (08:31 -0700)]
Merge pull request #2710 from yuyuyu101/keyvaluestore-clone-rmattr

Fix Keyvaluestore clone rmattr

10 years agoMerge pull request #2761 from fgimenez/do-autogen-defaults-to-nss
Sage Weil [Tue, 21 Oct 2014 13:34:53 +0000 (06:34 -0700)]
Merge pull request #2761 from fgimenez/do-autogen-defaults-to-nss

do_autogen.sh: default configure with nss instead of cryptopp

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agolibcephfs.cc: use reinterpret_cast instead of c-style cast
Danny Al-Gaaf [Tue, 21 Oct 2014 10:00:40 +0000 (12:00 +0200)]
libcephfs.cc: use reinterpret_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorbd: Correct readahead divide by zero exception 2770/head
Jason Dillaman [Tue, 21 Oct 2014 07:42:13 +0000 (03:42 -0400)]
rbd: Correct readahead divide by zero exception

When readahead is used on old-format RBD images, a divide
by zero signal will be thrown.  This was caused by initializing
the readahead alignments prior to initializing the stripe layout
of old-format RBD images.

Fixes: 9857
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
10 years agoMakefile.am: remove also old *.o/lo files
Danny Al-Gaaf [Tue, 21 Oct 2014 07:53:27 +0000 (09:53 +0200)]
Makefile.am: remove also old *.o/lo files

Make sure all no longer used/build *.o and *.lo files are
removed on 'make clean' e.g. after moving files around in
the src tree or Makefile.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agocrush/CrushWrapper.cc: use reinterpret_cast instead of c-style cast
Danny Al-Gaaf [Tue, 14 Oct 2014 14:57:57 +0000 (16:57 +0200)]
crush/CrushWrapper.cc: use reinterpret_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoclient/Client.cc: prefer empty() over size() for emptiness check
Danny Al-Gaaf [Tue, 14 Oct 2014 10:03:48 +0000 (12:03 +0200)]
client/Client.cc: prefer empty() over size() for emptiness check

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoFileJournal.cc: use reinterpret_cast instead of c-style cast
Danny Al-Gaaf [Tue, 14 Oct 2014 10:02:56 +0000 (12:02 +0200)]
FileJournal.cc: use reinterpret_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoDefault configure with nss instead of cryptopp 2761/head
Federico Gimenez [Tue, 21 Oct 2014 06:44:43 +0000 (08:44 +0200)]
Default configure with nss instead of cryptopp

The -n option for nss has been changed to -c to give the
chance to pass cryptopp flag to configure

Signed-off-by: Federico Gimenez <fgimenez@coit.es>
10 years agocli: CEPH_ARGS must be before injectargs 2733/head
Loic Dachary [Thu, 16 Oct 2014 15:39:15 +0000 (08:39 -0700)]
cli: CEPH_ARGS must be before injectargs

It is incorrect to append the content of CEPH_ARGS to the argument list
when running injectargs. For instance if

  CEPH_ARGS='--log-file the.log' \
    ./ceph tell osd.0 injectargs --no-osd_debug_op_order

translates into

    ./ceph tell osd.0 injectargs --no-osd_debug_op_order \
                                 --log-file the.log

it ends up changing the log file of osd.0 which is probably unintended.
Instead CEPH_ARGS is inserted before injectargs and it translates into:

    ./ceph tell osd.0 --log-file the.log \
                      injectargs --no-osd_debug_op_order

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agodoc: update injectargs syntax
Loic Dachary [Thu, 16 Oct 2014 06:26:16 +0000 (23:26 -0700)]
doc: update injectargs syntax

Modify the examples to use the simpler syntax, not involving -- or
grouping with quotes.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agocli: do not parse injectargs arguments twice
Loic Dachary [Thu, 16 Oct 2014 06:04:03 +0000 (23:04 -0700)]
cli: do not parse injectargs arguments twice

The arguments of injectargs being valid ceph arguments, they are.
consumed when the ceph cli calls rados.conf_parse_argv(). It can be
worked around by obsuring them as in:

   ceph tell osd.0 injectargs '--osd_debug_drop_ping_probability 444'

where '--osd_debug_drop_ping_probability 444' is a single argument that
does not match any known argument. The trick is that it will be
evaluated again once it reaches the OSD or the MON and translated into
the expected list of arguments. Although it is clear once explained, it
is obscure and leads to strange combinations such as:

   ceph tell osd.0 injectargs '--osd_debug_op_order '

(note the extra space at the end) to set boolean parameters. A better
workaround is to add a -- marking the end of the options as in:

   ceph tell osd.0 -- injectargs --osd_debug_op_order

this one is unfortunately much less documented and the user does not
usually know the exact semantic of --, let alone where it should be
placed.

The simpler solution is to split the argument list in two if
"injectargs" is found. The arguments that show after the "injectargs"
argument is removed from the list of arguments until parsing is
complete. It implements the more intuitive syntax:

   ceph tell osd.0 injectargs --osd_debug_op_order

and the other forms are still valid for backward compatibility.

http://tracker.ceph.com/issues/9372 Fixes: #9372

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agocli: add verbose information related to argument parsing
Loic Dachary [Thu, 16 Oct 2014 05:32:05 +0000 (22:32 -0700)]
cli: add verbose information related to argument parsing

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2419 from sponce/wip-9356
Loic Dachary [Tue, 21 Oct 2014 05:45:08 +0000 (22:45 -0700)]
Merge pull request #2419 from sponce/wip-9356

Fixed seg fault described in bug 9356 by adding reference counting on an...

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agomailmap: Jiantao He name normalization 2753/head
Loic Dachary [Sun, 19 Oct 2014 17:23:43 +0000 (10:23 -0700)]
mailmap: Jiantao He name normalization

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agomailmap: Ma Jianpeng name normalization
Loic Dachary [Sun, 19 Oct 2014 17:23:00 +0000 (10:23 -0700)]
mailmap: Ma Jianpeng name normalization

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agomailmap: Wyllys Ingersoll affiliation
Loic Dachary [Sun, 19 Oct 2014 17:22:28 +0000 (10:22 -0700)]
mailmap: Wyllys Ingersoll affiliation

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agomailmap: Jiantao He affiliation
Loic Dachary [Sun, 19 Oct 2014 17:22:01 +0000 (10:22 -0700)]
mailmap: Jiantao He affiliation

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agomailmap: Mehdi Abaakouk affiliation
Loic Dachary [Sun, 19 Oct 2014 17:21:29 +0000 (10:21 -0700)]
mailmap: Mehdi Abaakouk affiliation

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agomailmap: VRan Liu affiliation
Loic Dachary [Sun, 19 Oct 2014 17:21:01 +0000 (10:21 -0700)]
mailmap: VRan Liu affiliation

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agomailmap: Yann Dupont affiliation
Loic Dachary [Sun, 19 Oct 2014 17:20:35 +0000 (10:20 -0700)]
mailmap: Yann Dupont affiliation

Reviewed-by: Yann Dupont <yann@objoo.org>
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoFix read performance regression in ObjectCacher
Adam Crume [Wed, 8 Oct 2014 00:45:53 +0000 (17:45 -0700)]
Fix read performance regression in ObjectCacher

The regression was introduced in commit
4fc9fffc494abedac0a9b1ce44706343f18466f1.  The problem is that the cache
thinks it's full (when it's not), so it defers the read.  This change
frees up cache space if necessary and only defers the read if enough
space cannot be freed.

Fixes: 9513
Signed-off-by: Adam Crume <adamcrume@gmail.com>
(cherry picked from commit 82175ec94acc89dc75da0154f86187fb2e4dbf5e)

10 years agotests: mon id is incorrectly skipped 2759/head
Loic Dachary [Mon, 20 Oct 2014 18:20:35 +0000 (11:20 -0700)]
tests: mon id is incorrectly skipped

The argument is shifted and $1 should be used to get the mon id instead
of $2.

http://tracker.ceph.com/issues/9836 Fixes: #9836

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2758 from ceph/wip-9820
Sage Weil [Mon, 20 Oct 2014 17:46:48 +0000 (10:46 -0700)]
Merge pull request #2758 from ceph/wip-9820

qa/workunits: cephtool: don't remove self's key on auth tests

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoqa/workunits: cephtool: don't remove self's key on auth tests 2758/head
Joao Eduardo Luis [Mon, 20 Oct 2014 17:00:15 +0000 (18:00 +0100)]
qa/workunits: cephtool: don't remove self's key on auth tests

Suites run with CEPH_TEST_CLI_DUP_COMMAND=1, which will send a duplicate
command for every command issued with the 'ceph' tool.  Behavior is to
get a reply from the command and then send a duplicate, looking for the
same outcome (guaranteeing idempotency of the operations).  However, it
so happens that if you remove the entity's own key from the keyring and
you happen to be unlucky enough so that the client's connection gets
failed (we also run tests with connection failure injections), the
'ceph' tool won't be able to reconnect to the cluster to send the
duplicate command (as it's entity no longer exists in the cluster's
keyring).

We rewrite the test instead of resorting to ugly hacks to work around
this behavior, simply having a new 'role-definer' added by the existing
'role-definer' (which we weren't testing anyway, so bonus points for
that) and then have one removing the other (to test the procedure) and
finally using 'client.admin' to remove the last 'role-definer'.

Fixes: #9820
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agoAdded missing semaphore in libradosstriper AIO tests leading to potential memory... 2419/head
Sebastien Ponce [Thu, 9 Oct 2014 13:44:06 +0000 (15:44 +0200)]
Added missing semaphore in libradosstriper AIO tests leading to potential memory corruption and thus test failures

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
10 years agoFixed remaining part of the seg fault described in bug 9356 by adding reference count...
Sebastien Ponce [Wed, 15 Oct 2014 14:05:00 +0000 (16:05 +0200)]
Fixed remaining part of the seg fault described in bug 9356 by adding reference counting to CompletionData

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
10 years agoFixed part of the seg fault described in bug 9356 by adding reference counting on...
Sebastien Ponce [Mon, 8 Sep 2014 12:23:03 +0000 (14:23 +0200)]
Fixed part of the seg fault described in bug 9356 by adding reference counting on RadosReadCompletionData

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
10 years agoFixed part of the seg fault described in bug 9356 by cleaning reference counting...
Sebastien Ponce [Thu, 16 Oct 2014 09:56:52 +0000 (11:56 +0200)]
Fixed part of the seg fault described in bug 9356 by cleaning reference counting on MultiAioCompletionImpl

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
10 years agoCleanup up useless method release in MultiAioCompletionImpl. It was exactly equivalen...
Sebastien Ponce [Wed, 15 Oct 2014 13:50:35 +0000 (15:50 +0200)]
Cleanup up useless method release in MultiAioCompletionImpl. It was exactly equivalent to put

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
10 years agoMerge pull request #2757 from fgimenez/update-pool-names-in-dev-guide
Sage Weil [Mon, 20 Oct 2014 15:34:45 +0000 (08:34 -0700)]
Merge pull request #2757 from fgimenez/update-pool-names-in-dev-guide

doc: updated names of default pools created at startup

10 years agoUpdated names of default pools created at startup 2757/head
fgimenez [Mon, 20 Oct 2014 11:43:56 +0000 (13:43 +0200)]
Updated names of default pools created at startup

10 years agoMerge pull request #2751 from dachary/wip-warnings
John Spray [Mon, 20 Oct 2014 08:42:37 +0000 (09:42 +0100)]
Merge pull request #2751 from dachary/wip-warnings

client: fix signed/unsigned compilation warnings

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoKeyValueStore: Add clone op detect to promote error 2710/head
Haomai Wang [Thu, 16 Oct 2014 02:03:42 +0000 (10:03 +0800)]
KeyValueStore: Add clone op detect to promote error

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>