Commit Graph

21479 Commits

Author SHA1 Message Date
Gary Lowell
2528b5ee10 v0.43 2012-10-16 17:42:36 +00:00
Sage Weil
318bd19275 Merge remote-tracking branch 'gh/wip-fedora18' into next 2012-10-16 09:05:55 -07:00
Sage Weil
412efc1681 admin_socket: fix '0' protocol version
Broken by 895e24d198.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-15 16:37:24 -07:00
Gary Lowell
55115642f1 Makefile: Add CRYPTO_C(XX)FLAGS to librdb 2012-10-15 14:14:35 -07:00
Gary Lowell
4c134a42d9 Makefiles: Add ar-lib to .gitignore. 2012-10-15 14:14:35 -07:00
Gary Lowell
f525534b5f autogen.sh: On some platforms, the m4 is created earlier. 2012-10-15 14:14:35 -07:00
Gary Lowell
d28ba52b5f autogen.sh: Create m4 directory for leveldb submodule. 2012-10-15 14:14:35 -07:00
Gary Lowell
0cc828ba22 Makefiles: Update submodule reference to latestes for leveldb. 2012-10-15 14:14:35 -07:00
Gary Lowell
3ecd289139 Makefile: update submodule reference for leveldb. 2012-10-15 14:14:35 -07:00
Gary Lowell
0219b66e04 leveldb: fix-up submodule entry. 2012-10-15 14:14:35 -07:00
Gary Lowell
071fdc217a Makefile: Improve test for boost system library. 2012-10-15 14:14:35 -07:00
Gary Lowell
7ea734c472 Makefiles: Missing boost library should not be fatal. 2012-10-15 14:14:34 -07:00
Gary Lowell
151d9403c5 Makefiles: ignore the m4 macro directory 2012-10-15 14:14:34 -07:00
Gary Lowell
3658157b60 Makefile: Updates to eliminates warnings, add test for boost system lib. 2012-10-15 14:14:34 -07:00
Sage Weil
aed3612f87 MOSDBoot: fix compatibility with ~argonaut
I revved this message and forgot to set the compat version correctly,
preventing post-change (e.g., bobtail) OSDs from talking to pre-change
(e.g., argonaut) monitors.  This was in b64641c.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-04 17:01:33 -07:00
Sage Weil
c109329244 librbd: simplify math
Bending over backwards hasn't made coverity happy.  We'll just ignore it
there.

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit c517fde269)
2012-10-04 15:45:50 -07:00
Joao Eduardo Luis
d5c3c47619 mon: Elector: clean ack set on election start
We should never consider old 'acks' from monitors on a new election. We
usually do it, but we didn't if an election expired, because this code
didn't foresee the possibility of monitors changing ranks in-between
elections -- which doesn't happen if we specify the monmap during the
monitor's mkfs, but may happen when relying on 'mon initial peers'.

Failing to do so triggered an assertion after fixing bug #3252.

Backport: argonaut

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-04 17:36:10 +01:00
Joao Eduardo Luis
35f5effa73 mon: Elector: bootstrap on new monmap from elector
Whenever we update the monmap we should bootstrap, in order to reset the
monitor's on-going activities and re-probe.

Not doing so contributed to bug #3252, during which we entered an infinite
election cycle. This may only happen though when we rely on 'mon initial
peers'. Specifying a monmap during the monitor's mkfs should not trigger
this bug.

Fixes: #3252
Backport: argonaut

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-04 17:36:03 +01:00
Sage Weil
36efcb5518 mon: do not tick() until all paxos instances recover
We cannot propose until they all recover.

Fixes: #3260
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-10-03 16:24:18 -07:00
Dan Mick
01bfe55962 Merge branch 'wip-msgr' into next 2012-10-02 16:06:59 -07:00
Dan Mick
67a201d64b Avoid sign-extension of non-magic Message* values
Cast to (unsigned long) when checking for magic values, so
real ptrs don't get sign-extended.  Avoids triggering
assert(inq == &local_queue) failure.

Fixes: #3251
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage.weil@inktank.com>
2012-10-02 16:04:35 -07:00
Sage Weil
72ca956632 test_libcephfs: fix test
Can't close an already-closed dir handle.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 20:24:23 -07:00
Sage Weil
7af24bbda2 libcephfs: fix test workunit
Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 21:02:36 -07:00
Sage Weil
1ad339f781 mon: fix recovered_peon assert
Recovered_peon() can get called multiple times for a given machine id.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 15:12:59 -07:00
Sage Weil
238b497a1c mon: debug recovered_{peon,leader}
Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 15:12:56 -07:00
Samuel Just
c925ce8663 FileStore: use fresh vector for calls for listing collection
In collection_list_range, use an empty vector to pass into
collection_list_partial.  collection_list_partial stops
listing when the output vector exceeds the specified max.
If this happens before we hit the end of the range,
collection_list_range will spin forever.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Mike Ryan <mike.ryan@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2012-09-28 16:29:28 -07:00
Sage Weil
404e7589d1 Merge remote-tracking branch 'gh/wip-osd-caps'
Reviewed-by: Sage Weil <sage@inktank.com>
2012-09-27 16:34:03 -07:00
Josh Durgin
cc4dcf60f5 test: add more OSDCap unit tests
Check that allow_all() returns false when 'allow *' is not specified.
This would have caught #3228.
Add tests for the output operators as well.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-27 15:38:29 -07:00
Josh Durgin
de6e0d8112 OSDCaps: fix allow_all()
OSD_CAP_ANY is not a mask. Treating it as one made any allowance
equivalent to 'allow *'.

Fixes: #3228
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-27 15:38:18 -07:00
Josh Durgin
e903ca7add OSDCap: fix output operators for caps
OSD_CAP_ANY is not a flag, but a value (0xff) that will always
be true when treated as a mask with a non-zero rwxa_t.

Don't duplicate the rwxa_t output operator in the OSDCapSpec output
operator, just use it.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-27 15:36:48 -07:00
Josh Durgin
1d747d1eb9 OSDCap: fix typo in comment
The grammar uses auid, not uid.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-27 15:36:47 -07:00
John Wilkins
30e10a9ac9 doc: RST cleanup for RPM dev package installs.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-09-27 15:02:42 -07:00
John Wilkins
2fc29fe9ef doc: Removed old ops directory structure and redundant files.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-09-27 15:02:05 -07:00
Sam Lang
ff96789e46 client: add WARN_UNUSED_RESULT to client init func
Adds the gcc attribute (if available) to client init functions to
ensure proper error handling.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-09-27 14:34:29 -07:00
Sam Lang
27c7c71f14 client: Remove unmaintained ldceph.cc from tree
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-09-27 14:34:29 -07:00
Sam Lang
a1cfe74ae8 client: Mods to fix #3184 for messenger shutdown
This moves the shutdown of the messenger outside of the client
to be able to handle error cases more appropriately.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-09-27 14:34:29 -07:00
Dan Mick
1d231f9364 Refresh manpages from .rst sources
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2012-09-27 14:33:04 -07:00
Dan Mick
3c1e2e1928 manpage-howto.txt: note that man/Makefile.am may need update too
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2012-09-27 14:33:04 -07:00
Dan Mick
eb27f9addb Add howto for changing man pages
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2012-09-27 14:20:04 -07:00
Sage Weil
d37ca798be mon: update 'auth' help/usage
Fixes: #3227
Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-27 14:15:39 -07:00
Sage Weil
1d552a4ba0 rados: fix man page
Default bench IO size if 4MB.

Fixes: 3230
Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-27 14:10:51 -07:00
Sage Weil
8740ddf97d doc: fix rpm url (part deux)
Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-27 14:00:40 -07:00
Sage Weil
18921ed2ef Merge remote-tracking branch 'gh/wip-watch-header-race' 2012-09-27 13:37:52 -07:00
Josh Durgin
6c5c939f1d librbd: fix includes for portability
This needs limits.h for Centos, and the inttypes.h wrapper for FreeBSD.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-27 13:34:22 -07:00
Sage Weil
aae9214c80 Merge remote-tracking branch 'gh/wip-osd'
Reviewed-by: Samuel Just <sam.just@inktank.com>
2012-09-27 13:33:45 -07:00
Yehuda Sadeh
c9266d6541 rgw: check that realloc succeeded
Was missing a test after a realloc.

Backport: argonaut
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-09-27 13:31:48 -07:00
Mike Ryan
45133971cc ReplicatedPG: track incoming pushes with perf counters
Add perf counters tracking the number of inbound pushes along with the
amount of data in each request.

Signed-off-by: Mike Ryan <mike.ryan@inktank.com>
2012-09-27 13:26:05 -07:00
Samuel Just
3f952afe5d PG: explicitely delay ops on backfill_pos
Previously, we considered backfill_pos degraded in order to delay
ops since a write to backfill_pos could generate a snap before
backfill_pos, and we assume that (0, backfill_pos) is fully
backfilled.  This is a problem since it's possible that
backfill_pos is a valid object, but not one that currently exists.
For example, it might have been deleted since last_backfill was
last changed.  Instead, we will explicitly delay ops on
backfill_pos in waiting_for_backfill_pos.

This error resulted in #2691 since wait_for_degraded_object also
attempts to recover the object. At this point, the primary would
attempt to recover the object, find that it isn't there, and put
it in the missing set with need=0,0.  Eventually, recover_primary
attempts to recover that object, finds that it has been deleted
in the log, and asserts.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2012-09-27 13:21:53 -07:00
Sage Weil
a351f7a1f4 Merge remote-tracking branch 'gh/wip_backfill_full2'
Conflicts:
	src/include/ceph_features.h
2012-09-27 13:21:23 -07:00
Samuel Just
0a2f827850 PG: last_complete might be outside of the log
When we encounter a divergent log entry, we put the
object into the missing set at the prior_version
for the divergent event.  Unfortunately, the event
at prior_version might have been trimmed leaving
the missing set with an item with a need prior to
log_tail.  Thus, last_complete also ends up being
prior to log_tail.

Caused #3208.

There is another bug related to this one: #3213.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2012-09-27 13:20:35 -07:00