]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Sage Weil [Mon, 30 Jun 2014 23:38:10 +0000 (16:38 -0700)]
qa/workunits/cephtool/test.sh: sudo ceph daemon
Signed-off-by: Sage Weil <sage@inktank.com>
Josh Durgin [Mon, 30 Jun 2014 20:02:17 +0000 (13:02 -0700)]
Merge pull request #2048 from ceph/wip-8699
rgw: fix uninit ofs in RGWObjManifect::obj_iterator
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Sage Weil [Mon, 30 Jun 2014 19:55:45 +0000 (12:55 -0700)]
rgw: fix uninit ofs in RGWObjManifect::obj_iterator
Valgrind picked this up:
<kind>UninitCondition</kind>
<what>Conditional jump or move depends on uninitialised value(s)</what>
<stack>
<frame>
<ip>0x5145B8</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWObjManifest::obj_iterator::seek(unsigned long)</fn>
<dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/
ceph-0.82-354-g62027ec /src/rgw</dir>
<file>rgw_rados.cc</file>
<line>562</line>
</frame>
<frame>
<ip>0x5672A4</ip>
<obj>/usr/bin/radosgw</obj>
<fn>list_multipart_parts(RGWRados*, req_state*, std::string const&, std::string&, int, int, std::map<unsigned int, RGWUploadPartInfo, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, RGWUploadPartInfo> > >&, int*, bool*, bool)</fn>
<dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/
ceph-0.82-354-g62027ec /src/rgw</dir>
<file>rgw_rados.h</file>
<line>217</line>
</frame>
<frame>
<ip>0x5688EE</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWListMultipart::execute()</fn>
<dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/
ceph-0.82-354-g62027ec /src/rgw</dir>
<file>rgw_op.cc</file>
<line>2956</line>
</frame>
...
Fixes: #8699
Backport: firefly
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Mon, 30 Jun 2014 19:35:46 +0000 (12:35 -0700)]
Merge pull request #2045 from ceph/wip-8542
qa/workunits/suites/fsx.sh: don't use zero range
Reviewed-by: Greg Farnum <greg@inktank.com>
Sage Weil [Mon, 30 Jun 2014 14:05:04 +0000 (07:05 -0700)]
qa/workunits/suites/fsx.sh: don't use zero range
Zero range is not supported by cephfs.
Fixes: #8542
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Fri, 27 Jun 2014 19:55:44 +0000 (12:55 -0700)]
Merge branch 'next'
Yehuda Sadeh [Mon, 16 Jun 2014 18:48:24 +0000 (11:48 -0700)]
rgw: allocate enough space for bucket instance id
Fixes: #8608
Backport: dumpling, firefly
Bucket instance id is a concatenation of zone name, rados instance id,
and a running counter. We need to allocate enough space to account zone
name length.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Sage Weil [Thu, 26 Jun 2014 19:43:08 +0000 (12:43 -0700)]
Merge pull request #2035 from ceph/wip-da-SCA-
20140623
Fix for SCA and CID issues
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 26 Jun 2014 18:37:15 +0000 (11:37 -0700)]
Revert "ceph-disk: Enable creating multiple osds per dev"
This reverts commit
200d0ae9c6e6701c06310230e180d4e739865bfe .
This breaks ceph-disk. See #8644. Reverting for now.
Signed-off-by: Sage Weil <sage@redhat.com>
Greg Farnum [Thu, 26 Jun 2014 17:35:00 +0000 (10:35 -0700)]
test: use (unsigned)0 with gtest to avoid spurious warnings
Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Samuel Just [Thu, 26 Jun 2014 18:05:49 +0000 (11:05 -0700)]
Merge pull request #2034 from ceph/wip-osd-ints
osd: fix int -> int32_t in misc encoded structures
Reviewed-by: Samuel Just <sam.just@inktank.com>
Danny Al-Gaaf [Thu, 26 Jun 2014 16:51:19 +0000 (18:51 +0200)]
scratchtool.c: cleanup do_rados_getxattrs()
Cleanup error path to reduce code duplication.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Sage Weil [Thu, 26 Jun 2014 16:13:47 +0000 (09:13 -0700)]
osd: fix pg_stat_t int -> int32_t
Still 4 bytes on i386 and x86_64.
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Thu, 26 Jun 2014 16:13:30 +0000 (09:13 -0700)]
osd: fix pg_shard_t int -> int32_t
Still 4 bytes on i386 and x86_64.
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Thu, 26 Jun 2014 16:11:53 +0000 (09:11 -0700)]
osd: fix pg_interval_t int -> int32_t
Still 4 bytes on i386 and x86_64.
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Thu, 26 Jun 2014 15:47:06 +0000 (08:47 -0700)]
Merge pull request #2032 from sponce/wip-fixstriperoni386
Wip fixstriperoni386
Reviewed-by: Sage Weil <sage@redhat.com>
Sebastien Ponce [Thu, 26 Jun 2014 13:00:15 +0000 (15:00 +0200)]
Fixed build on 32 bits platforms
Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
Sebastien Ponce [Thu, 26 Jun 2014 08:37:36 +0000 (10:37 +0200)]
Added a couple of ASSERTS for avoiding coverity to complain about the possibility of a division by 0
Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
Sage Weil [Thu, 26 Jun 2014 15:33:11 +0000 (08:33 -0700)]
Merge pull request #2030 from ceph/wip-xattr-fix
mds: set xattr_version to 0 if replay doesn't contain xattrs
Reviewed-by: Sage Weil <sage@redhat.com>
Yan, Zheng [Thu, 26 Jun 2014 05:30:13 +0000 (13:30 +0800)]
mds: set xattr_version to 0 if replay doesn't contain xattrs
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Sage Weil [Thu, 26 Jun 2014 05:06:58 +0000 (22:06 -0700)]
Merge pull request #2019 from ceph/wip-refactor-cephtool-test
qa/workunits/cephtool/test.sh: refactor and make it modular (yey! \o/)
Reviewed-by: Loic Dachary <loic@dachary.org>
Danny Al-Gaaf [Thu, 26 Jun 2014 03:22:02 +0000 (05:22 +0200)]
common/fd.cc: fix possible out-of-bounds write
Read max 'sizeof(target) - 1' to not write out of bound
later on the 'target[r] = 0;' call in case we read the
full PATH_MAX.
CID
1128416 (#1 of 1): Out-of-bounds write (OVERRUN)
overrun-local: Overrunning array target of 4096 bytes
at byte offset 4096 using index r (which evaluates to 4096).
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 26 Jun 2014 02:40:09 +0000 (04:40 +0200)]
mount.ceph.c: fix strdup related memory leak
CID
1219611 (#1 - 5): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable saw_name going out of scope
leaks the storage it points to.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 26 Jun 2014 01:49:22 +0000 (03:49 +0200)]
scratchtool.c: fix resource leak and error handling
Check the result of rados_ioctx_create()before using io_ctx.
Free io_ctx where needed. Fix messages at the end of testrados().
CID
1219613 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable io_ctx going out of scope leaks the
storage it points to.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 26 Jun 2014 00:46:30 +0000 (02:46 +0200)]
scratchtool.c: fix resource leak
CID
1219612 (#1 - 3): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable iter going out of scope leaks the
storage it points to.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Joao Eduardo Luis [Wed, 25 Jun 2014 20:25:29 +0000 (21:25 +0100)]
qa/workunits: cephtool: fix 'osd bench' test
Commit
7dc93a9651f602d9c46311524fc6b54c2f1ac595 fixed an incorrect
behavior with the OSD's 'osd bench' value hard-caps. The test wasn't
appropriately modified unfortunately.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Wed, 25 Jun 2014 20:20:45 +0000 (21:20 +0100)]
osd: OSD: better explanation on 'max_count' calculation for 'osd bench'
'max_count' is the maximum number of bytes that we are to allow for an
'osd bench' command. This value is a hard-cap that takes into account
a predefined throughput, the 'osd bench' duration and, for a rather large
block size, can be taken as the amount of bytes that we would ever be
able to write in that period of time.
The explanation wasn't appropriate enough, hence this patch, which
hopefully will avoid confusion in the future.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Wed, 25 Jun 2014 00:48:24 +0000 (01:48 +0100)]
qa/workunits: cephtool: only run heap profiler test if tcmalloc enabled
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Tue, 24 Jun 2014 22:16:17 +0000 (23:16 +0100)]
qa/workunits: cephtool: set +e for the tcmalloc tests
Avoids failing the tests when tcmalloc is not present
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Tue, 24 Jun 2014 21:47:31 +0000 (22:47 +0100)]
qa/workunits: cephtool: delete unnecessary function calls
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Tue, 24 Jun 2014 21:46:44 +0000 (22:46 +0100)]
qa/workunits: cephtool: disable bash debug when not running tests
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Tue, 24 Jun 2014 21:39:34 +0000 (22:39 +0100)]
qa/workunits: cephtool: allow running individual tests
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Tue, 24 Jun 2014 19:55:27 +0000 (20:55 +0100)]
qa/workunits: cephtool: cleanup state after erasure-code-profile test
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Wed, 25 Jun 2014 00:17:58 +0000 (01:17 +0100)]
qa/workunits: cephtool: add/remove comments
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Wed, 25 Jun 2014 23:55:46 +0000 (00:55 +0100)]
qa/workunits: cephtool: split into properly indented functions
The test was a big sequence of commands being run and it has been growing
organically for a while, even though it has maintained a sense of
locality with regard to the portions being tested.
This patch intends to split the commands into functions, allowing for a
better semantic context and easier expansion. On the other hand, this
will also allow us to implement mechanisms to run specific portions of
the test instead of always having to run the whole thing just to test a
couple of lines down at the bottom (or have to creatively edit the test).
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Wed, 25 Jun 2014 00:12:55 +0000 (01:12 +0100)]
qa/workunits: cephtool: move test line to where it's more appropriate
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Wed, 25 Jun 2014 00:11:52 +0000 (01:11 +0100)]
qa/workunits: cephtool: split into functions
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Josh Durgin [Wed, 25 Jun 2014 23:37:04 +0000 (16:37 -0700)]
Merge pull request #1863 from ceph/wip-rgw-manifest-iter
rgw: reduce calls to rgw_obj.set_obj()
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Sage Weil [Wed, 25 Jun 2014 23:14:06 +0000 (16:14 -0700)]
Merge pull request #2021 from ceph/wip-da-fix-make-check
Fixes to get "make check" run on SUSE v2
Reviewed-by: Sage Weil <sage@redhat.com>
Samuel Just [Wed, 25 Jun 2014 20:39:48 +0000 (13:39 -0700)]
Merge pull request #2001 from dachary/wip-tiermsg
mon: test that pools used in tiers cannot be removed
Reviewed-by: Samuel Just <sam.just@inktank.com>
Sage Weil [Wed, 25 Jun 2014 20:35:59 +0000 (13:35 -0700)]
Merge pull request #1938 from dachary/wip-8071
erasure-code: remove jerasure internals dependencies
Sage Weil [Wed, 25 Jun 2014 20:30:05 +0000 (13:30 -0700)]
Merge pull request #2025 from ceph/wip-disable-static
do_autogen.sh: --disable-static
Reviewed-by: Loic Dachary <loic@dachary.org>
Sage Weil [Wed, 25 Jun 2014 20:24:00 +0000 (13:24 -0700)]
Merge pull request #1967 from yuyuyu101/kvstore-fix-set-alloc-hint
Make KeyValueStore not use expected_write_size
Reviewed-by: Sage Weil <sage@redhat.com>
Danny Al-Gaaf [Tue, 24 Jun 2014 17:54:17 +0000 (19:54 +0200)]
test/ceph-disk.sh: fix for SUSE
On SUSE 'which' returns always the full path of (shell) commands and
not e.g. './ceph-conf' as on Debian. Add check also for full
path returned by which.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 25 Jun 2014 07:56:52 +0000 (09:56 +0200)]
osdmaptool/test-map-pgs.t: fix escaping to fix run
Run failed always running into the '|| cat $OUT' case due
to bad escaping of '\t'. This is caused by different shells
on different distros (e.g. bash on SUSE vs dash on Ubuntu).
Use 'grep -P ' and fix the regex to make it shell independet.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Sage Weil [Wed, 25 Jun 2014 20:19:03 +0000 (13:19 -0700)]
Revert "Give meaningful error when submodules are not checked out"
This reverts commit
87f9dbaf78ee040bbe0f56d2ada5299b150916b2 .
This breaks the gitbuilders. Maybe it needs the base dir to be explicit?
Signed-off-by: Sage Weil <sage@redhat.com>
Accela Zhao [Wed, 18 Jun 2014 09:17:03 +0000 (17:17 +0800)]
Make <poolname> in "ceph osd tier --help" clearer.
The ceph osd tier --help info on the left always says <poolname>.
It is unclear which one to put <tierpool> on the right.
$ceph osd tier --help
osd tier add <poolname> <poolname> {-- add the tier <tierpool> to base pool
force-nonempty} <pool>
osd tier add-cache <poolname> add a cache <tierpool> of size <size>
<poolname> <int[0-]> to existing pool <pool>
...
This patch modifies description on the right to tell which <poolname>:
osd tier add <poolname> <poolname> {-- add the tier <tierpool> (the second
force-nonempty} one) to base pool <pool> (the first
one)
...
Fix: http://tracker.ceph.com/issues/8256
Signed-off-by: Yilong Zhao <accelazh@gmail.com>
Sage Weil [Wed, 25 Jun 2014 18:35:16 +0000 (11:35 -0700)]
Merge pull request #1978 from adamcrume/master
OSD bug fix and developer error message
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 25 Jun 2014 18:32:40 +0000 (11:32 -0700)]
Merge pull request #2023 from adamcrume/wip-8661
doc: Fix malformed parameters in librados.h
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 25 Jun 2014 18:14:58 +0000 (11:14 -0700)]
Merge pull request #1958 from jdurgin/wip-rbd-ro
qa: add script to test krbd setting ro/rw ioctl
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 25 Jun 2014 18:11:30 +0000 (11:11 -0700)]
Merge branch 'wip-mon-sanity-checks'
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 25 Jun 2014 18:10:32 +0000 (11:10 -0700)]
mon: simplify output
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Wed, 25 Jun 2014 18:05:50 +0000 (11:05 -0700)]
Merge commit '
4225e2f6c9f69682d0e7288d7809851b61a17c70 '
Conflicts:
PendingReleaseNotes
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 25 Jun 2014 17:55:25 +0000 (10:55 -0700)]
Merge pull request #1973 from ceph/wip-8593
mon: fix up health warnings
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
Sage Weil [Wed, 25 Jun 2014 17:52:51 +0000 (10:52 -0700)]
Merge pull request #1980 from ceph/wip-osd-stats
osd: move osd_stat tracking into OSDService; fix minor bug
Reviewed-by: Samuel Just <sam.just@inktank.com>
Sage Weil [Wed, 25 Jun 2014 17:50:49 +0000 (10:50 -0700)]
Merge pull request #2006 from ceph/wip-8603
log the command that is being run with subprocess
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 25 Jun 2014 17:48:06 +0000 (10:48 -0700)]
Merge pull request #1969 from ceph/wip-vstart-conf
vstart.sh: echo CEPH_{CONF,KEYRING} exports if necessary
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 25 Jun 2014 17:34:27 +0000 (10:34 -0700)]
Merge pull request #2022 from ceph/wip-mon-perf
mon: shut down perfcounters last
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
Sage Weil [Wed, 25 Jun 2014 17:27:07 +0000 (10:27 -0700)]
do_autogen.sh: --disable-static
This will make builds go ~2x as fast when developing.
Reported-by: Luis Pabon <lpabon@redhat.com>
Signed-off-by: Sage Weil <sage@inktank.com>
Gregory Farnum [Wed, 25 Jun 2014 17:02:41 +0000 (10:02 -0700)]
Merge pull request #1944 from athanatos/wip-8396
Move the waiting_for_pg list down into the Sessions, and coordinate the updates so that we don't get races
between the Pipe and handle_map threads.
Fixes: #8396
Fixes: #8505
Reviewed-by: Greg Farnum <greg@inktank.com>
Jenkins [Wed, 25 Jun 2014 16:47:51 +0000 (16:47 +0000)]
0.82
Sage Weil [Wed, 25 Jun 2014 16:24:08 +0000 (09:24 -0700)]
Merge pull request #2024 from dachary/wip-8630-inject-enxio
osd: workaround race condition in tests
Reviewed-by: Sage Weil <sage@redhat.com>
Loic Dachary [Wed, 25 Jun 2014 16:07:47 +0000 (18:07 +0200)]
osd: workaround race condition in tests
Trying to "ceph tell" a newly created OSD sometime triggers an
ENXIO. The OSD creation function used for test scripts waits for the OSD
to report that it is up (according to ceph osd tree) before
returning. That reduces (maybe close ?) the condition that triggers the
error so that the tests do not randomly fail.
http://tracker.ceph.com/issues/8630 refs: #8630
Signed-off-by: Loic Dachary <loic@dachary.org>
Sage Weil [Wed, 25 Jun 2014 15:43:32 +0000 (08:43 -0700)]
mon: shut down perfcounters last
In particular, remove_all_sessions updates the perfcounter stats, so we
need to stop those after.
Signed-off-by: Sage Weil <sage@redhat.com>
Adam Crume [Wed, 25 Jun 2014 15:38:49 +0000 (08:38 -0700)]
doc: Fix malformed parameters in librados.h
Fixes parameters for rados_write_op_operate and rados_aio_write_op_operate
Fixes: #8661
Signed-off-by: Adam Crume <adamcrume@gmail.com>
Danny Al-Gaaf [Wed, 25 Jun 2014 15:01:30 +0000 (17:01 +0200)]
libcephfs/test.cc: fix use after free
Don't call ceph_shutdown() after ceph_release().
CID
1219651 (#1 of 1): Use after free (USE_AFTER_FREE)
17. deref_arg: Calling ceph_shutdown dereferences freed
pointer cmount.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 25 Jun 2014 14:50:20 +0000 (16:50 +0200)]
RadosStriperImpl.cc: catch exception by reference
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 25 Jun 2014 14:40:24 +0000 (16:40 +0200)]
rgw/rgw_rados.h: use static_cast instead of c-style cast
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Loic Dachary [Wed, 25 Jun 2014 14:54:14 +0000 (16:54 +0200)]
Merge pull request #1996 from dachary/wip-mailmap
mailmap updates
reviewed-by individual commits
Loic Dachary [Wed, 25 Jun 2014 13:13:21 +0000 (15:13 +0200)]
Merge pull request #2017 from ceph/wip-8654
Fix #8654 - OSD.cc: parse LSB data via lsb_release
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
Danny Al-Gaaf [Tue, 24 Jun 2014 22:31:48 +0000 (00:31 +0200)]
osd/OSD.cc: parse lsb release data via lsb_release
Use lsb_release tool to be portable since parsing /etc/lsb-release
is not the same between different distributions. The old code failed
e.g. for SUSE products to parse LSB information.
Fixes: #8654
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Samuel Just [Wed, 25 Jun 2014 01:45:17 +0000 (18:45 -0700)]
Merge pull request #2020 from ceph/wip-fix-rados-tool
rados.cc: fix pool alignment check
Reviewed-by: Sage Weil <sage@inktank.com>
Samuel Just [Tue, 24 Jun 2014 17:11:21 +0000 (10:11 -0700)]
rados.cc: fix pool alignment check
Only check pool alignment if io_ctx is initialized.
Introduced in
304b08a23a3db57010078046955a786fe3589ef8
Fixes: #8652
Signed-off-by: Samuel Just <sam.just@inktank.com>
John Spray [Tue, 24 Jun 2014 23:00:28 +0000 (16:00 -0700)]
Merge remote-tracking branch 'origin/next'
John Spray [Tue, 24 Jun 2014 22:49:29 +0000 (15:49 -0700)]
Merge pull request #2005 from ceph/wip-8624
mon: MDSMonitor: do not allow ec pools to be used for data or metadata
Reviewed-by: Loic Dachary <loic@dachary.org>
Reviewed-by: John Spray <john.spray@redhat.com>
Joao Eduardo Luis [Mon, 23 Jun 2014 22:27:05 +0000 (23:27 +0100)]
mon: MDSMonitor: print pool name along with id during 'newfs' errors
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Fri, 20 Jun 2014 15:25:35 +0000 (16:25 +0100)]
qa/workunit: cephtool: test mds newfs and add_data_pool with ec pools
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Fri, 20 Jun 2014 15:13:28 +0000 (16:13 +0100)]
mon: MDSMonitor: do not allow ec pools to be used for data or metadata
Fixes: #8624
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Mon, 23 Jun 2014 22:05:02 +0000 (23:05 +0100)]
common: LogClient: output to derr (i.e., dout(-1)) on CLOG_ERROR
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Mon, 23 Jun 2014 22:04:02 +0000 (23:04 +0100)]
mon: Monitor: observe conf changes and report on unsage option values
Fixes: #8605
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Sat, 21 Jun 2014 17:15:29 +0000 (18:15 +0100)]
mon: Monitor: sanitize options at start
Make sure some options have sane values.
Fixes: #8605
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Adam Crume [Tue, 10 Jun 2014 17:47:46 +0000 (10:47 -0700)]
Give meaningful error when submodules are not checked out
Signed-off-by: Adam Crume <adamcrume@gmail.com>
Adam Crume [Tue, 17 Jun 2014 20:24:45 +0000 (13:24 -0700)]
osd: Only normalize extent if op uses extent
Code in ReplicatedPG was reading and modifying ceph_osd_op.extent,
even though that is a member of a union and only valid for some ops.
Signed-off-by: Adam Crume <adamcrume@gmail.com>
Joao Eduardo Luis [Mon, 23 Jun 2014 21:41:35 +0000 (22:41 +0100)]
osd: remove OSD-specific leveldb options
OSDs will now rely on 'leveldb_*' config options. We do keep however
leveldb's log enabled for OSDs by passing 'leveldb_log=""' as a default
argument to global_init() on ceph_osd.cc -- however, users will be able
to override this at their own discretion.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Mon, 23 Jun 2014 20:59:13 +0000 (21:59 +0100)]
ceph-mon: override 'leveldb_*' config options for the monitor
'leveldb_*' options are currently used both by the monitor and the osd.
However, the monitor has quite different requirements from those of the
osds.
We need to specify some default values that must squash the defaults we
have for 'leveldb_*' options, while allowing users to overriding them too.
We take this not-exactly-ideal-but-still-good-enough approach of
defining the monitor-specific defaults in the 'default arguments' to
global_init(), thus allowing the user's options to take precedence over
whatever we define.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Mon, 23 Jun 2014 18:28:07 +0000 (19:28 +0100)]
mon: MonitorDBStore: remove mon-specific leveldb options.
From this point onward, users should use leveldb's options and add them
to the appropriate config sections of their configuration file.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Samuel Just [Mon, 23 Jun 2014 18:25:55 +0000 (11:25 -0700)]
Merge pull request #1998 from ceph/wip-disk-ioprio
osd: allow io priority for (background) disk threadpool to be set
Backport: firefly, dumpling
Reviewed-by: Samuel Just <sam.just@inktank.com>
Joao Eduardo Luis [Mon, 23 Jun 2014 18:24:55 +0000 (19:24 +0100)]
mon: DataHealthService: s/mon_leveldb_size_warn/mon_data_size_warn/
Make the option name independent from the store mechanism used underneath.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Samuel Just [Mon, 23 Jun 2014 18:08:31 +0000 (11:08 -0700)]
Merge pull request #2015 from ceph/wip-8610
osd: ignore CRUSH_ITEM_NONE in compat_must_dispatch_immediately
Reviewed-by: Samuel Just <sam.just@inktank.com>
Sage Weil [Mon, 23 Jun 2014 17:47:24 +0000 (10:47 -0700)]
osd: ignore CRUSH_ITEM_NONE in compat_must_dispatch_immediately
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Mon, 23 Jun 2014 16:09:49 +0000 (09:09 -0700)]
Merge pull request #1979 from ceph/wip-backfill-priority
osd: improve backfill prioritization
Reviewed-by: Samuel Just <sam.just@inktank.com>
Sage Weil [Thu, 19 Jun 2014 19:34:36 +0000 (12:34 -0700)]
osd: allow io priority to be set for the disk_tp
The disk_tp covers scrubbing, pg deletion, and snap trimming
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Wed, 18 Jun 2014 18:02:09 +0000 (11:02 -0700)]
common/WorkQueue: allow io priority to be set for wq
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Wed, 18 Jun 2014 18:01:42 +0000 (11:01 -0700)]
common/Thread: allow io priority to be set for a Thread
Ideally, set this before starting the thread. If you set it after, we
could potentially race with create() itself.
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Wed, 18 Jun 2014 18:01:09 +0000 (11:01 -0700)]
common/io_priority: wrap ioprio_set() and gettid()
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Mon, 23 Jun 2014 15:56:39 +0000 (08:56 -0700)]
Merge remote-tracking branch 'gh/wip-misc-fixes'
Conflicts:
src/mon/Monitor.cc
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
Sage Weil [Mon, 23 Jun 2014 15:15:33 +0000 (08:15 -0700)]
Merge pull request #2009 from kevincox/election-int
Use sized integer.
Reviewed-by: Sage Weil <sage@inktank.com>
Danny Al-Gaaf [Mon, 23 Jun 2014 09:20:09 +0000 (11:20 +0200)]
test/libradosstriper/striping.cc: fix potential memory leak
Fix for:
[src/test/libradosstriper/striping.cc:138]: (error) Allocation with
getObjName, stat doesn't release it
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Mon, 23 Jun 2014 08:50:13 +0000 (10:50 +0200)]
MDCache.cc: init 'umaster::ls' with NULL in contructor
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Mon, 23 Jun 2014 08:23:33 +0000 (10:23 +0200)]
MDCache.h: init 'umaster::safe' in constructor
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>