]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agocommon: document C_GatherBuilder and C_Gather 2609/head
Loic Dachary [Tue, 30 Sep 2014 12:10:25 +0000 (14:10 +0200)]
common: document C_GatherBuilder and C_Gather

* Introduction explaining what they are used for
* Commented example to illustrate the abstract description

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2502 from yuyuyu101/kvstore-meta-cache
Sage Weil [Mon, 29 Sep 2014 23:43:29 +0000 (16:43 -0700)]
Merge pull request #2502 from yuyuyu101/kvstore-meta-cache

KeyValueStore: performance improvement and docs

10 years agoMerge pull request #2523 from ceph/wip-6926
Josh Durgin [Mon, 29 Sep 2014 23:41:47 +0000 (16:41 -0700)]
Merge pull request #2523 from ceph/wip-6926

rbd: Fix rbd diff for non-existent objects

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMerge remote-tracking branch 'gh/giant'
Sage Weil [Mon, 29 Sep 2014 23:17:15 +0000 (16:17 -0700)]
Merge remote-tracking branch 'gh/giant'

Conflicts:
qa/workunits/cephtool/test.sh
src/test/erasure-code/TestErasureCodeIsa.cc

10 years agoMerge pull request #2602 from athanatos/wip-9574
Sage Weil [Mon, 29 Sep 2014 21:14:40 +0000 (14:14 -0700)]
Merge pull request #2602 from athanatos/wip-9574

PG: check full ratio again post-reservation

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2604 from athanatos/wip-9113
Sage Weil [Mon, 29 Sep 2014 21:02:15 +0000 (14:02 -0700)]
Merge pull request #2604 from athanatos/wip-9113

ReplicatedPG: clean out completed trimmed objects as we go

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2549 from ceph/wip-9545
Samuel Just [Mon, 29 Sep 2014 20:54:31 +0000 (13:54 -0700)]
Merge pull request #2549 from ceph/wip-9545

os/FileJournal: do not request sync while shutting down

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #2550 from ceph/wip-8629
Samuel Just [Mon, 29 Sep 2014 20:52:21 +0000 (13:52 -0700)]
Merge pull request #2550 from ceph/wip-8629

osd: fix cache_evict vs make_writeable/finish_ctx snapdir bug #8629

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #2510 from somnathr/wip-obj-delete-fix
Samuel Just [Mon, 29 Sep 2014 20:44:37 +0000 (13:44 -0700)]
Merge pull request #2510 from somnathr/wip-obj-delete-fix

FileStore: Race condition during object delete is fixed

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #2598 from ceph/wip-9582
Sage Weil [Mon, 29 Sep 2014 20:08:10 +0000 (13:08 -0700)]
Merge pull request #2598 from ceph/wip-9582

librados: fix other timeout segfault

Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agoMerge pull request #2458 from ceph/wip-9341
John Spray [Mon, 29 Sep 2014 20:02:58 +0000 (21:02 +0100)]
Merge pull request #2458 from ceph/wip-9341

client: trim unused inodes before reconnecting to recovering MDS

Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #2555 from theanalyst/wip/mailmap
Loic Dachary [Mon, 29 Sep 2014 18:25:08 +0000 (20:25 +0200)]
Merge pull request #2555 from theanalyst/wip/mailmap

mailmap updates

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agomailmap: Riccardo Ferretti affiliation 2555/head
Abhishek Lekshmanan [Tue, 23 Sep 2014 13:42:47 +0000 (19:12 +0530)]
mailmap: Riccardo Ferretti affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Casey Marshall affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 12:06:07 +0000 (17:36 +0530)]
mailmap: Casey Marshall affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Feng Wang affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 11:51:23 +0000 (17:21 +0530)]
mailmap: Feng Wang affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Scott A. Brandt affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 11:46:12 +0000 (17:16 +0530)]
mailmap: Scott A. Brandt affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Gerben Meijer affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 07:14:05 +0000 (12:44 +0530)]
mailmap: Gerben Meijer affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Gerben Meijer <gerben@daybyday.nl>
10 years agomailmap: John Wilkins name normalization
Abhishek Lekshmanan [Thu, 25 Sep 2014 10:59:26 +0000 (16:29 +0530)]
mailmap: John Wilkins name normalization

Also adding John Wilkins to .peoplemap to track org change

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: John Spray name normalization
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:51:02 +0000 (12:21 +0530)]
mailmap: John Spray name normalization

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Samuel Just name normalization
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:48:17 +0000 (12:18 +0530)]
mailmap: Samuel Just name normalization

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Pavan Rallabhandi name normalization
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:13:26 +0000 (11:43 +0530)]
mailmap: Pavan Rallabhandi name normalization

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Swami Reddy name normalization
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:18:18 +0000 (11:48 +0530)]
mailmap: Swami Reddy name normalization

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Swami Reddy <swamireddy@gmail.com>
10 years agomailmap: Volker Voigt affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:47:09 +0000 (12:17 +0530)]
mailmap: Volker Voigt affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Laurent Guerby affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:46:39 +0000 (12:16 +0530)]
mailmap: Laurent Guerby affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Johnu George affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 10:01:15 +0000 (15:31 +0530)]
mailmap: Johnu George affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Johnu George <johnugeo@cisco.com>
10 years agomailmap: Janne Grunau affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 10:41:09 +0000 (16:11 +0530)]
mailmap: Janne Grunau affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Daniel Schepler affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:44:45 +0000 (12:14 +0530)]
mailmap: Daniel Schepler affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Cheng Cheng affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:44:20 +0000 (12:14 +0530)]
mailmap: Cheng Cheng affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Sahid Ferdjaoui affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:43:21 +0000 (12:13 +0530)]
mailmap: Sahid Ferdjaoui affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
10 years agomailmap: Jiang Heng affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 09:58:39 +0000 (15:28 +0530)]
mailmap: Jiang Heng affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: JuanJose Galvez affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:20:58 +0000 (11:50 +0530)]
mailmap: JuanJose Galvez affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Roman Haritonov affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:19:36 +0000 (11:49 +0530)]
mailmap: Roman Haritonov affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Yongyue Sun affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:17:06 +0000 (11:47 +0530)]
mailmap: Yongyue Sun affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2594 from dachary/wip-9620-test-mon-thrash
Sage Weil [Mon, 29 Sep 2014 15:18:36 +0000 (08:18 -0700)]
Merge pull request #2594 from dachary/wip-9620-test-mon-thrash

qa/workunits/cephtool/test.sh: fix thrash (ultimate)

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2582 from ceph/wip-crush-location
Loic Dachary [Mon, 29 Sep 2014 12:27:23 +0000 (14:27 +0200)]
Merge pull request #2582 from ceph/wip-crush-location

crushtool: add --location <id> command

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoqa/workunits/cephtool/test.sh: fix thrash (ultimate) 2594/head
Loic Dachary [Mon, 29 Sep 2014 11:47:06 +0000 (13:47 +0200)]
qa/workunits/cephtool/test.sh: fix thrash (ultimate)

Keep the osd trash test to ensure it is a valid command but make it a
noop by giving it a zero argument (meaning thrash 0 OSD maps).

Remove the loops that were added after the command in an attempt to wait
for the cluster to recover and not pollute the rest of the tests. Actual
testing of osd thrash would require a dedicated cluster because it the
side effects are random and it is unnecessarily difficult to ensure they
are finished.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2590 from dachary/wip-9592-librados-large-object
Loic Dachary [Mon, 29 Sep 2014 06:38:34 +0000 (08:38 +0200)]
Merge pull request #2590 from dachary/wip-9592-librados-large-object

librados large object early check

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agolibrados: cap the IoCtxImpl::{aio_}*{write,append} buffer length 2590/head
Loic Dachary [Sun, 28 Sep 2014 22:39:50 +0000 (00:39 +0200)]
librados: cap the IoCtxImpl::{aio_}*{write,append} buffer length

If the value of the len parameter is greater than UINT_MAX/2,
IoCtxImpl::aio_write, IoCtxImpl::aio_write_full, IoCtxImpl::aio_append,
IoCtxImpl::write, IoCtxImpl::append will fail with E2BIG.

IoCtxImpl::write_full is the exception because it does not have a
length argument to check.

For more information see 33501d242661a545211df43bf645398b492398ae

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2400 from majianpeng/fix2
Sage Weil [Mon, 29 Sep 2014 00:46:57 +0000 (17:46 -0700)]
Merge pull request #2400 from majianpeng/fix2

osd: Make RPGTransaction::get_bytes_written return the correct size.

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agolibrados: test s/E2BIG/TooBig/
Loic Dachary [Sun, 28 Sep 2014 08:37:21 +0000 (10:37 +0200)]
librados: test s/E2BIG/TooBig/

Because E2BIG does not allow selection

./ceph_test_rados_api_aio --gtest_filter=LibRadosAio.E2BIG
Running main() from gtest_main.cc
Note: Google Test filter = LibRadosAio.E2BIG
[==========] Running 0 tests from 0 test cases.
[==========] 0 tests from 0 test cases ran. (0 ms total)
[  PASSED  ] 0 tests.

probably because it contains a number.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agolibrados: cap the rados_aio_*{write,append} buffer length
Loic Dachary [Sun, 28 Sep 2014 08:26:23 +0000 (10:26 +0200)]
librados: cap the rados_aio_*{write,append} buffer length

If the value of the len parameter is greater than UINT_MAX/2,
rados_aio_write, rados_aio_write_full and rados_aio_append will fail
with E2BIG.

For more information see 33501d242661a545211df43bf645398b492398ae

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoosd: Make RPGTransaction::get_bytes_written return the correct size. 2400/head
Jianpeng Ma [Sun, 28 Sep 2014 07:01:46 +0000 (15:01 +0800)]
osd: Make RPGTransaction::get_bytes_written return the correct size.

It record size larger than clien wrote. It should like
ECTransaction::get_bytes_written only return the size which clien
wrote. It should contain omap data.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agocrushtool: add --show-location <id> command 2582/head
Sage Weil [Sat, 27 Sep 2014 14:51:24 +0000 (07:51 -0700)]
crushtool: add --show-location <id> command

Include some tests.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2584 from dachary/wip-9592-librados-large-object
Sage Weil [Sat, 27 Sep 2014 12:58:28 +0000 (05:58 -0700)]
Merge pull request #2584 from dachary/wip-9592-librados-large-object

librados: cap the rados*{write,append} buffer length

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agolibrados: cap the rados*{write,append} buffer length 2584/head
Loic Dachary [Sat, 27 Sep 2014 08:37:07 +0000 (10:37 +0200)]
librados: cap the rados*{write,append} buffer length

When the caller submits a payload that will end up being rejected with

  rados.Error: Ioctx.write(rbd): failed to write hw: errno EMSGSIZE

it is stored in a bufferlist whose length is an unsigned int. If the
value of the len parameter is greater than UINT_MAX/2, rados_write,
rados_write_full and rados_append will fail with E2BIG.

Multiple calls to rados_write or rados_append can fill objects larger
than UINT_MAX/2.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2580 from cernceph/wip-scientific
Sage Weil [Sat, 27 Sep 2014 00:49:59 +0000 (17:49 -0700)]
Merge pull request #2580 from cernceph/wip-scientific

ceph-disk: add Scientific Linux as a Redhat clone

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoceph-disk: add Scientific Linux as a Redhat clone
Dan van der Ster [Fri, 26 Sep 2014 16:00:22 +0000 (18:00 +0200)]
ceph-disk: add Scientific Linux as a Redhat clone

Scientific Linux is a RHEL clone and needs to use partx.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
(cherry picked from commit 5ca7ea5b531f28b3c87161d53aee907d6957cfc2)

10 years agoMerge pull request #2568 from johnugeorge/wip-9492-crush
Loic Dachary [Fri, 26 Sep 2014 22:25:48 +0000 (00:25 +0200)]
Merge pull request #2568 from johnugeorge/wip-9492-crush

Crush: Ensuring at most num-rep osds are selected for any rule

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoCrush: Ensuring at most num-rep osds are selected 2568/head
Johnu George [Wed, 24 Sep 2014 16:32:50 +0000 (09:32 -0700)]
Crush: Ensuring at most num-rep osds are selected

Crush temporary buffers are allocated as per replica size configured
by the user.When there are more final osds (to be selected as per
rule) than the replicas, buffer overlaps and it causes crash.Now, it
ensures that at most num-rep osds are selected even if more number of
osds are allowed by the rule.

Fixes: #9492
Signed-off-by: Johnu George <johnugeo@cisco.com>
10 years agoceph-disk: add Scientific Linux as a Redhat clone 2580/head
Dan van der Ster [Fri, 26 Sep 2014 16:00:22 +0000 (18:00 +0200)]
ceph-disk: add Scientific Linux as a Redhat clone

Scientific Linux is a RHEL clone and needs to use partx.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
10 years agoMerge pull request #2572 from ceph/wip-9562
John Spray [Fri, 26 Sep 2014 10:57:53 +0000 (11:57 +0100)]
Merge pull request #2572 from ceph/wip-9562

osdc/Filer: drop probe/purge locks before calling objecter

Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Yan, Zheng <ukernel@gmail.com>
10 years agoMerge pull request #2575 from ceph/wip-zafman-cleanup 2566/head
Sage Weil [Fri, 26 Sep 2014 00:02:19 +0000 (17:02 -0700)]
Merge pull request #2575 from ceph/wip-zafman-cleanup

osd: Remove unused PG functions queue_notify(), queue_info(), queue_log(...

Reviewed-by: Loic Dachary <loic@dachary.org>
10 years agoMerge pull request #2524 from ceph/wip-5768
Josh Durgin [Thu, 25 Sep 2014 22:19:43 +0000 (15:19 -0700)]
Merge pull request #2524 from ceph/wip-5768

rbd-fuse: Fix memory leak in enumerate_images

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMerge pull request #2531 from dachary/wip-9536-isa-alignment
Sage Weil [Thu, 25 Sep 2014 21:05:57 +0000 (14:05 -0700)]
Merge pull request #2531 from dachary/wip-9536-isa-alignment

erasure-code: isa plugin alignment fixes

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoosd: improve debug output for do_{notifies,queries,infos}
Sage Weil [Thu, 25 Sep 2014 20:51:46 +0000 (13:51 -0700)]
osd: improve debug output for do_{notifies,queries,infos}

Hunting #9389

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2540 from ceph/wip-giant-messenger-fixes
Sage Weil [Thu, 25 Sep 2014 20:01:38 +0000 (13:01 -0700)]
Merge pull request #2540 from ceph/wip-giant-messenger-fixes

giant messenger fixes

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoosdc/Objecter: only post_rx_buffer if no op timeout 2598/head
Sage Weil [Thu, 25 Sep 2014 19:34:11 +0000 (12:34 -0700)]
osdc/Objecter: only post_rx_buffer if no op timeout

If we post an rx buffer and there is a timeout, the revocation can happen
while the reader has consumed the buffers but before it has decoded and
constructed the message.  In particular, we calculate a crc32c over the
data portion of the message after we've taken the buffers and dropped the
lock.

Instead of fixing this race (for example, by reverifying rx_buffers under
the lock while calculating the crc.. bleh), just skip the rx buffer
optimization entirely when a timeout is present.

Note that this doesn't cover the op_cancel() paths, but none of those users
provide static buffers to read into.

Fixes: #9582
Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2574 from ceph/wip-msgr-shutdown
Sage Weil [Thu, 25 Sep 2014 16:26:18 +0000 (09:26 -0700)]
Merge pull request #2574 from ceph/wip-msgr-shutdown

msg: allow calling dtor immediately after ctor

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoerasure-code: test isa encode/decode with various object sizes 2531/head
Loic Dachary [Mon, 22 Sep 2014 12:16:32 +0000 (14:16 +0200)]
erasure-code: test isa encode/decode with various object sizes

Create an encode_decode() helper method to be called from the
encode_decode test function with various object size arguments. The
helper method is a copy/paste of the previous test that was using a
single object of a fixed size. The test is slightly adapted to
accommodate for different object sizes but the logic is not modified.

The object sizes being tested are chosen to be under the size of the
required size alignment or on multiple pages, size aligned or not.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: add test for isa chunk_size method
Loic Dachary [Mon, 22 Sep 2014 12:14:01 +0000 (14:14 +0200)]
erasure-code: add test for isa chunk_size method

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agomsg: allow calling dtor immediately after ctor 2574/head
John Spray [Thu, 25 Sep 2014 16:01:10 +0000 (17:01 +0100)]
msg: allow calling dtor immediately after ctor

Asserting on reaper_stop only made sense if the
messenger had ever been started: as it stood,
one couldn't create and destroy a messenger
without also starting and stopping it.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoerasure-code: isa encode tests adapted to per chunk alignment
Loic Dachary [Mon, 22 Sep 2014 12:11:07 +0000 (14:11 +0200)]
erasure-code: isa encode tests adapted to per chunk alignment

The encode tests use the alignment constraints. It has been changed to
be aligned on a per chunk basis instead of computing a more expensive
object alignement constraint. The test function is modified to take the
change into account but the logic is otherwise unmodified.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: isa test compare chunks with memcmp instead of strncmp
Loic Dachary [Mon, 22 Sep 2014 12:09:56 +0000 (14:09 +0200)]
erasure-code: isa test compare chunks with memcmp instead of strncmp

Because they may contain null characters.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: run isa tests via libtool and valgrind
Loic Dachary [Mon, 22 Sep 2014 12:08:48 +0000 (14:08 +0200)]
erasure-code: run isa tests via libtool and valgrind

Because running valgrind with no libtool does not test the binary but
the enclosing shell script.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: do not use typed tests for isa
Loic Dachary [Mon, 22 Sep 2014 12:08:07 +0000 (14:08 +0200)]
erasure-code: do not use typed tests for isa

Because there only is one type.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: isa uses per chunk alignment constraints
Loic Dachary [Mon, 22 Sep 2014 12:02:08 +0000 (14:02 +0200)]
erasure-code: isa uses per chunk alignment constraints

Copy code from the jerasure plugin to enforce alignment constraints per
chunk instead of using the total object size. It is simpler and reduces
the size of the chunks. See
https://github.com/ceph/ceph/commit/c7daaaf5e63d0bd1d444385e62611fe276f6ce29
for more information.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoerasure-code: [ISA] modify get_alignment function to imply a platform/compiler indepe...
Andreas Peters [Thu, 25 Sep 2014 14:48:47 +0000 (16:48 +0200)]
erasure-code: [ISA] modify get_alignment function to imply a platform/compiler independent alignment constraint of 32-byte aligned buffer addresses & length

10 years agodoc/release-notes: v0.67.11
Sage Weil [Thu, 25 Sep 2014 14:17:56 +0000 (07:17 -0700)]
doc/release-notes: v0.67.11

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2571 from dachary/wip-9579-isa-documentation
Loic Dachary [Thu, 25 Sep 2014 13:37:54 +0000 (15:37 +0200)]
Merge pull request #2571 from dachary/wip-9579-isa-documentation

documentation: erasure-code plugin isa does not require k/m

Reviewed-by: Andreas Peters <andreas.joachim.peters@cern.ch>
10 years agoosdc/Filer: drop probe/purge locks before calling objecter 2572/head
John Spray [Wed, 24 Sep 2014 13:19:32 +0000 (14:19 +0100)]
osdc/Filer: drop probe/purge locks before calling objecter

Fixes: #9562
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agodocumentation: erasure-code plugin isa does not require k/m 2571/head
Loic Dachary [Thu, 25 Sep 2014 09:56:32 +0000 (11:56 +0200)]
documentation: erasure-code plugin isa does not require k/m

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agomailmap: Yan Zheng affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 06:07:52 +0000 (11:37 +0530)]
mailmap: Yan Zheng affiliation

Also adding Yan Zheng to .peoplemap to track org. change

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Thorsten Glaser affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 05:59:05 +0000 (11:29 +0530)]
mailmap: Thorsten Glaser affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Thorsten Glaser <tg@mirbsd.de>
10 years agoosd: Remove unused PG functions queue_notify(), queue_info(), queue_log() 2575/head
David Zafman [Fri, 19 Sep 2014 22:12:55 +0000 (15:12 -0700)]
osd: Remove unused PG functions queue_notify(), queue_info(), queue_log()

Signed-off-by: David Zafman <dzafman@redhat.com>
10 years agoReplicatedPG: clean out completed trimmed objects as we go 2604/head
Samuel Just [Wed, 24 Sep 2014 20:55:47 +0000 (13:55 -0700)]
ReplicatedPG: clean out completed trimmed objects as we go

Also, explicitely maintain a max number of concurrently trimming
objects.

Fixes: 9113
Backport: dumpling, firefly, giant
Signed-off-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge remote-tracking branch 'origin/giant'
Josh Durgin [Wed, 24 Sep 2014 22:27:02 +0000 (15:27 -0700)]
Merge remote-tracking branch 'origin/giant'

10 years agoMerge pull request #2567 from dachary/wip-6697-strncmp-vs-memcmp
Sage Weil [Wed, 24 Sep 2014 14:30:37 +0000 (07:30 -0700)]
Merge pull request #2567 from dachary/wip-6697-strncmp-vs-memcmp

tests: use memcmp to compare binary buffers

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agotests: use memcmp to compare binary buffers 2567/head
Loic Dachary [Wed, 24 Sep 2014 14:00:08 +0000 (16:00 +0200)]
tests: use memcmp to compare binary buffers

instead of strncmp because it will stop at the first \0

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2506 from dachary/wip-9304-unintended-implicit-ruleset
Loic Dachary [Wed, 24 Sep 2014 11:35:55 +0000 (13:35 +0200)]
Merge pull request #2506 from dachary/wip-9304-unintended-implicit-ruleset

erasure-code: pool create must not always create a ruleset

Reviewed-by: João Eduardo Luís <joao@redhat.com>
10 years agoMerge remote-tracking branch 'origin/giant'
John Spray [Wed, 24 Sep 2014 10:40:52 +0000 (11:40 +0100)]
Merge remote-tracking branch 'origin/giant'

10 years agoPG: check full ratio again post-reservation 2602/head
Samuel Just [Tue, 23 Sep 2014 19:16:55 +0000 (12:16 -0700)]
PG: check full ratio again post-reservation

Otherwise, we might queue 30 pgs for backfill at 0.80 fullness
and then never check again filling the osd after pg 11.

Fixes: #9574
Backport: dumpling, firefly, giant
Signed-off-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #2561 from athanatos/wip-9293
Sage Weil [Tue, 23 Sep 2014 18:40:13 +0000 (11:40 -0700)]
Merge pull request #2561 from athanatos/wip-9293

Wip 9293

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2414 from dachary/wip-cephtool-test
Loic Dachary [Tue, 23 Sep 2014 17:01:35 +0000 (19:01 +0200)]
Merge pull request #2414 from dachary/wip-cephtool-test

tests: make qa/workunits/cephtool/test.sh more robust

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
10 years agoMerge pull request #2417 from dachary/wip-placement-group
John Wilkins [Tue, 23 Sep 2014 16:30:01 +0000 (09:30 -0700)]
Merge pull request #2417 from dachary/wip-placement-group

doc: revise placement group number guide.

Reviewed-by: John Wilkins <jowilkin@redhat.com>
10 years agoMerge pull request #2557 from ceph/wip-mon-fix-checks
Loic Dachary [Tue, 23 Sep 2014 15:59:02 +0000 (17:59 +0200)]
Merge pull request #2557 from ceph/wip-mon-fix-checks

ceph-mon: check fs stats just before preforking

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agodocumentation: revise placement group number guide 2417/head
Loic Dachary [Sun, 7 Sep 2014 19:41:57 +0000 (21:41 +0200)]
documentation: revise placement group number guide

When a cluster has few OSDs (less than 50) propose a preselection of
values: as long as the number of placement groups is not too small nor
too large, it won't make much of a difference anyway.

Users of small clusters tend to blindly apply the (OSD*100)/(pool size)
formula and worry about chosing a wrong value because they do not
understand the tradeoffs. The preselection will hopefully save them from
this uncertainty.

Add an explanation of how placement groups relate to OSDs, CRUSH and
pools to help understand the tradeoffs. Explain the
tradeoffs (durability, distribution and resource usages) with examples.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Reviewed-by: Gerben Meijer <infernix@gmail.com>
Reviewed-by: Laurent Guerby <laurent@guerby.net>
10 years agoceph-mon: check fs stats just before preforking 2557/head
Joao Eduardo Luis [Tue, 23 Sep 2014 13:02:55 +0000 (14:02 +0100)]
ceph-mon: check fs stats just before preforking

Otherwise statfs may fail if mkfs hasn't been run yet or if the monitor
data directory does not exist.  There are checks to account for the mon
data dir not existing and we should wait for them to clear before we go
ahead and check the fs stats.

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agoMerge pull request #2551 from dachary/wip-9343-erasure-code-feature
Loic Dachary [Tue, 23 Sep 2014 11:37:27 +0000 (13:37 +0200)]
Merge pull request #2551 from dachary/wip-9343-erasure-code-feature

erasure code feature

Reviewed-by: João Eduardo Luís <joao@redhat.com>
10 years agoerasure-code: isa/lrc plugin feature 2551/head
Loic Dachary [Thu, 4 Sep 2014 15:37:45 +0000 (17:37 +0200)]
erasure-code: isa/lrc plugin feature

There are two new plugins (isa and lrc). When upgrading a cluster, there
must be a protection against the following scenario:

  * the mon are upgraded but not the osd
  * a new pool is created using plugin isa
  * the osd fail to load the isa plugin because they have not been
    upgraded

A feature bit is added : PLUGINS_V2. The monitor will only agree to
create an erasure code profile for the isa or lrc plugin if all OSDs
supports PLUGINS_V2. Once such an erasure code profile is stored in the
OSDMap, an OSD can only boot if it supports the PLUGINS_V2 feature,
which means it is able to load the isa and lrc plugins.

The monitors will only activate the PLUGINS_V2 feature if all monitors
in the quorum support it. It protects against the following scenario:

  * the leader is upgraded the peons are not upgraded
  * the leader creates a pool with plugin=lrc because all OSD have
    the PLUGINS_V2 feature
  * the leader goes down and a non upgraded peon becomes the leader
  * an old OSD tries to join the cluster
  * the new leader will let the OSD boot because it does not contain
    the logic that would excluded it
  * the old OSD will fail when required to load the plugin lrc

This is going to be needed each time new plugins are added, which is
impractical. A more generic plugin upgrade support should be added
instead, as described in http://tracker.ceph.com/issues/7291.

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

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agomailmap: William A. Kennington III affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 05:54:30 +0000 (11:24 +0530)]
mailmap: William A. Kennington III affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agomailmap: Jason Dillaman affiliation
Abhishek Lekshmanan [Tue, 23 Sep 2014 05:51:45 +0000 (11:21 +0530)]
mailmap: Jason Dillaman affiliation

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
10 years agoMerge pull request #2538 from ceph/wip-mon-data-space-die
Sage Weil [Tue, 23 Sep 2014 02:16:18 +0000 (19:16 -0700)]
Merge pull request #2538 from ceph/wip-mon-data-space-die

mon: die if 'mon data' fs has critically low available disk space & fix logging issues

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agomon: Monitor: log RO commands on 'debug' level, RWX on 'info' 2538/head
Joao Eduardo Luis [Fri, 19 Sep 2014 17:04:37 +0000 (18:04 +0100)]
mon: Monitor: log RO commands on 'debug' level, RWX on 'info'

Fixes: #9455
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agomon: Monitor: use MonCommand::requires_perm() when checking perms
Joao Eduardo Luis [Fri, 19 Sep 2014 17:04:03 +0000 (18:04 +0100)]
mon: Monitor: use MonCommand::requires_perm() when checking perms

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agomon: Monitor.h: add 'requires_perm()' function to MonCommand struct
Joao Eduardo Luis [Fri, 19 Sep 2014 17:03:19 +0000 (18:03 +0100)]
mon: Monitor.h: add 'requires_perm()' function to MonCommand struct

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agomon: Monitor: log RO admin socket commands on 'debug' level
Joao Eduardo Luis [Fri, 19 Sep 2014 16:32:51 +0000 (17:32 +0100)]
mon: Monitor: log RO admin socket commands on 'debug' level

Reduces the noise caused by read-only operations via the admin socket.
RW commands are still logged at 'info' level.

Fixes: #9455
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agomon: LogMonitor: adjust debug messages output levels
Joao Eduardo Luis [Fri, 19 Sep 2014 16:32:07 +0000 (17:32 +0100)]
mon: LogMonitor: adjust debug messages output levels

Reduce the noise.

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agomon: LogMonitor: add debug message upon logging to a channel's file
Joao Eduardo Luis [Fri, 19 Sep 2014 16:30:59 +0000 (17:30 +0100)]
mon: LogMonitor: add debug message upon logging to a channel's file

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agomon: LogMonitor: appropriately expand channel meta variables
Joao Eduardo Luis [Fri, 19 Sep 2014 16:24:49 +0000 (17:24 +0100)]
mon: LogMonitor: appropriately expand channel meta variables

We must only expand the log file's channel meta variables upon requiring
a channel's log file.  As we may have a 'default' channel that will
cover all channels, we must wait to expand channels as they come in and
do so if they haven't yet been expanded.  Expanding the 'log_file' in
place would have the unfortunate side effect of expanding, say,

default=/tmp/whatever.$channel.log

to

default=/tmp/whatever.default.log

which would not be what we wanted upon receiving a message that should
go into channel 'foo' -- assuming we specified no such channel in the
options, channel 'foo' should go into '/tmp/whatever.foo.log'.

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
10 years agocommon: LogEntry: if channel is missing, default to "cluster"
Joao Eduardo Luis [Fri, 19 Sep 2014 16:16:49 +0000 (17:16 +0100)]
common: LogEntry: if channel is missing, default to "cluster"

Keeps backward compatibility when there are entities that do not know
what a channel is.  This way we ensure that those messages are logged as
they were expected to be before channels were introduced: to the cluster
log.

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>