Commit Graph

11455 Commits

Author SHA1 Message Date
Sage Weil
6679c27459 osd: move to boot state if down OR wrong address in map
Saw an OSD that was up in the map, but the address didn't match.  Caused
all kinds of strange behavior.  I'm not sure what I had in mind when the
original test only checked for down AND same address before moving to boot
state, since having the wrong address is clearly bad news.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-07 16:17:09 -07:00
Sage Weil
6545f3ca1c cdebugpack: behave when /bin/sh is dash
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-07 09:47:34 -07:00
Sage Weil
af749e62cb cdebugpack: man page
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-07 09:38:37 -07:00
Sage Weil
9805eb5b6b cdebugpack: include cdebugpack.XXXX dir in tarball
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-07 09:31:31 -07:00
Sage Weil
2c49ac4d46 cdebugpack: include .tar.gz in usage filename 2010-10-07 09:31:13 -07:00
Sage Weil
3b1b8f89ff cdebugpack: include in deb, rpm 2010-10-07 09:25:26 -07:00
Sage Weil
f10906b3fd mds: respawn (instead of suicide) on being marked down
This makes temporarily laggy daemons will restart and rejoin the cluster
in standby mode.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-07 07:52:50 -07:00
Sage Weil
a2bcb419c4 debug: always append to log
We were truncating if we were in log_per_instance mode.  But normally those
logs don't exist.  And if they do, we probably don't want to truncate
them.  This is particularly true if we respawn ourselves (e.g. after being
marked down) and restart with the same pid.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-07 07:52:02 -07:00
Sage Weil
a7deada229 init-ceph: DTRT when cconf returns host = localhost
cconf behavior was just changed by bcf1bdef56

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-07 07:28:58 -07:00
Yehuda Sadeh
a18213d6fa debugpack: add ceph-pg-dump 2010-10-06 20:30:11 -07:00
Yehuda Sadeh
f6e49cbbc2 cdebugpack: save some more info
ceph.conf
ceph -s
ceph osd dump
ceph mds dump
2010-10-06 20:04:38 -07:00
Greg Farnum
8b716c6db8 mds: Check the lock state, not the inode state!
This was causing a lot of slowdowns.
Additionally, pin the inode when exporting caps -- otherwise it could
disappear out from under a cap ack. This was probably just exposed
by fixing the lock check.
2010-10-06 16:42:22 -07:00
Sage Weil
48196f91f0 Merge branch 'testing' into unstable
Conflicts:
	src/osd/ReplicatedPG.cc
2010-10-06 13:42:04 -07:00
Sage Weil
e5882981b5 osd: fix pull completion tests, again
op->complete==false is inconclusive.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-06 13:21:07 -07:00
Sage Weil
47f2efb2c3 osd: log error instead of crashing on failed pull attempt
If peering screws up and the primary mistakenly tries to pull an object
from us we don't have, log an error instead of crashing.  This will still
throw off recovery (it will hang), but that's better than crashing
outright.
2010-10-06 13:21:05 -07:00
Sage Weil
f6b47e386d osd: clean out redundant (and wrong) complete calculation
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-06 13:01:16 -07:00
Sage Weil
1bb60b45a8 osd: make sparse data/clone push behave with partial object push
We can't error out if we don't get everything we want in one go now that
we support pushing objects in pieces.  Remove this check entirely, since
we don't have a good error handling case anyway.
2010-10-06 13:01:13 -07:00
Sage Weil
5ef975629b Merge branch 'osd_lost_objects' into unstable 2010-10-06 09:45:16 -07:00
Yehuda Sadeh
ed3976ce56 rgw: change default content type to binary/octet-stream 2010-10-06 00:06:51 -07:00
Sage Weil
1f94a8fed5 monclient: fix leaks in build_initial_monmap address lookup
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 22:04:13 -07:00
Sage Weil
7935e30e34 monclient: fix off-by-one buffer overrun
Still leaked, though.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 22:02:55 -07:00
Sage Weil
16f053f7f5 addr_parsing: remove unused mount_path logic
This was breaking parsing if any of the hosts included a ":port" too.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 22:01:34 -07:00
Sage Weil
b277497986 Merge remote branch 'origin/testing' into unstable 2010-10-05 16:47:37 -07:00
Sage Weil
6a53d7337c Merge branch 'unstable' of ssh://ceph.newdream.net/home/sage/ceph.newdream.net/git/ceph into unstable 2010-10-05 16:47:34 -07:00
Yehuda Sadeh
109dcdf6aa cdebugpack: add a utility to generate a debug package 2010-10-05 16:26:58 -07:00
Sage Weil
4bc4cba575 osd: ignore info queries on deleting pgs
Since we cancel deletion on pg change, we will only receive these from
old primaries, so we can safely ignore.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 15:47:13 -07:00
Sage Weil
a4eb59969a osd: cancel deletion on pg change
If the primary changes, cancel deletion so that the new primary has the
benefit of considering whether they need anything we have.  Before we were
only canceling if our role changed, but that makes little sense.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 15:47:08 -07:00
Sage Weil
ed2eee54e6 config: fix address list parsing
Skip past comma, whitespace.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 15:47:04 -07:00
Colin Patrick McCabe
414bc4f9fb cmon: better error handling
If we can't create the mon0/magic file, show an error message rather
than calling assert(). These cases are probably cluster configuration
problems.

Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2010-10-05 15:44:25 -07:00
Yehuda Sadeh
bcf1bdef56 conf: cconf return default values from config.cc if not found 2010-10-05 15:02:01 -07:00
Sage Weil
12373a6e75 mds: allow do_null_snapflush on multiversion inodes
The _do_snap_update() can handle a multiversion inode.  Behave when
_do_null_snapflush() encounters one.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 12:38:43 -07:00
Yehuda Sadeh
e064796bea signal handlers: be more elaborate about caught signals 2010-10-05 12:26:17 -07:00
Sage Weil
22c38466d0 mds: don't call mrk_dirty_rstat for base/root inodes
Base inodes have no parent.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 12:16:02 -07:00
Sage Weil
d600596aaf mds: fix EMetaBlob dir_layout lifecycle
Initialize, delete pointer.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 11:54:25 -07:00
Sage Weil
11a24f5e91 mds: set root dir_layout during mkfs
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 11:54:25 -07:00
Sage Weil
09b2db7368 mds: use helper to update inode from EMetaBlob during replay
Removes 3 copies of this code.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 11:54:25 -07:00
Sage Weil
f5958ad52e mds: set dir layout during replay
Need to copy layout from the EMetaBlob::fullbit into the inode.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 11:54:25 -07:00
Sage Weil
cdc2b89869 mds: set root inode default_file_layout on mkfs
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 11:54:24 -07:00
Sage Weil
994525adf5 mds: fix typo in EMetaBlob encoder
This was wrongly setting the dir_layout_exists flag to true.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 11:54:24 -07:00
Sage Weil
50d91f628f osd: less chatty in log about caps 2010-10-05 11:54:24 -07:00
Sage Weil
95e273a667 mds: zero inode layout for dirs
These aren't used for anything.

Also rename the default_dir_layout to _log_, since that's all that we now
use it for.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 11:54:24 -07:00
Yehuda Sadeh
3e56ac4b37 dump backtrace when getting sigsegv and sigabrt 2010-10-05 12:05:00 -07:00
Greg Farnum
e4d86f3163 client: Fix truncate_seq/truncate_length initialization.
Initializing to 0 was causing file_to_extents to get called on every inode
since the MDS initializes truncate_seq to 1 and truncate_length to -1.
This revealed itself as a crash on directory inodes, which have their
layouts zeroed since merging the file_layouts branch.
To make clearer, assert that anything being truncated is a file inode.
2010-10-05 11:20:26 -07:00
Greg Farnum
ede37634c8 mds: fix LocalLock xlocking by replacing default 2010-10-05 11:20:26 -07:00
Sage Weil
f4581e0d96 mds: fix ESession/ESessions event id type again
Not sure how many times we've screwed this one up!

Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 10:12:59 -07:00
Sage Weil
ff463df55d filestore: drop unused parse_coll() declaration
Signed-off-by: Sage Weil <sage@newdream.net>
2010-10-05 09:57:18 -07:00
Sage Weil
c3d3b42260 Merge branch 'testing' into unstable
Conflicts:
	src/mds/Locker.cc
2010-10-04 11:21:51 -07:00
Greg Farnum
7aab70ddc4 Merge branch 'file_layouts' into unstable
Conflicts:
	src/mds/CInode.cc
	src/mds/CInode.h
	src/mds/MDCache.cc
	src/mds/SimpleLock.h
2010-10-04 11:08:14 -07:00
Greg Farnum
2b4eb4ab7b add set layout ops to ceph_strings 2010-10-04 11:04:50 -07:00
Greg Farnum
8938f27127 cephfs: Wrote and committed cephfs 2010-10-04 11:04:45 -07:00