Commit Graph

10859 Commits

Author SHA1 Message Date
Sage Weil
41cd1ea5b4 osd: don't mark down old _to peers that are still _from peers
It's harmless, but not ideal.
2010-08-26 12:31:53 -07:00
Sage Weil
d273c99d71 osd: always mark down old hb peers; send map update via cluster link
If we don't mark down the hb link immediately, we'll forget about it
because it won't be in the from or to set anymore, and if it does go down
later we'll end up with garbage in the logs.

Instead, always mark it down.  Since we want to share our map with old
peers that are still up, do that via the cluster link instead, which is
reliably marked down if/when the peer goes down.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-26 11:28:25 -07:00
Sage Weil
7d1179e656 filejournal: clean up journal initialization sequence, error codes, output
EOPNOTSUPP was getting returned to the user without much explanation.  This
should fix that!
2010-08-26 10:00:18 -07:00
Sage Weil
49636759b0 debian: don't need to add .git_version in release script 2010-08-25 14:46:36 -07:00
Sage Weil
7fde620487 makefile: include .git_version in tarball 2010-08-25 14:45:55 -07:00
Sage Weil
b33c0511f9 mon: error out gracefully when we can't read the magic 2010-08-25 14:42:06 -07:00
Henry C Chang
d636223b29 msgr: release dispatch_throttle on reset connection
Signed-off-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-22 21:39:35 -07:00
Sage Weil
f669adb0ab mds: drop old thrash_exports time limit 2010-08-20 09:57:07 -07:00
Sage Weil
cfdc5f0ef2 osdmaptool: print useful error instead of crashing if osdmap is corrupt 2010-08-20 09:31:49 -07:00
Sage Weil
ec80b10f28 crush: return error instead of BUGing on bad forcefed mapping
The forcefed mapping relies on a parent map.  However, the current
implementation assumes that the parent mapping is unique for all rules. If
that is not the case (i.e., some osd exists in multiple hierarchies) then
we cannot assert that the TAKE matches the calculated force_context.

For now, we can just fail the mapping in that case (we don't use forcefed
mappings yet).  The real solution is probably to define parent maps for
all possible hierarchies (i.e., starting at each unique TAKE starting
point).

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-20 09:26:34 -07:00
Sage Weil
80c8902d78 mds: return error to client on invalid mds op
e.g., if the client sends a filelock request and we don't support it :)
2010-08-19 22:01:54 -07:00
Sage Weil
4007669c46 mds: fix ENOTEMPTY checking on rmdir/rename
We can't trust the inode rstat size without holding the locks.  We can
look at our auth frags and though without fear of a false positive
ENOTEMPTY, however.

Rename the function, introduce a helper for the locked check, update
comments, etc.
2010-08-19 21:47:19 -07:00
Sage Weil
22bd8376a8 osd: disable potentially dangerous dead code
Greg got a segfault accessing the OSDOP& first reference. Not clear why,
but this whole block is dead code.
2010-08-19 16:06:24 -07:00
Sage Weil
d0f6991eb6 osd: carry ondisk write lock for cloned objects
This fixes a race when reading and deleting objects, as evidenced by

 cp bigfile a
 mkdir .snap/foo
 rmdir a
 diff bigfile .snap/foo/a    <-- reads cloned object before it hits disk

Reproduced by snaptest-snap-rm-cmp.sh.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-19 09:52:55 -07:00
Sage Weil
e8f56d3294 auth: fix skipping of ~/ if $HOME subst fails
We were breaking out of the loop entirely, and failing to check the rest
of the items in the path list.  Doh!
2010-08-18 12:57:13 -07:00
Sage Weil
165c5f274e client: fix xattr cap writeback 2010-08-13 15:02:12 -07:00
Sage Weil
0be7dcf5e8 client: fix capsnap writeback of uid/gid/mode/xattrs
Some metadata wasn't making it into CapSnap and was subsequently getting
written back zeroed to the MDS.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-13 15:02:07 -07:00
Sage Weil
c5e5237f3e filestore: fix throttling on journal, op_queue for parallel and writeahead 2010-08-12 13:10:28 -07:00
Sage Weil
c3e0915b89 filestore: fix race in op enqueuing to ensure throttle limit is honors 2010-08-12 13:10:23 -07:00
Sage Weil
bfee1fa36a objectstore: fix transaction get_num_bytes
The separate bytes field isn't used; use encoded bytes count for now.
2010-08-12 13:10:19 -07:00
Sage Weil
a3eefd5760 msgr: don't leak message when sending to a closed connection 2010-08-12 11:55:19 -07:00
Sage Weil
a406cfab39 osd: log push ops as push, not pull 2010-08-12 11:55:14 -07:00
Sage Weil
d00f43aa7e logger: fix logger counter reset
Reset inc keys after each line; reset all keys on full reset.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-12 11:55:03 -07:00
Sage Weil
7aa332cd82 ceph v0.21.1 2010-08-11 14:59:19 -07:00
Sage Weil
acd17a5928 Makefile: include logrotate.conf in tarball 2010-08-11 12:29:46 -07:00
Sage Weil
bce3a63089 mds: fix send_message_client_counted helper
Don't use the outgoing message connection (usually there is none!).. use
the connection argument.  Der.  Broken since 6d770abe.
2010-08-06 10:08:01 -07:00
Sage Weil
7f9cef01c4 makefile: define docdir for old automake versions
Notably centos5.

Reported-by: Thomas Mueller <thomas@chaschperli.ch>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-05 07:47:32 -07:00
Haifeng Liu
773dd82517 monmaptool: man page typo fix
Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-05 07:44:24 -07:00
Sage Weil
6f7523a0a4 rados: -i and -o are still there for other commands
Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-04 10:01:23 -07:00
Sage Weil
a7038da72d ceph.spec.in: fix docdir paths
_docdir is /usr/share/doc, not /usr/share/doc/ceph (as it is with debian).
2010-08-04 09:56:05 -07:00
Sage Weil
1cf45017df ceph.spec.in: fix sample.ceph.conf chown
Reported-by: Xiaoguang Liu <syslxg@gmail.com>
2010-08-04 09:51:31 -07:00
Takuya ASADA
1ecda511a1 rados: fix usage 2010-08-04 09:51:31 -07:00
Sage Weil
ef711e2eea osd: fix heartbeat to/from map updates
- always make _inst match _to and _from (don't adjust in note_down_osd)
- only mark down old hb connection in update_heartbeat_peers
- if old peer isn't down, send them a map
- don't print dup new/old messages

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-04 09:51:24 -07:00
Sage Weil
4ea24d785b osd: fix replies to dup/already-committed requests
We can safely reply if oldv is _older_ than what's on disk.  Otherwise the
request ends up on the list and never gets removed again.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-03 11:07:58 -07:00
Sage Weil
22a7d42b58 assert: only include acconfig.h ifdef __CEPH__
Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-03 09:42:26 -07:00
Takuya ASADA
0ffb08c8b3 librados.hpp fix
[ The following text is in the "UTF-8" character set. ]
    [ Your display is set for the "iso-8859-1" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Hi,

I just realized librados.hpp could compile only if "using namespace
std;" is declared before "#include <rados/librados.hpp>", because
"vector" used without std namespace, and I think it's wrong.
It can fix following patch.

syuu

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-03 09:40:50 -07:00
Sage Weil
be7d84b2b4 mon: fix signed/unsigned compile warning 2010-08-03 09:39:01 -07:00
Sage Weil
4bcba121ac osd: fix map sharing with old heartbeat peers
The addr is in old_inst, since it's an old peer.  Fixes a crash like

osd/OSD.cc: In function 'void OSD::_share_map_outgoing(const entity_inst_t&)':
osd/OSD.cc:1791: FAILED assert(inst.name.is_osd())
 1: (OSD::update_heartbeat_peers()+0x1d3f) [0x4da66f]
 2: (OSD::activate_map(ObjectStore::Transaction&, std::list<Context*, std::allocator<Context*> >&)+0x8ee) [0x4db61e]
 3: (OSD::handle_osd_map(MOSDMap*)+0x233a) [0x4e506a]
 4: (OSD::_dispatch(Message*)+0x230) [0x4ef400]
 5: (OSD::ms_dispatch(Message*)+0x39) [0x4efe39]
 6: (SimpleMessenger::dispatch_entry()+0x749) [0x461fa9]
 7: (SimpleMessenger::DispatchThread::entry()+0x1c) [0x458f6c]
 8: (Thread::_entry_func(void*)+0xa) [0x46cf1a]
 9: (()+0x69ca) [0x7f978d6fb9ca]
 10: (clone()+0x6d) [0x7f978c91b6cd]

introduced by 9bfb8da9f9.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-03 09:39:01 -07:00
Sage Weil
6573635ba4 mds: fix cap encoding skipping when snaprealm differs
We were avoiding adding a new cap, but _any_ issue is problematic, not just
adds (which we can't really be sure about anyway due to races with client
cap release).

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-02 16:27:44 -07:00
Sage Weil
9ccf9cb6c5 debian: move fuse-utils dep to ceph-fuse
Reported-by: Thomas Mueller <thomas@chaschperli.ch>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-02 13:26:09 -07:00
Christian Brunner
baa69ad7ce cclass: fix .so loading file
The only thing I've found, is that the *.so files are included in the -devel
rpm. This leads to the fact that the 'find' in cclass doesn't return any
files. I'd suggest the attached change in the script.

Christian

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-02 13:23:55 -07:00
Sage Weil
9bfb8da9f9 osd: send latest osdmap when we stop sending heartbeats to peer
Otherwise, they may still expect them, and may mark us down.
2010-08-02 13:23:55 -07:00
Sage Weil
4a7c3553a7 osd: avoid most of handle_osd_map if there are no new maps in message
We don't want to take the time to flush things to disk and shut down all
the worker threads if there is nothing new in the osdmap update (as is
usually the case).

Signed-off-by: Sage Weil <sage@newdream.net>
2010-08-02 13:23:55 -07:00
Sage Weil
67236ae746 move logrotate conf out of debian/ to fix ceph.spec 2010-08-02 09:15:34 -07:00
Sage Weil
309f065254 cauthtool: correct man page sample of minimal fs client caps 2010-07-30 16:35:59 -07:00
Sage Weil
b502be7a8d move mkcephfs to /sbin 2010-07-30 12:06:10 -07:00
Sage Weil
7465b5e37d debian: more cleanups
https://code.launchpad.net/~clint-fewbar/review-new-branches/ceph-new-pkg/+merge/31303
2010-07-30 12:05:55 -07:00
Thomas Mueller
bcbad88de1 redirect stdout to /dev/null when reloading
the reload command prints to stdout. example:

# service ceph reload
=== mon.0 ===
Reloading Ceph mon0 on hoe001...kill -1 22197...done
=== osd.0 ===
Reloading Ceph osd0 on hoe001...kill -1 22263...done

"properly" configured systems will send the output by mail to
the administrator - this is not desired in case of successfull
reloading.

Signed-off-by: Thomas Mueller <thomas@chaschperli.ch>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-30 09:18:54 -07:00
Sage Weil
090436f56a v0.21 2010-07-29 09:37:16 -07:00
Yehuda Sadeh
ea2ce9d4b5 cclass.in: fix libdir definition 2010-07-29 09:37:16 -07:00