Commit Graph

16419 Commits

Author SHA1 Message Date
Tommi Virtanen
7f301510c2 doc: Fix reStructuredText formatting warnings.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:01 -07:00
Tommi Virtanen
3fe96beca7 Makefile: c* -> ceph-* rename: missed cdebugpack in CLEANFILES.
make distcheck said:

  ERROR: files left in build directory after distclean:
  ./src/ceph-debugpack
  make[1]: *** [distcleancheck] Error 1

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:01 -07:00
Tommi Virtanen
8506c5b3f3 Makefile: Add missing header test/unit.h
Used to fail "make distcheck".

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:01 -07:00
Tommi Virtanen
d32592e4d8 .gitignore: distcheck temporary directory.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:01 -07:00
Tommi Virtanen
e35d9de04d Makefile: include run-cli-tests-maybe-unset-ccache in dist tarball.
Apparently "make distcheck" has been broken for 3 months;
I find that hard to believe, but that's what it looks like.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:01 -07:00
Tommi Virtanen
a62108bfcc ceph-run: c* -> ceph-* rename: Use ceph-run as stderr prefix.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:01 -07:00
Tommi Virtanen
0c2cfa1890 ceph-debugpack: c* -> ceph-* rename: use "ceph-debugpack" as temp dir name too.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:01 -07:00
Tommi Virtanen
da8fa7837a udev: c* -> ceph-* rename: missed crbdnamer.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:01 -07:00
Tommi Virtanen
3fd3c6be03 debian: c* -> ceph-* rename: missed csyn, crbdnamer.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:01 -07:00
Tommi Virtanen
dea14f7e40 rpm: c* -> ceph-* rename: missed crbdnamer, cdebugpack.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:01 -07:00
Tommi Virtanen
98b55b3003 Makefile: c* -> ceph-* rename: missed crun.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:01 -07:00
Tommi Virtanen
1ce18d3ae3 doc: v0.35 is out, remove rpm build workaround.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:01 -07:00
Tommi Virtanen
c4166492ab doc: Add index into the sidebar.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:01 -07:00
Tommi Virtanen
b2d46ef35a doc: Search page is always in sidebar, no need to have it on page.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:01 -07:00
Tommi Virtanen
8ca4c5a143 doc: Add a space after sudoers "NOPASSWD:", as that seems more common.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:01 -07:00
Tommi Virtanen
76fbdfb3dd doc: Add index entries, remove glossary as it's practically replaced by the index.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:00 -07:00
Tommi Virtanen
65d2c49943 doc: Leftovers of the c* -> ceph-* rename.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-23 15:55:00 -07:00
Greg Farnum
05b06e807e rgw: tolerate missing content-length header on canned ACL puts
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-09-23 15:19:41 -07:00
Henry C Chang
e0be65cf0e mon: remember source client address in routed requests
when we resend_routed_requests, the source client address is lost.
This may cause problems. For example, if we resend an mds beacon
(boot) to a new monitor leader, the new mdsmap will contain a new
mds entry without IP address.

To reproduce this bug:
1. deploy a cluster with 3 mons.
2. let active mds send beacon to mon0; standby mds send becaon to mon2
3. gdb attach to mon2 to make it unresponsive and make standby mds laggy.
4. gdb attach to mon0 to make it unresponsive and make active mds laggy.
5. detach mon2, then the standby mds will become active.
6. ceph mds dump -o - shows the active mds address is :/0

Signed-off-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-23 12:55:55 -07:00
Sage Weil
878fedbbac osd: fix race between handle_osd_ping and handle_osd_map
If handle_osd_map is in progress and handle_osd_ping doesn't have the
map lock, we can't call osdmap->get_inst() in send_still_alive().  Keep
the entity_inst_t in the failure_pending map so that we don't need to.

osd/OSDMap.h: In function 'entity_inst_t OSDMap::get_inst(int)', in thread '0x7fda6a46b710'
osd/OSDMap.h: 477: FAILED assert(is_up(osd))
 ceph version 0.24.1 (commit:e06fb657842379259826f3d9215101fc14575fbd)
 1: (OSD::send_still_alive(int)+0x1b9) [0x4dd1b9]
 2: (OSD::handle_osd_ping(MOSDPing*)+0x716) [0x4f6446]
 3: (OSD::heartbeat_dispatch(Message*)+0x36) [0x4f6666]
 4: (SimpleMessenger::dispatch_entry()+0x882) [0x46f002]
 5: (SimpleMessenger::DispatchThread::entry()+0x1c) [0x465fac]
 6: (()+0x6a3a) [0x7fda7835aa3a]
 7: (clone()+0x6d) [0x7fda76f7777d]

Reported-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-23 12:55:55 -07:00
Sage Weil
dd8d4ecd20 Makefile: drop useless all_sources thing
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-09-23 10:04:52 -07:00
Sage Weil
0fdc86389a rename source files c* -> ceph-*
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-09-23 10:04:52 -07:00
Henry C Chang
5369c776d0 misc: use strncpy to prevent buffer overflow 2011-09-23 09:42:43 -07:00
Henry C Chang
4b8cf145c3 ceph-elaster: add parentheses around macros 2011-09-23 09:40:53 -07:00
Sage Weil
1707181658 test_store: parse args, don't link librados
Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-23 09:40:19 -07:00
Sage Weil
c55232392a Merge branch 'stable' 2011-09-22 16:20:02 -07:00
Sage Weil
f9c3cb10f1 Merge branch 'wip-names' 2011-09-22 16:19:50 -07:00
Sage Weil
bfbda96442 man: rebuild manpages
Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-22 16:18:37 -07:00
Sage Weil
3e9a936062 doc: more c* -> ceph-* renames
Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-22 16:18:37 -07:00
Josh Durgin
ba9271ca31 rbd: set default pool when none is specified
096e3b6353 broke this by only using
set_pool_image_name for commands that accept the snapshot
parameter. This whole undocumented format parsing should be reworked
or removed at some point.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-09-22 15:40:16 -07:00
Sage Weil
fba541e4e8 libceph -> libcephfs
Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-22 15:08:25 -07:00
Sage Weil
6f8f140350 c* -> ceph-*
Hopefully I didn't miss too much...

Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-22 15:08:25 -07:00
Sage Weil
97aa1aab7b mount.ceph: use ":/" instead of just ":" as ip/path delimiter
This is tolerant of colons in the mount subdir.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-22 14:47:45 -07:00
Sage Weil
e124b15bc4 addr_parsing: null terminate safe_cat result
Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-22 14:47:33 -07:00
Sage Weil
17b2451a64 mount.ceph: fix use-after-free
Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-22 14:47:30 -07:00
Samuel Just
ac1a40d174 test/rados-api/test.cc: Add ability to set client id
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-09-22 13:20:03 -07:00
Samuel Just
4686b56dfa test/test_stress_watch.cc: added simple watch stress test
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-09-22 13:18:48 -07:00
Samuel Just
5503d45017 PG: set log.backlog to false on corrupt log
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-09-22 09:57:25 -07:00
Samuel Just
a01a947a21 PG: set log.backlog to false on corrupt log
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-09-22 09:56:25 -07:00
Sage Weil
8cb574626e vstart: debug filestore = 20
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-09-21 16:27:06 -07:00
Sage Weil
68fe748fc2 osd: fix PG::copy_after vs backlog
If you call copy_after(..., 0) on a log with a backlog, you get all the
backlog entries, but no backlog flag.  That's invalid.  You either need
the _complete_ backlog + the flag, or no backlog entries; getting only
some of them is useless information.

Make copy_after stop when it hits the tail.  Callers who need the backlog
are already checking for that and copying the whole log as appropriate.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-09-21 16:27:06 -07:00
Sage Weil
ca63faf551 mds: fix traverse snap vs forward check
This should compare against the forward attempt, not retry attempt.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-09-21 16:27:06 -07:00
Sage Weil
82a1935197 rbd: fix progress redraw
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-09-21 16:27:06 -07:00
Tommi Virtanen
f488908c79 doc: Content for Getting Started with cephfs and rbd.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-21 14:55:11 -07:00
Tommi Virtanen
69fabca63d doc: Content for Getting Started with RADOS.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-21 13:46:04 -07:00
Tommi Virtanen
c3fae7e777 doc: Structure for Getting Started.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-21 13:46:04 -07:00
Tommi Virtanen
47dfe29fab doc: Separate key management from mounting.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-21 13:46:04 -07:00
Tommi Virtanen
c01d36cf5a doc: Move config reference to top-level.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-21 13:46:04 -07:00
Tommi Virtanen
093f4f3307 doc: Split data placement into concrete operations and recommendations.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-21 13:46:04 -07:00
Tommi Virtanen
bc9477af43 doc: Reorganize ops/manage/
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-21 13:46:04 -07:00