Commit Graph

25628 Commits

Author SHA1 Message Date
John Wilkins
661278523a doc: Added openssh-server mention, corrections, hyperlink fix.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-28 14:59:51 -07:00
John Wilkins
21db055e8d doc: Added openssh-server mention.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-28 14:59:17 -07:00
John Wilkins
9fa6ba792e doc: Added manpage link and hidden TOC.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-28 14:58:45 -07:00
John Wilkins
dd6e79aa77 doc: Removed installed Chef. This is now in the ceph wiki.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-28 14:58:08 -07:00
John Wilkins
945dac6580 doc: Removed text for include directive. Wasn't behaving the way I'd hoped.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-28 14:57:44 -07:00
John Wilkins
3d9bc46945 doc: Added ceph-mds to CephFS toc.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-28 14:57:03 -07:00
John Wilkins
44d13a76a9 doc: Fix. ceph, not chef.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-27 22:28:42 -07:00
Sage Weil
5327d06275 ceph-filestore-dump: fix warnings on i386 build
tools/ceph-filestore-dump.cc: In member function ‘int header::get_header()’:
warning: tools/ceph-filestore-dump.cc:454:19: comparison between signed and unsigned integer expressions [-Wsign-compare]
tools/ceph-filestore-dump.cc: In member function ‘int footer::get_footer()’:
warning: tools/ceph-filestore-dump.cc:471:19: comparison between signed and unsigned integer expressions [-Wsign-compare]
tools/ceph-filestore-dump.cc: In member function ‘int super_header::read_super()’:
warning: tools/ceph-filestore-dump.cc:697:30: comparison between signed and unsigned integer expressions [-Wsign-compare]

Signed-off-by: Sage Weil <sage@inktank.com>
2013-04-27 17:59:24 -07:00
Gary Lowell
50e58b9f49 ceph.spec.in: remove conditional checks on tcmalloc
tcmalloc is available on all supported platforms now.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-04-26 16:05:25 -07:00
Gary Lowell
5c1782a57c debian/rules: Fix tcmalloc breakage
Since all currently supported platforms have tcmalloc
available and it is now the default, remove broken check code
that turns it off if the package is not listed in build-depends.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-04-26 16:04:52 -07:00
Sage Weil
6d348a1ef2 mon: cache osd epochs
The monitor may get a series of messages from the OSD that prompt it to
send incremental maps (pg_temp updates, failures, probably more).  Avoid
sending the same incremental maps twice by keeping a cache of what epochs
we think the OSDs have.

This reduces monitor load, especially when the mon is a bit behind and is
getting a stream of delayed messages, and the work associated with sending
the inc maps prevents it from catching up.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-04-26 16:04:16 -07:00
Greg Farnum
0650fa956a monitor: assert out early if we get our own sync_start back
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-04-26 15:27:51 -07:00
Greg Farnum
1e6f02b337 mon: update assert for looser requirements
Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-04-26 15:24:05 -07:00
John Wilkins
ba13173b7f doc: Deleted old index. Generates warnings otherwise.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-26 14:07:55 -07:00
John Wilkins
9a7a0753cf doc: General purpose pre-flight checklist.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-26 14:07:34 -07:00
John Wilkins
9e775f15d7 doc: Modified Ceph deployment landing page.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-26 14:07:03 -07:00
John Wilkins
fb8119ce44 doc: Added general pre-flight checklist for ceph-deploy.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-26 14:06:26 -07:00
John Wilkins
3433aa8f24 doc: Removed old ceph-deploy placeholder.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-26 14:06:04 -07:00
John Wilkins
9c0c4c176b doc: Removed Chef section. Now appears in new Ceph wiki.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-26 14:05:37 -07:00
John Wilkins
c25144e89a doc: Added Key Management for ceph-deploy.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-26 14:05:06 -07:00
John Wilkins
d0d1554a8e doc: Added "Add/Remove Monitors" section for ceph-deploy.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-26 14:04:43 -07:00
John Wilkins
f24dbdefa4 doc: Added Create a Cluster section.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-26 14:04:16 -07:00
John Wilkins
b631cc6713 doc: Added ceph-deploy package management (install | uninstall ) section.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-26 14:03:44 -07:00
John Wilkins
d85c6904db doc: Added new quick start preamble and index.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-26 14:02:42 -07:00
John Wilkins
3ff7eef99d doc: Added ceph-deploy preflight.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-26 14:01:46 -07:00
John Wilkins
9365674036 doc: Added ceph-deploy quick start.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-04-26 14:01:20 -07:00
David Zafman
e0c39c1e21 Merge branch 'wip-4822' into next
Reviewed-by: Sam Just <sam.just@inktank.com>
2013-04-26 13:31:48 -07:00
Greg Farnum
ebbdef29fa monitor: squash signed/unsigned comparison warning
This is a safe range to do comparisons against, and we compare
against the signed rank inside the loop.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-04-26 12:37:03 -07:00
Greg Farnum
5fa3cbf520 mon: use brute force to find a sync provider if our first one fails
We try and select a random monitor first, but if that fails we should
make sure that nobody's available before asserting.

Fixes #4812

Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-04-26 12:32:10 -07:00
Yehuda Sadeh
56ac098b88 Merge branch 'wip-4760' into next 2013-04-26 12:33:03 -07:00
Sage Weil
a92b4c7558 Merge branch 'wip-mon-fwd' into next
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-04-26 12:24:31 -07:00
Yehuda Sadeh
c880e9578e rgw: fix compilation for certain architectures
Casting.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-04-26 12:10:14 -07:00
Yehuda Sadeh
a8b1bfa1cc rgw: fix list buckets limit
There was an issue when limit was being set, we didn't
break from the iterating loop if limit was reached. Also,
S3 does not enforce any limit, so keep that behavior.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-04-26 12:10:14 -07:00
Yehuda Sadeh
f2df87625c rgw: fix bucket listing when reaching limit
Bucket listing was broken when limit was set.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-04-26 12:10:14 -07:00
Yehuda Sadeh
2264078a61 rgw: swift list containers can return 204
In order to keep compatibility with swift, if a plain formatter
is being used, we should return 204 when there are no containers.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-04-26 12:10:14 -07:00
Yehuda Sadeh
960eac2600 rgw: fix plain formatter flush
The plain formatter flush needs to append eol if needed, and
not to clear the sections stack.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-04-26 12:10:14 -07:00
Yehuda Sadeh
7144ae8624 rgw: fix bucket count when stating account
We need to add up the num of buckets and not just set it
as we don't read the entire list of buckets in one operation.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-04-26 12:10:14 -07:00
Yehuda Sadeh
1670a2bffb rgw: trivial cleanups post code review
Following code review of #4760.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-04-26 12:10:14 -07:00
Dan Mick
98f532e800 Makefile.am: Add -lpthread to fix build on newer ld in Raring Ringtail
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-04-26 12:05:22 -07:00
Sage Weil
cbc3b91cef mon: mark PaxosServiceMessage forward fields deprecated
These are no longer used; we manage forward state explicitly via the
Monitor sessions instead.  Mark them deprecated so we don't accidentally
rely on them.  Also, fix the annoying "mon.-1" garbage debug output that
is confusing.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-04-26 10:48:49 -07:00
Sage Weil
77c068d1af mon: fix double-forwarding check
The PaxosServiceMessage fields are no longer filled in.  Use Session::proxy_con
instead.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-04-26 10:48:10 -07:00
David Zafman
e3b602adf7 osd: Fix logic in OSDMap::containing_subtree_is_down()
Check for up OSDs as we walk up the crushmap hierarchy

fixes: #4822

Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-04-26 10:24:43 -07:00
Dan Mick
a2a23ccd95 debian/rules: use multiline search to look for Build-Depends
When Build-Depends was split into multiple lines (in commit
8f5c665744), the grep for
libgoogle-perftools-dev broke.  Replace grep with perl for multiline
matching.

Fixes: #4818
Signed-off-by: Dan Mick <dan.mick@inktank.com>
(cherry picked from commit 89692e099f)
2013-04-26 10:19:04 -07:00
Sage Weil
f768fbba24 client: re-fix cap releases
Encode cap releases if NOT replay.  <facepalm>  Thanks, Greg!

Signed-off-by: Sage Weil <sage@inktank.com>
2013-04-26 10:12:37 -07:00
Sam Lang
5121e56c25 client: don't embed cap releases in clientreplay
If the client is sending replay requests, avoid sending embedded caps,
since the mds already has the client's caps from the reconnect.
This matches the behavior of the kernel client.

Fixes #4742.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-04-26 09:51:45 -07:00
Sage Weil
2146930ef0 mon: do not forward other mon's requests to other mons
The request forwarding infrastructure is there for client requests.
However, we (ab)use it for mon's sending MLog messages: LogClient sends an
MLog message to itself, and that is either handled locally (if leader) or
forwarded to the leader.

If that races with an election, we were forwarding an MLog from another mon
to the leader.  This is not necessary; the original MLog sender will resend
the request on election_finish() to the latest leader.

The fix is to adjust forward_request_leader() to only forward messages from
a mon if that mon is itself.

This was reproduced while testing the fix for #4748.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-04-25 16:47:15 -07:00
Samuel Just
a5cade1fe7 PG: clear want_acting when we leave Primary
This is somewhat annoying actually.  Intuitively we want to
clear_primary_state when we leave primary, but when we restart
peering due to a change in prior set status, we can't afford
to forget most of our peering state.  want_acting, on the
other hand, should never persist across peering attempts.
In fact, in the future, want_acting should be pulled into
the Primary state structure.

Fixes: #3904
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
2013-04-25 16:24:41 -07:00
Sage Weil
3ce35a6743 mon: get own entity_inst_t via messenger, not monmap
There are intervals during bootstrap(*) during which we are part of the
monmap, but our name (mon->name) does not match the monmap's.  This means
that calling monmap->get_inst(mon->name) is not a safe way to get our own
entity_inst_t.

Instead, use messenger->get_myinst().  This includes our addr (obviously)
and an up-to-date entity_name_t, too: in bootstrap we adjust the messenger
name at the same time as mon->rank, based on the contents of the monmap.

monmap->get_inst(mon->rank) would work too.

* During mkfs, the monmap may have noname-foo instead of the name if it was
  generated from the mon_host lines or dns or whatever by
  MonMap::build_initial().  This was the case for #4811.

Fixes: #4811
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-04-25 15:18:55 -07:00
Sage Weil
b0ba41235a Merge pull request #239 from ceph/wip-4760
#4760

Second patch Reviewed-by: Sage Weil <sage@inktank.com>
2013-04-25 13:11:59 -07:00
Sage Weil
42ab1f4561 Merge pull request #246 from ceph/wip-4793
#4793

Reviewed-by: Sage Weil <sage@inktank.com>
2013-04-25 11:52:30 -07:00