Commit Graph

16741 Commits

Author SHA1 Message Date
Sage Weil
05dae94fb2 Revert "config: base default libdir, sysconfdir off autoconf values"
This reverts commit 7e5dee907a.
2011-10-12 11:14:39 -07:00
Sage Weil
7e5dee907a config: base default libdir, sysconfdir off autoconf values
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-12 09:34:02 -07:00
Yehuda Sadeh
e07b956b84 rgw: implement some missing swift api, other swift fixes 2011-10-11 15:06:34 -07:00
Yehuda Sadeh
5790a363d8 rgw: encoded swift key contains full user name 2011-10-11 12:31:48 -07:00
Yehuda Sadeh
f883e6382f rgw: multiple swift keys per user 2011-10-11 12:31:48 -07:00
Samuel Just
9b18e55e86 PG,OSD: clean up xlist::items on pg removal
Should take care of #1599.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-10-11 11:39:07 -07:00
Sage Weil
b43b864502 osd: fix race between op requeueing and _dispatch
If a message is working it's way through _dispatch, and another thread
requeues waiting messages under pg->lock (e.g.
osd->take_waiting(waiting_for_active)), the requeued ops are processed
after the one _dispatch() is chewing on, breaking client ordering.

Instead, add a new OSD::requeue_ops() that reinjects ops back into the
op queue by feeding them to the _handle_*() helpers.  Those do last minute
checks before enqueuing the ops.

Fixes: #1490 (again)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-11 11:16:50 -07:00
Sage Weil
f7ec9f79f7 thread: whitespace
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-11 11:16:50 -07:00
Sage Weil
fc3aac6b97 filestore: clean up error output
No color codes in the logs!

Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-11 11:08:04 -07:00
Sage Weil
cd2dedd7d1 filestore: tolerate missing current/
We remove it anyway.  If it's missing entirely, just continue and roll
back to the latest snap_ when the user passes --osd-use-stale-snap.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-11 11:08:02 -07:00
Sage Weil
3f619ddb55 ceph.spec.in: fix radosgw files
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-10 19:11:45 -07:00
Sage Weil
468c7dce79 rgw: find fcgi headers in /usr/include or /usr/include/fastcgi
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-10 19:11:45 -07:00
Sage Weil
032dd84c3c ceph.spec.in: more updates to make build.opensuse.org happy
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-10 19:11:45 -07:00
Sage Weil
465f1bf18b ceph.spec.in: add init-radosgw back
Accidentally took this out a few patches back.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-10 19:11:22 -07:00
Sage Weil
52bad62d03 rgw: push log list|show|rm into RGWStore
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-10 11:51:27 -07:00
Sage Weil
93a88150bd radosgw-admin: push log listing into RGWRados
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-10 11:51:22 -07:00
Sage Weil
69e9f51d3f rgw: chdir to dir in conf (default /)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-10 11:51:19 -07:00
Sage Weil
930d57f864 rgw: push intent log processing into RGWRados layer
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-10 11:51:16 -07:00
Sage Weil
d7f7a21354 librbd: don't return >32bit value from copy().
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-10 11:51:09 -07:00
Greg Farnum
42ac18cd6b .gitignore: test_libhadoopcephfs build
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-10-10 10:55:52 -07:00
Greg Farnum
968b09095d Merge branch 'master' of github.com:NewDreamNetwork/ceph 2011-10-10 10:55:10 -07:00
Sage Weil
9ec60b4dc4 librbd: fix overflow on large large image copy
Fixes: #1611
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-10 11:04:30 -07:00
Sage Weil
b6c4615866 librbd: slightly cleaner
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-10 11:03:26 -07:00
Sage Weil
7060efa9ba librbd: fix copy progress
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-10 09:50:33 -07:00
Greg Farnum
61855170a7 hadoop: get the right class member, and ask for it properly.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-10-09 16:28:00 -07:00
Sage Weil
dc40b37403 auth: move AuthAuthorizeHandler registry into class
Static classes with constructors and destructors are dangerous.  Explicitly
manage these as part of the server components (OSD, MDS).

Fixes: #1608
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 16:47:35 -07:00
Samuel Just
11a1d601f5 OSD,ReplicatedPG: expire and cleanup unconnected watchers
During handle_notify_timeout or ms_handle_reset, watchers are now marked
unconnected via pg->register_unconnected_watcher. A safe timer event has
been added to trigger OSD::handle_watch_timeout.
remove_watchers_and_notifies (called on role change) cleans up these
events before peering.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-10-07 16:07:09 -07:00
Greg Farnum
9d846d33b2 move ceph_mount call 2011-10-07 14:37:10 -07:00
Sage Weil
039035b366 osd: discard requests that from disconnected clients
If we can't reply, throw out the request; they'll need to resend it anyway.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 14:29:36 -07:00
Sage Weil
88de6ab53b ceph.spec.in: handle docdir properly
Pass correct path to configure (fixes SuSE builds).

Use %doc command to install sample.ceph.conf and sample.fetch_conf.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 14:29:35 -07:00
Josh Durgin
0121bcd2f8 clitests: add test case for crush exhaustive search
This detects the bug that caused #1594.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-10-07 14:13:37 -07:00
Sage Weil
e5db7b243c Makefile: only reset docdir if it's not already defined
This is only for old versions of automake, and won't work for ancient
SuSe.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 13:13:29 -07:00
Sage Weil
2f877f8220 crushtool: fix --weight arg parsing
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 13:03:00 -07:00
Sage Weil
8ff1cbb5c9 crushtool: add --force N
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 13:02:49 -07:00
Sage Weil
af6a9f3069 crush: try _all_ bucket items when doing exhaustive search
N-1 isn't exhaustive.

Fixes: #1594
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 12:54:59 -07:00
Sage Weil
5a23694240 ceph.spec.in: build on suse
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 11:10:46 -07:00
Sage Weil
6e29c28260 mon: tolerate 50ms (instead of 10ms) of clock drift
NTP on sepia can't manage 10ms, it seems.  Sigh.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-07 09:53:52 -07:00
Sage Weil
ff31d3cca0 rgw: fix printf format warning
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-07 09:32:34 -07:00
Sage Weil
8be9450b31 rgw: make log object naming configurable
Use date(1) codes for object name, plus %i and %n for bucket id/name, and
make UTC vs localtime configurable.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 17:39:40 -07:00
Sage Weil
3d2f89fac2 mon: make other send_incremental variant handle map discontinuity
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 16:17:14 -07:00
Sage Weil
64935d4c24 auth: fix authorizer leak fix
We were never reusing the authorizer, so make it local.  This fixes a crash
(double-free) on reset().

Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 16:17:14 -07:00
Sage Weil
6e04f60ed4 mon: fix osdmap trimming unsigned overflow
This was trimming way to aggressively for early epochs due to the unsigned
version overflowing.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 16:17:14 -07:00
Sage Weil
4fe9cca5dd objecter: cope with missing osdmaps in history
Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-06 16:17:14 -07:00
Josh Durgin
b344d7979b osd, pg: ignore responses to obsolete queries
This adds a query_epoch to notify and log messages, which are
sent in response to queries from the primary during peering. To
guarantee we don't try to process old logs and notifies after
restarting peering, query_epoch is set to the epoch at which the
query was sent. If query_epoch is less than last_peering_reset,
the primary discards the message.

This caused a "bad state machine event" crash in the following
scenario:

1. Primary tells a stray to generate a backlog at epoch 199.
2. The up set changes because a stray goes up.
3. Primary restarts peering at epoch 200.
4. Stray gets new map for epoch 200, sees that acting set did not
change, and sends log to primary.
5. Primary crashes.

Related to #1403, #1449
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-10-06 15:45:36 -07:00
Josh Durgin
ad48ada8c4 pg: rename warm_restart and last_warm_restart
These names make more sense, since last_warm_restart was updated
outside of the warm_restart function.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-10-06 15:45:36 -07:00
Samuel Just
85bbc2f993 .gitignore: add multi_stress_watch
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-10-06 15:59:47 -07:00
Samuel Just
6bfae03ad9 ReplicatedPG: assert *_FLUSHING unreachable for AccessMode
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-10-06 14:51:21 -07:00
Samuel Just
5840ae46e2 test/multi_stress_watch.cc: add watch notify tester for teuthology
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-10-06 14:51:21 -07:00
Sage Weil
088d0dfa56 qa: rados-api: try harder to make these pool names unique
Still getting -17 sometimes on sepia... :/

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-06 13:56:58 -07:00
Sage Weil
646ef6aaac xlist: more assertive
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-10-06 13:39:33 -07:00