]>
git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/log
Danny Al-Gaaf [Fri, 14 Nov 2014 22:16:54 +0000 (23:16 +0100)]
FileJournal.cc: fix _open() to return negative value in error case
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 13 Nov 2014 19:14:32 +0000 (20:14 +0100)]
os/FileJournal.cc: fix potential use after close cases
Fix checks after _open() calls to make sure to use the
filehandle only if open returns '0'.
Fix for:
CID
1128395 (#1 of 1): Use after close (USE_AFTER_FREE)
pass_closed_arg: Passing closed handle this->fd as an argument
to pwrite.
CID
1128396 (#1 of 2): Use after close (USE_AFTER_FREE)
pass_closed_arg: Passing closed handle this->fd as an argument
to read_header.
CID
1128397 (#1 of 1): Use after close (USE_AFTER_FREE)
pass_closed_arg: Passing closed handle this->fd as an argument
to read_header.
CID
1128398 (#1 of 1): Use after close (USE_AFTER_FREE)
pass_closed_arg: Passing closed handle this->fd as an argument
to read_header.
CID
1128400 (#1 of 1): Use after close (USE_AFTER_FREE)
pass_closed_arg: Passing closed handle this->fd as an argument
to read_header.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 13 Nov 2014 16:29:12 +0000 (17:29 +0100)]
c_read_operations.cc: prevent potential null pointer deref
CID
1251575 (#1 of 1): Dereference after null check (FORWARD_NULL)
var_deref_model: Passing null pointer key to basic_string, which
dereferences it.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 13 Nov 2014 13:57:23 +0000 (14:57 +0100)]
tools/psim.cc: catch ceph::buffer::end_of_buffer exception
Fix for:
CID 717163 (#1 of 1): Uncaught exception (UNCAUGHT_EXCEPT)
root_function: In function main(int, char **) an exception of type
ceph::buffer::end_of_buffer is thrown and never caught.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 13 Nov 2014 13:47:49 +0000 (14:47 +0100)]
librados-config.cc: catch ceph::FailedAssertion exception
CID 717157 (#1-2): Uncaught exception (UNCAUGHT_EXCEPT)
root_function: In function main(int, char const **) an exception
of type ceph::FailedAssertion is thrown and never caught.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 12 Nov 2014 16:46:43 +0000 (17:46 +0100)]
ceph_authtool.cc: catch ceph::FailedAssertion exception
Fix for:
CID 717141 (#1-19): Uncaught exception (UNCAUGHT_EXCEPT)
root_function: In function main(int, char const **) an exception
of type ceph::FailedAssertion is thrown and never caught.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 12 Nov 2014 15:11:49 +0000 (16:11 +0100)]
ceph_authtool.cc: catch ceph::buffer::end_of_buffer exception
Fix for:
CID 717142 (#1 of 1): Uncaught exception (UNCAUGHT_EXCEPT)
root_function: In function main(int, char const **) an exception
of type ceph::buffer::end_of_buffer is thrown and never caught.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 12 Nov 2014 14:11:02 +0000 (15:11 +0100)]
MDSMonitor.cc: remove cmd_getval for poolid
Remove useless check for invalid parameter for
"mds remove_data_pool", we have already the poolid
from the correct parameter 'poolname'.
Fix for:
CID
1251445 (#1 of 1): Unchecked return value (CHECKED_RETURN)
check_return: Calling cmd_getval without checking return value
(is done elsewhere 19 out of 22 times).
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 12 Nov 2014 11:00:32 +0000 (12:00 +0100)]
st_rados_list_objects.cc: free resources in error case
Fix for:
CID
1251453 (#2 of 2): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable io_ctx going out of scope leaks the
storage it points to.
CID
1251454 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable h going out of scope leaks the storage it
points to.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 12 Nov 2014 10:51:29 +0000 (11:51 +0100)]
net_handler.cc: close another socket leak
Close socket if ::setsockopt() fails before return.
Fix for:
CID
1249632 (#1 of 1): Resource leak (RESOURCE_LEAK)
9. leaked_handle: Handle variable s going out of scope leaks the handle.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 12 Nov 2014 10:35:57 +0000 (11:35 +0100)]
net_handler.cc: close socket leak
Close socket if set_nonblock() fails before return.
Fix for:
CID
1249633 (#1 of 1): Resource leak (RESOURCE_LEAK)
7. leaked_handle: Handle variable s going out of scope leaks the handle.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 11 Nov 2014 14:55:18 +0000 (15:55 +0100)]
ceph_erasure_code_benchmark.cc: don't check unsigned for < 0
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 11 Nov 2014 14:52:44 +0000 (15:52 +0100)]
ceph_erasure_code_non_regression.cc: prefer ++op for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 11 Nov 2014 14:52:02 +0000 (15:52 +0100)]
ceph_erasure_code_benchmark.cc: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 11 Nov 2014 14:50:52 +0000 (15:50 +0100)]
crush/CrushWrapper.cc: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 11 Nov 2014 14:46:07 +0000 (15:46 +0100)]
rgw/rgw_gc.cc: silence cppcheck
Silence cppcheck warning about std::remove, clarify the
used remove() function from RGWGC.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Josh Durgin [Wed, 12 Nov 2014 02:13:04 +0000 (03:13 +0100)]
Merge pull request #2898 from ceph/wip-rbd-python-tests
librbd: Python unit tests now use unique pools and images
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Wed, 12 Nov 2014 02:05:28 +0000 (03:05 +0100)]
Merge pull request #2820 from ceph/wip-9854
osdc: Constrain max number of in-flight read requests
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Loic Dachary [Wed, 12 Nov 2014 00:52:44 +0000 (01:52 +0100)]
Merge pull request #2890 from zhouyuan/fix_mailmap
Fix Yuan's mailmap
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Yuan Zhou [Mon, 10 Nov 2014 01:47:29 +0000 (09:47 +0800)]
Fix Yuan's mailmap
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
Sage Weil [Wed, 12 Nov 2014 00:15:08 +0000 (16:15 -0800)]
doc/release-notes: v0.88
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 11 Nov 2014 23:28:20 +0000 (15:28 -0800)]
Merge pull request #2897 from ceph/wip-da-revert-10b68b
Revert "osd: detect (some) misordered ondisk tmaps"
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Danny Al-Gaaf [Tue, 11 Nov 2014 18:06:12 +0000 (19:06 +0100)]
Revert "osd: detect (some) misordered ondisk tmaps"
This reverts commit
10b68b2e1a1479c478843fab8232537675053c9b .
The check for 'nextkey < last_disk_key' makes not much sense since
last_disk_key is an empty string and not set before. Comparing a
decoded string to be less than an empty string will be never true.
Since this if() isn't part of a loop last_disk_key is only set
once and there is no other consumer: revert this dead code.
Conflicts:
src/osd/ReplicatedPG.cc
Josh Durgin [Tue, 11 Nov 2014 17:18:43 +0000 (18:18 +0100)]
Merge pull request #2562 from ceph/wip-5595
Wip 5595
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Sage Weil [Tue, 11 Nov 2014 15:52:39 +0000 (07:52 -0800)]
doc/rados/configuration fix 'ods mkfs options' default
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 11 Nov 2014 15:50:44 +0000 (07:50 -0800)]
Merge pull request #2466 from nereocystis/osd-filesystem-options
doc: Add file system osd config settings
Sage Weil [Tue, 11 Nov 2014 15:48:12 +0000 (07:48 -0800)]
Merge pull request #2883 from ceph/wip-da-SCA-
20141028
Fixes for coverity and SCA issues
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 11 Nov 2014 15:11:55 +0000 (07:11 -0800)]
Merge pull request #2889 from xuechendi/move_buffers_to_BufferTransaction
KeyValueStore: move buffers from strip_header to BufferTransaction
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
Sage Weil [Tue, 11 Nov 2014 15:09:55 +0000 (07:09 -0800)]
Merge pull request #2739 from majianpeng/fix2
buffer: Judge bufferlist whether need rebuild
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Yan, Zheng [Tue, 11 Nov 2014 14:52:52 +0000 (22:52 +0800)]
Merge pull request #2894 from ceph/wip-scrub-coverity
Wip scrub coverity
Danny Al-Gaaf [Fri, 7 Nov 2014 20:44:29 +0000 (21:44 +0100)]
AuthSessionHandler.h: init protocol in constructor
Init protocol in AuthSessionHandler constructor with
with CEPH_AUTH_UNKNOWN.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Fri, 7 Nov 2014 15:52:04 +0000 (16:52 +0100)]
src/librbd/librbd.cc: fix potential null pointer deref
Fix potential deref after null check. Move check for max_snaps in
rbd_snap_list up to fail early before call any functions.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 30 Oct 2014 04:16:34 +0000 (05:16 +0100)]
osd/ReplicatedPG.cc: remove redundant check
Fix for:
[src/osd/ReplicatedPG.cc:2171]: (style) Redundant checking of STL
container element existence before removing it.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 30 Oct 2014 02:57:16 +0000 (03:57 +0100)]
test/librados/c_read_operations.cc: fix invalid checks
Wrong variable for return of rados_getxattrs_next() and
rados_omap_get_next() used (len vs. val_len).
Fix for:
CID
1219464 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this expression
key == NULL inside statement if (len == 0UL && key == NU...
CID
1219465 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this expression
key == NULL inside statement if (len == 0UL && key == NU...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 30 Oct 2014 02:44:30 +0000 (03:44 +0100)]
rgw_rados.cc: remove dead code
Fix for:
CID
1128391 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement goto done_err;
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 30 Oct 2014 02:14:41 +0000 (03:14 +0100)]
rados_sync.cc: fix xattr_diff() for the only_in_b checks
In the checks to build only_in_b up the wrong const_iterator x is
build up. it should compare rhs->xattrs with xattrs entries and
not twice rhs->xattrs.
Fix for:
CID 716957 (#1 of 1): Invalid iterator comparison (MISMATCHED_ITERATOR)
mismatched_comparison: Comparing x from rhs->xattrs to this->xattrs.end()
from this->xattrs.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 28 Oct 2014 19:06:25 +0000 (20:06 +0100)]
bench_log.cc: catch ceph::FailedAssertion exception
Fix for:
CID 717177 (#2-1 of 3): Uncaught exception (UNCAUGHT_EXCEPT)
root_function: In function main(int, char const **) an exception of
type ceph::FailedAssertion is thrown and never caught.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 28 Oct 2014 19:05:19 +0000 (20:05 +0100)]
osd/PGLog.cc: prefer empty() over size() for emptiness check
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Jason Dillaman [Tue, 11 Nov 2014 07:17:28 +0000 (02:17 -0500)]
librbd: Python unit tests now use unique pools and images
RBD python unit tests no longer utilize the 'rbd' pool for
test cases. Instead, a new temporary pool is created and
deleted. Additionally, each unit test now uses a unique
image name to reduce the possibility of test case failures
affecting subsequent tests.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Josh Durgin [Tue, 11 Nov 2014 06:42:39 +0000 (07:42 +0100)]
Merge pull request #2873 from ceph/wip-rbd-test-fixtures
librbd: Refactor librbd unit tests to use test fixtures
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Jianpeng Ma [Tue, 21 Oct 2014 06:30:17 +0000 (14:30 +0800)]
bufferlist: Don't call rebuild(), c_strt() call it if bufferlist not contiguous.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Jason Dillaman [Mon, 27 Oct 2014 18:47:19 +0000 (14:47 -0400)]
osdc: Constrain max number of in-flight read requests
Constrain the number of in-flight RADOS read requests to the
cache size. This reduces the chance of the cache memory
ballooning during certain scenarios like copy-up which can
invoke many concurrent read requests.
Fixes: #9854
Backport: giant, firefly, dumpling
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Sage Weil [Tue, 11 Nov 2014 02:11:18 +0000 (18:11 -0800)]
Merge pull request #2893 from ceph/wip-10045
common/Readahead: use correct lock when waiting on the pending ops
Reviewed-by: Sage Weil <sage@redhat.com>
Jason Dillaman [Mon, 10 Nov 2014 21:08:05 +0000 (16:08 -0500)]
common/Readahead: use correct lock when waiting on the pending ops
Readahead was using the incorrect lock with the pending condition,
resulting in a failed assertion. It now uses the lock associated
with pending ops.
Fixes: #10045
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Greg Farnum [Tue, 11 Nov 2014 00:52:48 +0000 (16:52 -0800)]
mds: remove dead code from inode_t::compare()
CID
1251354
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
Greg Farnum [Tue, 11 Nov 2014 00:47:35 +0000 (16:47 -0800)]
mds: CInode: catch exception by reference, not value
CID
1251353
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
Sage Weil [Tue, 11 Nov 2014 00:44:26 +0000 (16:44 -0800)]
Merge pull request #2380 from osynge/wip-suse-systemd-integration
systemd support in ceph-disk activate
Reviewed-by: Sage Weil <sage@redhat.com>
Yehuda Sadeh [Tue, 11 Nov 2014 00:35:02 +0000 (16:35 -0800)]
Merge pull request #2446 from xylv/wip-9359
rgw: Export user stats in get-user-info Adminops API
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 11 Nov 2014 00:29:21 +0000 (16:29 -0800)]
Merge pull request #2725 from CzBiX/rgw-modified-since
rgw: correct "If-Modified-Since" handle.
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Sage Weil [Tue, 11 Nov 2014 00:21:08 +0000 (16:21 -0800)]
Merge pull request #2782 from boydc2014/master
rgw: fix can not disable max_size quota
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Sage Weil [Tue, 11 Nov 2014 00:14:10 +0000 (16:14 -0800)]
Merge pull request #2624 from ceph/wip-8911
rgw: swift GET / HEAD object returns X-Timestamp field
Reviewed-by: Sage Weil <sage@redhat.com>
Samuel Just [Mon, 10 Nov 2014 23:00:26 +0000 (15:00 -0800)]
Merge pull request #2851 from ceph/wip-9986
objecter: fix map skipping
Reviewed-by: Sage Weil <sage@redhat.com>
Samuel Just [Mon, 10 Nov 2014 22:58:56 +0000 (14:58 -0800)]
Merge pull request #2667 from yuandong1222/avoid-unused-pg_to_acting_osds-call
Avoid unused pg_to_acting_osds call in OSDMap::get_primary_shard
Reviewed-by: Samuel Just <sjust@redhat.com>
Samuel Just [Mon, 10 Nov 2014 22:57:42 +0000 (14:57 -0800)]
Merge pull request #2474 from dachary/wip-9420-erasure-code-non-regression
erasure-code: store and compare encoded contents
Reviewed-by: Samuel Just <sjust@redhat.com>
Samuel Just [Mon, 10 Nov 2014 22:56:30 +0000 (14:56 -0800)]
Merge pull request #2456 from ceph/wip-9031-9262
Wip 9031 9262
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
Samuel Just [Mon, 10 Nov 2014 22:55:04 +0000 (14:55 -0800)]
Merge pull request #2553 from ceph/wip-aio-journal
osd: clean up journal aio+dio header issue
Reviewed-by: Samuel Just <sjust@redhat.com>
Samuel Just [Mon, 10 Nov 2014 22:53:56 +0000 (14:53 -0800)]
Merge pull request #2745 from ceph/wip-6756
JounralingObjectStore: journal->committed_thru after replay
Samuel Just [Mon, 10 Nov 2014 22:52:10 +0000 (14:52 -0800)]
Merge pull request #2773 from ceph/wip-9852
mon: MDSMonitor: proper error output if pool DNE on 'add_data_pool'
Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
Samuel Just [Mon, 10 Nov 2014 22:51:15 +0000 (14:51 -0800)]
Merge pull request #2822 from ceph/wip-9887
Wip 9887
Reviewed-by: Samuel Just <sjust@redhat.com>
Samuel Just [Mon, 10 Nov 2014 22:49:51 +0000 (14:49 -0800)]
Merge pull request #2850 from ceph/wip-9987
mon: fix min_last_epoch_started tracking
Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
Samuel Just [Mon, 10 Nov 2014 22:47:15 +0000 (14:47 -0800)]
Merge pull request #2862 from ceph/wip-log-client
osd, mds: fix cluster log
Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
Sage Weil [Mon, 10 Nov 2014 17:02:28 +0000 (09:02 -0800)]
Merge pull request #2689 from zhurongze/fix-crush
crush: fix incorrect use of adjust_item_weight method
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 10 Nov 2014 16:41:58 +0000 (08:41 -0800)]
Merge pull request #2881 from ceph/wip-10030
librbd: don't close an already closed parent image upon failure
Reviewed-by: Sage Weil <sage@redhat.com>
Rongze Zhu [Fri, 10 Oct 2014 11:18:00 +0000 (19:18 +0800)]
crush: fix incorrect use of adjust_item_weight method
adjust_item_weight method will adjust all buckets which the item
inside. If the osd.0 in host=fake01 and host=fake02, we execute
"ceph osd crush osd.0 10 host=fake01", it not only will adjust fake01's
weight, but also will adjust fake02's weight.
the patch add adjust_item_weightf_in_loc method and fix remove_item,
_remove_item_under, update_item, insert_item, detach_bucket methods.
Signed-off-by: Rongze Zhu <zrzhit@gmail.com>
Loic Dachary [Thu, 25 Sep 2014 12:46:07 +0000 (14:46 +0200)]
erasure-code: erasure_code_benchmark exhaustive erasure exploration
Add the --erasure-generation exhaustive flag to try all combinations of
erasures, not just one at random.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Mon, 29 Sep 2014 09:17:13 +0000 (11:17 +0200)]
erasure-code: add erasure_code_benchmark --verbose
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Tue, 23 Sep 2014 12:37:57 +0000 (14:37 +0200)]
erasure_code: implement ceph_erasure_code to assert the existence of a plugin
This is handy when scripting in the context of teuthology and only
conditionally run tests for the isa plugin, for instance.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Tue, 23 Sep 2014 12:36:08 +0000 (14:36 +0200)]
erasure-code: ceph_erasure_code does not need to avoid dlclose
The only reason for not dlclosing plugins at exit is for callgrind but
ceph_erasure_code has no workload that would require callgrind.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Tue, 23 Sep 2014 09:38:09 +0000 (11:38 +0200)]
erasure-code: add corpus verification to make check
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Sat, 13 Sep 2014 10:58:27 +0000 (12:58 +0200)]
erasure-code: Makefile.am cosmetics
Cluster benchmark related lines together.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Sat, 13 Sep 2014 10:55:26 +0000 (12:55 +0200)]
erasure-code: s/alignement/alignment/ typos in jerasure
The jerasure-per-chunk-alignment prameter was mispelled and while
useable that would lead to confusion.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Sat, 13 Sep 2014 11:36:09 +0000 (13:36 +0200)]
erasure-code: workunit to check for encoding regression
Clone the archive of encoded objects and decode all archived objects, up
to and including the current ceph version.
http://tracker.ceph.com/issues/9420 Refs: #9420
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Sat, 13 Sep 2014 08:16:31 +0000 (10:16 +0200)]
erasure-code: store and compare encoded contents
Introduce ceph_erasure_code_non_regression to check and compare how an
erasure code plugin encodes and decodes content with a given set of
parameters. For instance:
./ceph_erasure_code_non_regression \
--plugin jerasure \
--parameter technique=reed_sol_van \
--parameter k=2 \
--parameter m=2 \
--stripe-width 3181 \
--create \
--check
Will create an encoded object (--create) and store it into a directory
along with the chunks, one chunk per file. The directory name is derived
from the parameters. The content of the object is a random pattern of 31
bytes repeated to fill the object size specified with --stripe-width.
The check function (--check) reads the object back from the file,
encodes it and compares the result with the content of the chunks read
from the files. It also attempts recover from one or two erasures.
Chunks encoded by a given version of Ceph are expected to be encoded
exactly in the same way by all Ceph versions going forward.
http://tracker.ceph.com/issues/9420 Refs: #9420
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Mon, 10 Nov 2014 13:51:15 +0000 (14:51 +0100)]
Merge pull request #2888 from dachary/wip-9970-erasure-code-documentation
erasure-code: document pool operations
Reviewed-by: Laurent Guerby <laurent@guerby.net>
Loic Dachary [Sun, 9 Nov 2014 02:23:06 +0000 (03:23 +0100)]
erasure-code: document pool operations
A short introduction to the first time user of an erasure coded pool.
It includes a reminder of how it relates to cache tiering and links to
define new profiles with an example.
There was examples in the developer documentation but the operator
expects to find such a guide in the rados operations chapter.
http://tracker.ceph.com/issues/9970 Fixes: #9970
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Loic Dachary [Mon, 10 Nov 2014 10:58:27 +0000 (11:58 +0100)]
Merge pull request #2750 from dachary/wip-9815-make-check-parallel
parallelize make check
Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
Chendi.Xue [Sun, 9 Nov 2014 07:43:14 +0000 (15:43 +0800)]
KeyValueStore: move buffers from strip_header to BufferTransaction
Signed-off-by: Chendi.Xue <chendi.xue@intel.com>
Loic Dachary [Wed, 22 Oct 2014 03:05:45 +0000 (20:05 -0700)]
tests: use kill -0 to check process existence
When killing a daemon, instead of using kill -9 to check the process was
terminated, use kill -0. Should the pid of the process be reused
immediately after, it would be wrong to kill the new process. Worst case
scenario the kill_daemon function returns before the process is
confirmed to be killed but this is not treated as an error and is
unlikely to cause any problem.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Sun, 19 Oct 2014 15:59:17 +0000 (08:59 -0700)]
tests: looping to wait for an osd to be up is expected
Remove the reference to a bug that suggests otherwise.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Sun, 19 Oct 2014 04:16:44 +0000 (21:16 -0700)]
tests: increase timeout to accommodate slow machines
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Sun, 19 Oct 2014 00:15:41 +0000 (17:15 -0700)]
tests: kill_daemon use $name.pid instead of pidfile
So that it can be used instead of stop.sh to stop vstart.sh daemons. The
problem with stop.sh is that it kills any daemon, not just a selection.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Sat, 18 Oct 2014 22:51:41 +0000 (15:51 -0700)]
tests: group workunits/cephtool/test.sh tests per daemon
So all tests related to a given daemon (mon, osd, mds) can be run at
once.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Sat, 18 Oct 2014 22:43:51 +0000 (15:43 -0700)]
tests: run workunits/cephtool/test.sh
Three scripts are added to run qa/workunits/cephtool/test.sh for each
daemon (mon, mds, osd) so they can be run in parallel.
http://tracker.ceph.com/issues/9815 Fixes: #9815
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Sat, 18 Oct 2014 22:41:40 +0000 (15:41 -0700)]
tests: remove vstart_wrapped_tests.sh
Listing tests to be run in a single script does not take advantage of
parallel runs in make.
The vstart_wrapper.sh script is reworked and made less specialized and
let the caller decide which daemons to run via CEPH_START and does not
enforce the number of deamons of each time. It no longer uses stop.sh to
avoid killing the osd/mon/mds that are unrelated to the tests.
http://tracker.ceph.com/issues/9815 Fixes: #9815
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Sat, 18 Oct 2014 20:15:41 +0000 (13:15 -0700)]
tests: use different ports for each mon
Run the mon on each test on a different port so they can run in
parallel.
http://tracker.ceph.com/issues/9815 Fixes: #9815
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Sat, 18 Oct 2014 20:10:14 +0000 (13:10 -0700)]
tests: tolerate a disk 99% full
The tests do not need much space and will work fine even on a 99% full
disk.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Sage Weil [Sun, 9 Nov 2014 05:05:40 +0000 (21:05 -0800)]
Merge pull request #2869 from fgimenez/fix-tests-on-btrfs
Fix tests on btrfs: leftover subvolumes removed
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Loic Dachary [Sat, 8 Nov 2014 15:03:45 +0000 (16:03 +0100)]
Merge pull request #2860 from XinzeChi/master
osd: cache pool: delete dead code in ReplicatedPG::agent_choose_mode
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Greg Farnum [Sat, 8 Nov 2014 00:20:57 +0000 (16:20 -0800)]
test: use unsigned ints to compare against size()
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
Gregory Farnum [Sat, 8 Nov 2014 00:16:02 +0000 (16:16 -0800)]
Merge pull request #2814 from ceph/wip-inode-scrub
Wip inode scrub
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
Loic Dachary [Fri, 7 Nov 2014 22:56:15 +0000 (23:56 +0100)]
Merge pull request #2884 from dachary/wip-mailmap
mailmap: Loic Dachary affiliation
Loic Dachary [Fri, 7 Nov 2014 22:54:07 +0000 (23:54 +0100)]
mailmap: Loic Dachary affiliation
Signed-off-by: Loic Dachary <ldachary@redhat.com>
tmuthamizhan [Fri, 7 Nov 2014 22:09:02 +0000 (14:09 -0800)]
Merge pull request #2882 from ceph/wip-doc-dumpling-to-firefly
doc: Added Dumpling to Firefly upgrade section.
John Wilkins [Fri, 7 Nov 2014 21:16:45 +0000 (13:16 -0800)]
doc: Added Dumpling to Firefly upgrade section.
Fixes: #7679
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Greg Farnum [Fri, 7 Nov 2014 21:15:58 +0000 (13:15 -0800)]
Merge remote-tracking branch 'origin/master' into wip-inode-scrub
Conflicts:
src/common/Makefile.am
src/mds/Server.cc
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
Greg Farnum [Thu, 6 Nov 2014 19:10:29 +0000 (11:10 -0800)]
MDS: clean up internal MDRequests the standard way
All cleanup is now routed through respond_to_request(),
which invokes the internal_op_finish Context*, then does
mdcache->request_finish(). This is easier to reason about,
and indeed fixes a bug (I was not cleaning up locks
following flush). Use the MDSContinuation to facilitate
this in scrub's case.
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
Greg Farnum [Fri, 24 Oct 2014 23:38:24 +0000 (16:38 -0700)]
MDS: CInode: break out of validation early on symlinks
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
Greg Farnum [Thu, 2 Oct 2014 22:21:31 +0000 (15:21 -0700)]
common/ceph_strings: add some MDS internal op names to ceph_mds_op_name()
In addition to my validate and flush, this is also missing exportdir.
Signed-off-by: Greg Farnum <greg@inktank.com>
Greg Farnum [Tue, 9 Sep 2014 21:55:42 +0000 (14:55 -0700)]
MDS: add a flush_dentry() function, and wire it up to the admin socket
Signed-off-by: Greg Farnum <greg@inktank.com>
Greg Farnum [Fri, 11 Jul 2014 21:20:05 +0000 (14:20 -0700)]
MDS: CInode: create a flush() function
Signed-off-by: Greg Farnum <greg@inktank.com>