]>
git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/log
Danny Al-Gaaf [Wed, 27 Feb 2013 18:36:25 +0000 (19:36 +0100)]
kv_flat_btree_async.cc: remove unused variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 18:32:23 +0000 (19:32 +0100)]
kv_flat_btree_async.cc: remove some unreachable break statements
Remove unreachable break statements after return calls in a switch.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 18:18:05 +0000 (19:18 +0100)]
key_value_store/cls_kvs.cc: remove unused variable dupmap
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 18:14:03 +0000 (19:14 +0100)]
bloom_filter.hpp: check for self assignment
Check for self assignment in operator= to avoid problems with
dynamic memory (cppcheck).
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 17:53:28 +0000 (18:53 +0100)]
crush/builder.c: reduce scope of oldsize in crush_add_rule()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 17:27:56 +0000 (18:27 +0100)]
CrushCompiler.cc: remove duplicate if/else branches
Fix duplicate content of a if/else branch. Remove the
complete if/else around the content.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 17:22:24 +0000 (18:22 +0100)]
common/secret.c: reduce the scope of some variables
Reduce the scope of error_buf to the place where it's used.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 17:01:07 +0000 (18:01 +0100)]
pick_address.cc: pass const string by refrence
Pass 'const string networks' by reference to find_ip_in_subnet_list().
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 17:00:20 +0000 (18:00 +0100)]
obj_bencher.cc: use static_cast instead of C-Style cast
Use static_cast<T>() instead of C-Style cast.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 16:53:14 +0000 (17:53 +0100)]
config.cc: remove unused variable 'val' from parse_injectargs()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 16:50:45 +0000 (17:50 +0100)]
code_environment.cc: move variable ret in get_process_name()
Move 'ret' in get_process_name() to the correct block to suppress
warning about unused variable in cppcheck.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 16:49:59 +0000 (17:49 +0100)]
ceph_context.cc: remove unused variable 'args' from do_command
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 15:54:35 +0000 (16:54 +0100)]
cls_crypto.cc: remove some unused variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 15:51:56 +0000 (16:51 +0100)]
cls_acl.cc: remove unused variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 15:48:55 +0000 (16:48 +0100)]
common/armor.c: reduce scope of some variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 15:14:22 +0000 (16:14 +0100)]
TextTable: pass const string by refrence to define_column()
Pass 'const string heading' by reference to define_column().
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 15:04:57 +0000 (16:04 +0100)]
CephBroker.h: use static_cast instead of C-Style cast
Use static_cast<T>() instead of C-Style cast.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 27 Feb 2013 14:53:52 +0000 (15:53 +0100)]
SyntheticClient.cc: use static_cast instead of C-Style cast
Use static_cast<T>() instead of C-Style cast.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Gary Lowell [Sat, 16 Feb 2013 01:58:48 +0000 (17:58 -0800)]
Build: Change build to always use system leveldb
Dynamically link to the leveldb installed on the system rather than
statically linking ceph copy. Remove the --with-system-leveldb config
option, and add a requirement for leveldb libraries for rpm and debian
packages. Bug 3945.
Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
Gary Lowell [Wed, 27 Feb 2013 02:28:34 +0000 (18:28 -0800)]
ceph-test.install: remove cepkfs-test.jar
This was merged prematurely to mast.
Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
Sage Weil [Wed, 27 Feb 2013 01:45:23 +0000 (17:45 -0800)]
doc: fix rst for watch/notify internals
Signed-off-by: Sage Weil <sage@inktank.com>
Samuel Just [Wed, 27 Feb 2013 01:35:40 +0000 (17:35 -0800)]
OpRequest: rmw_flags may actually be 0
If the operation includes only an invalid method,
the flags will be 0.
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Signed-off-by: Samuel Just <sam.just@inktank.com>
Sage Weil [Wed, 27 Feb 2013 01:29:48 +0000 (17:29 -0800)]
Merge branch 'next'
Gary Lowell [Tue, 26 Feb 2013 23:00:55 +0000 (15:00 -0800)]
ceph-test.install: Add libcephfs-test.jar.
Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
Sage Weil [Wed, 27 Feb 2013 01:11:21 +0000 (17:11 -0800)]
Merge pull request #78 from Elbandi/master
Some fixes and functions for libcephfs and client
Reviewed-by: Sage Weil <sage@inktank.com>
Andras Elso [Tue, 26 Feb 2013 23:24:20 +0000 (00:24 +0100)]
client: add some new functions: lchmod, fsetattr, lutime
Signed-off-by: Andras Elso <elso.andras@gmail.com>
Andras Elso [Tue, 26 Feb 2013 23:20:39 +0000 (00:20 +0100)]
client: allow change file owner or group only
Signed-off-by: Andras Elso <elso.andras@gmail.com>
Andras Elso [Tue, 26 Feb 2013 23:23:11 +0000 (00:23 +0100)]
client: use get_filehandle
Signed-off-by: Andras Elso <elso.andras@gmail.com>
Andras Elso [Tue, 26 Feb 2013 23:24:44 +0000 (00:24 +0100)]
client: fix log data
Signed-off-by: Andras Elso <elso.andras@gmail.com>
Andras Elso [Tue, 26 Feb 2013 23:14:49 +0000 (00:14 +0100)]
libcephfs: fix default parameters document for ceph_open_layout
Signed-off-by: Andras Elso <elso.andras@gmail.com>
Sage Weil [Wed, 27 Feb 2013 00:11:26 +0000 (16:11 -0800)]
Merge pull request #76 from dalgaaf/wip-da-sca-style
Fix some style related issues found by cppcheck
Reviewed-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 26 Feb 2013 23:53:35 +0000 (15:53 -0800)]
Merge remote-tracking branch 'gh/wip-4256'
Reviewed-by: Sage Weil <sage@inktank.com>
Joao Eduardo Luis [Tue, 26 Feb 2013 23:31:33 +0000 (23:31 +0000)]
PendingReleaseNotes: mention ceph-mon requiring the creation of data dir
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Mon, 25 Feb 2013 17:54:18 +0000 (17:54 +0000)]
mon: give useful errors to user when store is missing
We used to assert() instead, which didn't shed enough light on the cause
and could confuse the user into believing something *terrible* had
happened.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Thu, 21 Feb 2013 17:44:39 +0000 (17:44 +0000)]
mon: Monitor: check for an argument to 'quorum' before reading the array
Fixes: #4218
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Tue, 26 Feb 2013 14:41:33 +0000 (14:41 +0000)]
mon: Monitor: adjust sync start criteria considering a peon's bootstrap
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Joao Eduardo Luis [Tue, 26 Feb 2013 01:54:10 +0000 (01:54 +0000)]
mon: Paxos: bootstrap if we have fallen behind when we start collecting
Fixes: #4256
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Josh Durgin [Tue, 26 Feb 2013 21:20:08 +0000 (13:20 -0800)]
librbd: fix rollback size
The duplicate calls to get_image_size() and get_snap_size() replaced
by
5806226cf0743bb44eaf7bc815897c6846d43233 uncovered this. The first
call was using the currently set snap_id instead of the snapshot being
rolled back to.
Fixes: #4272
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 26 Feb 2013 22:07:12 +0000 (14:07 -0800)]
msg: fix entity_addr_t::is_same_host() for IPv6
We weren't checking the memcmp return value properly! Aie...
Backport: bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 26 Feb 2013 21:12:08 +0000 (13:12 -0800)]
mon: fix other debug dumps
These should only kick in at high debug levels. Moving any "work" between
the dout() and dendl lines puts them inside the magical hidden if block
that makes this code a no-op at low debug.
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 26 Feb 2013 20:38:33 +0000 (12:38 -0800)]
msgr: print dump before asserting (if that is enabled)
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 26 Feb 2013 20:34:55 +0000 (12:34 -0800)]
msgr: dump corrupt message to log (at high debug levels)
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 26 Feb 2013 20:29:35 +0000 (12:29 -0800)]
Merge remote-tracking branch 'gh/next'
Sage Weil [Sat, 23 Feb 2013 01:01:53 +0000 (17:01 -0800)]
osd: allow (some) log trim when degraded, but not during recovery
We allow some trim during degraded, although we keep more entries around to
improve our chances of a restarting OSD of doing log-based recovery.
Still disallow during recovery...
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
Sage Weil [Mon, 25 Feb 2013 23:33:35 +0000 (15:33 -0800)]
osd: restructure calc_trim
No functional change, except that we log more debug, yay!
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
Sage Weil [Sat, 23 Feb 2013 00:48:02 +0000 (16:48 -0800)]
osd: allow pg log trim during (non-classic) scrub
Chunky (and deep) scrub do not care about PG log trimming. Classic scrub
still does.
Deep scrub can take a long time, so not trimming the log during that period
may eat lots of RAM; avoid that!
Might fix: #4179
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
Sage Weil [Tue, 26 Feb 2013 20:25:43 +0000 (12:25 -0800)]
Merge remote-tracking branch 'gh/wip_4257'
Reviewed-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 26 Feb 2013 19:33:23 +0000 (11:33 -0800)]
mon: avoid expensive dump unless log will gather
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 26 Feb 2013 19:10:44 +0000 (11:10 -0800)]
ceph_common.sh: tolerate missing mds, mon, osds in conf
With set -e this seems to fail (at least on some machines) if, say, there
is no MDS in the conf file. This fixes it.
Tested-by: Mark Nelson <mark.nelson@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
Gary Lowell [Tue, 26 Feb 2013 19:09:16 +0000 (11:09 -0800)]
Merge branch 'wip-4119'
Fix for bug 4119r, create directories under /var/lib/ceph.
Joe Buck [Tue, 19 Feb 2013 18:37:49 +0000 (10:37 -0800)]
testing: updating hadoop-internal test
Small tweaks to the hadoop-internal test
to better use existing environment varaibles
and in response to the recent teuthology
changes.
Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
Danny Al-Gaaf [Tue, 26 Feb 2013 18:51:03 +0000 (19:51 +0100)]
CephBroker.cc: fix condition
from cppcheck:
Fix Suspicious condition (assignment + comparison); Clarify
expression with parentheses.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Joe Buck [Wed, 20 Feb 2013 22:32:01 +0000 (14:32 -0800)]
test: removing dead code
Signed-off-by: Joe Buck <jbbuck@gmail.com>
Joe Buck [Wed, 20 Feb 2013 23:22:39 +0000 (15:22 -0800)]
test: updating libcephfs-java tests
Recent changes in teuthology necessitate
changes to libcephfs-java test case.
Signed-off-by: Joe Buck <jbbuck@gmail.com>
Danny Al-Gaaf [Tue, 26 Feb 2013 18:31:02 +0000 (19:31 +0100)]
Client.cc: reduce the scope of some variables
Reduce the scope of some variables.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 26 Feb 2013 18:18:58 +0000 (19:18 +0100)]
Client.cc: use static_cast instead of C-Style cast
Use static_cast<T>() instead of C-Style cast.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Sage Weil [Tue, 26 Feb 2013 18:00:41 +0000 (10:00 -0800)]
Merge pull request #75 from alram/master
Typo: pool should be root in rados/operations/crush-map.rst
Reviewed-by: Sage Weil <sage@inktank.com>
Danny Al-Gaaf [Tue, 26 Feb 2013 17:50:13 +0000 (18:50 +0100)]
Paxos.h: pass string name function parameter by reference
Pass 'const string name' function parameter by reference.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Alexandre Marangone [Tue, 26 Feb 2013 17:47:58 +0000 (09:47 -0800)]
Typo: pool should be root in rados/operations/crush-map.rst
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Sage Weil [Tue, 26 Feb 2013 17:00:38 +0000 (09:00 -0800)]
Merge pull request #73 from dalgaaf/wip-da-sca-cppcheck-emptiness
fix more emptiness checks
Reviewed-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 26 Feb 2013 16:58:51 +0000 (08:58 -0800)]
Merge pull request #74 from dalgaaf/wip-da-sca-misc
mds/journal.cc: fix assert in replay()
Let's see how many bugs this has been hiding... :)
Reviewed-by: Sage Weil <sage@inktank.com>
Danny Al-Gaaf [Tue, 26 Feb 2013 15:27:22 +0000 (16:27 +0100)]
osd/ReplicatedPG.cc: remove unused variables
Remove unused variable declarations.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 26 Feb 2013 15:24:46 +0000 (16:24 +0100)]
osd_types.cc: add parenthesis around expression
Add parenthesis around expressions like (x && y & z).
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 26 Feb 2013 15:23:25 +0000 (16:23 +0100)]
OSDMap.cc: add parenthesis around expression
Add parenthesis around expressions like (x && y & z).
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 26 Feb 2013 15:13:09 +0000 (16:13 +0100)]
PGMonitor.cc: add parenthesis around expression
Add parenthesis around expressions like (x && y & z).
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 26 Feb 2013 15:03:19 +0000 (16:03 +0100)]
Client.cc: add parenthesis around expression
Add parenthesis around expressions like (x && y & z).
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 26 Feb 2013 14:56:03 +0000 (15:56 +0100)]
CephxProtocol.cc: catch end_of_buffer by reference
Follow 'Throw by value, catch by reference' to void copying and
potential slicing the exception.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 26 Feb 2013 14:54:19 +0000 (15:54 +0100)]
CephxProtocol.cc: catch error by reference
Follow 'Throw by value, catch by reference' to void copying and
potential slicing the exception.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 26 Feb 2013 14:47:05 +0000 (15:47 +0100)]
crushtool.cc: remove unneeded function declaration
Remove unneeded function declarations (data_analysis() is unused and
usage() is not needed).
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 26 Feb 2013 14:21:38 +0000 (15:21 +0100)]
mds/journal.cc: fix assert in replay()
Fix assert in replay(), check if mds->sessionmap.version is cmapv
instead of assign cmapv to mds->sessionmap.version. Add missing
second '='.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 26 Feb 2013 10:25:49 +0000 (11:25 +0100)]
KeyValueDBMemory.cc: use empty() instead of size() == 0
Use empty() since it should be prefered as it has, following the
standard, a constant time complexity regardless of the containter
type. The same is not guaranteed for size().
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 26 Feb 2013 10:19:25 +0000 (11:19 +0100)]
ReplicatedPG.cc: use empty() instead of size() == 0
Use empty() since it should be prefered as it has, following the
standard, a constant time complexity regardless of the containter
type. The same is not guaranteed for size().
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 26 Feb 2013 10:16:56 +0000 (11:16 +0100)]
FileStore.cc: use if(!empty()) instead of if(size())
Use empty() since it should be prefered as it has, following the
standard, a constant time complexity regardless of the containter
type. The same is not guaranteed for size().
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 26 Feb 2013 10:15:35 +0000 (11:15 +0100)]
mon_store_converter.cc: use empty() instead of size()
Use empty() since it should be prefered as it has, following the
standard, a constant time complexity regardless of the containter
type. The same is not guaranteed for size().
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 26 Feb 2013 10:13:45 +0000 (11:13 +0100)]
Paxos.cc: use empty() instead of size()
Use empty() since it should be prefered as it has, following the
standard, a constant time complexity regardless of the containter
type. The same is not guaranteed for size().
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Mon, 25 Feb 2013 16:08:14 +0000 (17:08 +0100)]
Monitor.h: use empty() instead of !size()
Use empty() since it should be prefered as it has, following the
standard, a constant time complexity regardless of the containter
type. The same is not guaranteed for size().
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Mon, 25 Feb 2013 16:06:36 +0000 (17:06 +0100)]
Monitor.cc: use empty() instead of size()
Use empty() since it should be prefered as it has, following the
standard, a constant time complexity regardless of the containter
type. The same is not guaranteed for size().
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Gary Lowell [Tue, 26 Feb 2013 07:51:25 +0000 (23:51 -0800)]
ceph.spec.in: Create placeholder directorys under /var/lib/ceph (Bug 4119)
Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
Gary Lowell [Mon, 11 Feb 2013 06:21:52 +0000 (22:21 -0800)]
configure.ac: Add test for c++ compiler.
The AC_PROG_CXX macro sets a flag if a C++ compiler is found
but does not fail if one is not found, it left to application
to test the flags as needed. This fix will issue an error
when a c++ compiler is not found. Bug 3955.
Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
it's not installed, this fix adds an error message for a
Dan Mick [Mon, 26 Nov 2012 21:43:13 +0000 (13:43 -0800)]
test_lock_fence.sh, rbdrw.py: rbd lock/fence test
qa/workunits/rbd/test_lock_fence.sh runs using test/rbdrw.py
rbdrw.py creates an image, locks it, and runs an I/O loop;
test_lock_fence.sh runs it, waits, and then blacklists that client,
which causes rbdrw.py to get ESHUTDOWN on operations thereafter.
Currently doesn't work with rbd caching enabled.
rbd.py gets new exception type for ESHUTDOWN
Fixes: #3190
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Sage Weil [Tue, 26 Feb 2013 01:48:16 +0000 (17:48 -0800)]
Merge remote-tracking branch 'gh/wip-4249-master'
Sage Weil [Tue, 26 Feb 2013 01:48:07 +0000 (17:48 -0800)]
Merge remote-tracking branch 'gh/wip-4249' into next
Sage Weil [Tue, 26 Feb 2013 01:41:07 +0000 (17:41 -0800)]
Merge remote-tracking branch 'gh/wip-4252'
Sage Weil [Sat, 23 Feb 2013 17:01:07 +0000 (09:01 -0800)]
mon: PaxosService: remove lingering uses of paxos getters and wait methods
We should use the PaxosServices getters, setters, and wait methods when and
wherever possible. These must have fallen through the cracks during the
merge.
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Josh Durgin [Mon, 25 Feb 2013 23:02:50 +0000 (15:02 -0800)]
systest: restrict list error acceptance
Only ignore errors after the midway point if the midway_sem_post is
defined.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit
5b24a68b6e7d57bac688021b822fb2f73494c3e9 )
Josh Durgin [Mon, 25 Feb 2013 22:55:34 +0000 (14:55 -0800)]
systest: fix race with pool deletion
The second test have pool deletion and object listing wait on the same
semaphore to connect and start. This led to errors sometimes when the
pool was deleted before it could be opened by the listing process. Add
another semaphore so the pool deletion happens only after the listing
has begun.
Fixes: #4147
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit
b0271e390564119e998e18189282252d54f75eb6 )
Sage Weil [Tue, 26 Feb 2013 00:49:37 +0000 (16:49 -0800)]
Merge remote-tracking branch 'gh/wip-4147'
John Wilkins [Tue, 26 Feb 2013 00:29:57 +0000 (16:29 -0800)]
doc: Added subnet example and verbiage to network settings.
fixes: #4049
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
John Wilkins [Tue, 26 Feb 2013 00:12:50 +0000 (16:12 -0800)]
doc: Added content to remove REJECT rules from iptables.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Josh Durgin [Tue, 26 Feb 2013 00:09:26 +0000 (16:09 -0800)]
test_rbd: move flatten tests back into TestClone
They need the same setup, and it's easy enough to run specific
subtests. Making them a separate subclass accidentally duplicated
tests from TestClone.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Josh Durgin [Mon, 25 Feb 2013 23:59:48 +0000 (15:59 -0800)]
qa: enable watch-notify dependent test
This works now that watch-notify has been reworked a bit.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Josh Durgin [Mon, 25 Feb 2013 23:55:36 +0000 (15:55 -0800)]
test_rbd: close image before removing it
This error was masked before by watch notify not differentiating
between watches from the same client with different cookies.
Reopen the image at the end of this test so teardown works.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
John Wilkins [Mon, 25 Feb 2013 23:28:07 +0000 (15:28 -0800)]
doc: Added a small ref section for osd config reference.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
John Wilkins [Mon, 25 Feb 2013 23:27:09 +0000 (15:27 -0800)]
doc: Updated osd configuration reference.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Josh Durgin [Mon, 25 Feb 2013 23:02:50 +0000 (15:02 -0800)]
systest: restrict list error acceptance
Only ignore errors after the midway point if the midway_sem_post is
defined.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Josh Durgin [Mon, 25 Feb 2013 22:55:34 +0000 (14:55 -0800)]
systest: fix race with pool deletion
The second test have pool deletion and object listing wait on the same
semaphore to connect and start. This led to errors sometimes when the
pool was deleted before it could be opened by the listing process. Add
another semaphore so the pool deletion happens only after the listing
has begun.
Fixes: #4147
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Josh Durgin [Mon, 25 Feb 2013 22:09:41 +0000 (14:09 -0800)]
qa: output rados test names as they run
So we don't have to figure out which test is running from the output,
which can be difficult with the system tests.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Samuel Just [Mon, 25 Feb 2013 21:28:31 +0000 (13:28 -0800)]
PG,ReplicatedPG: use pg_has_reset_since to discard old async events
Local async events are obsolete if the pg is deleting or if the
epoch at which they were created is prior to last_peering_reset.
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Mon, 25 Feb 2013 20:40:06 +0000 (12:40 -0800)]
PG::build_scrub_map: detect race with peering via last_peering_reset
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Mon, 25 Feb 2013 20:36:29 +0000 (12:36 -0800)]
ReplicatedPG::C_OSD_CommittedPushedObject: use intrusive_ptr for pg
Signed-off-by: Samuel Just <sam.just@inktank.com>