Commit Graph

64 Commits

Author SHA1 Message Date
Sage Weil
7761ad97e6 cephx: separate KeyRing and RotatingKeyRing
KeyRing stores keys (on disk).

RotatingKeyRing mediates access to the in-memory pool of rotating secrets
for a single service.
2010-02-04 10:45:42 -08:00
Yehuda Sadeh
fa0a0c5bdf replace sprintf with snprintf all around
Also pass buffer size to relevant functions when required.
2010-01-14 16:11:51 -08:00
Sage Weil
9b6cf70b14 osd: use journal in peek_super 2010-01-14 13:41:40 -08:00
Greg Farnum
6c63428980 msgr: rank is just a bad name for local SimpleMessengers now 2010-01-07 16:53:51 -08:00
Greg Farnum
b914135158 msgr: should be destroyed in the same thread it's created 2010-01-07 15:35:26 -08:00
Greg Farnum
5f54543f29 msgr: Remove erroneous rank->destroy calls I inserted in 9a96bf 2010-01-07 12:05:38 -08:00
Greg Farnum
6737529631 msgr: Make usage compatible with last commit 2010-01-06 17:18:49 -08:00
Greg Farnum
9a96bf6a85 msgr: All SimpleMessenger uses are now on the heap for appropriate destruction 2010-01-06 17:18:48 -08:00
Greg Farnum
1ebcebf6ff osd: Now uses separate messenger for heartbeats.
Includes changes to OSDMonitor and OSDMap so things keep working
2009-12-04 16:03:12 -08:00
Sage Weil
2e2eaa6b1f Merge commit 'd00b917143e2afd72851bfd0400b2c2a1f3fc018' into auth 2009-11-18 16:01:20 -08:00
Sage Weil
4fab3f754d osd: allow reinitialization of osd journal
(without hosing osd data)
2009-11-18 10:58:09 -08:00
Sage Weil
805b6cbed0 Merge branch 'unstable' into auth
Conflicts:
	src/Makefile.am
	src/ceph.cc
	src/include/ceph_fs.h
	src/kernel/super.c
	src/kernel/super.h
	src/librados.cc
	src/mon/MonClient.cc
	src/mon/MonClient.h
	src/mon/Monitor.cc
	src/mon/Monitor.h
	src/mon/mon_types.h
	src/msg/Dispatcher.h
	src/msg/Message.h
	src/msg/SimpleMessenger.cc
	src/msg/SimpleMessenger.h
	src/osd/OSD.h
2009-10-21 16:13:48 -07:00
Sage Weil
329f5c6490 msgr: simplify policy
We may be a server, and we may be lossy.  This gives us a few policies:

!server, !lossy = lossless_peer(), for bidirectional intracluster fun.
server, !lossy = lossless_server(), e.g. mds <-> client.
server, lossy = lossy_server(), e.g. mon and osd

also, the default is
!server, !lossy = client(), but that doesn't mean much.  The server
decides if the connection is lossy or not.  And !server just means we can
initiate the outgoing connection.
2009-10-13 10:27:06 -07:00
Sage Weil
ddb359e83f osd: don't manually set rank addr
This didn't accomplish anything useful.
2009-10-08 11:43:43 -07:00
Yehuda Sadeh
960d3854a7 auth: fix system init 2009-10-01 13:54:21 -07:00
Yehuda Sadeh
0bdf90da2b auth: common_init should not always init keys 2009-09-25 16:19:38 -07:00
Sage Weil
71b2ee0f2c strerror -> strerror_r 2009-09-18 16:17:04 -07:00
Sage Weil
decde38057 msgr: change dispatcher interfaces; some monclient cleanups 2009-09-15 15:02:17 -07:00
Sage Weil
094d3b6f8f msgr: remove 'dst' from ceph_msg_header
Shouldn't be there anyway.  We do still need to keep erank in there
though.
2009-08-27 13:50:28 -07:00
Sage Weil
0cfc905e15 msgr: server flag to avoid connecting to peer
If we have a message and no socket and server=true, just queue it
up.  When they connect to us they'll get it.
2009-08-26 13:09:09 -07:00
Sage Weil
6e3412b17e osd: switch to MonClient, fix cmds and ceph 2009-06-26 15:10:27 -07:00
Sage Weil
653ec485ef monclient: refactor MonMap into MonClient 2009-06-26 15:10:27 -07:00
Sage Weil
fda9dbb26e monc: add mount/umount to mon client 2009-05-07 15:32:25 -07:00
Sage Weil
21c8b59ff4 osd: do not use ebofs
Don't compile or use ebofs.
2009-05-07 15:32:01 -07:00
Sage Weil
be072bef3e msgr: kill static instance 'rank' of SimpleMessenger 2009-05-01 07:12:18 -07:00
Yehuda Sadeh
fd6e6d0cb5 common: add some colors on startup (errors, warnings) 2009-04-28 11:02:55 -07:00
Yehuda Sadeh
afcbfd5311 cosd: dump error when failed to mount, fix logs 2009-03-30 13:01:22 -07:00
Sage Weil
41766cd0b4 config: clean up common_init a bit 2009-03-20 14:19:28 -07:00
Yehuda Sadeh
b92d354be9 conf: redo all arg parsing for different modules 2009-03-12 16:08:13 -07:00
Sage Weil
e10a2b1739 cmon, cosd: show fsid on startup 2009-03-12 14:20:05 -07:00
Sage Weil
11ee8ab6b1 config: fix mds, mon, osd startup 2009-03-11 15:27:58 -07:00
Yehuda Sadeh
29b65edc50 conf: restructure of the conf mechanism 2009-03-11 14:41:44 -07:00
Sage Weil
9b7c9b0735 usage 2009-03-10 15:22:52 -07:00
Sage Weil
91ce18168c config: default to -d for server daemons; -D/--nodaemon for foreground operation 2009-03-10 14:43:07 -07:00
Sage Weil
a4582b4b67 cosd: clean up startup options 2009-03-10 14:40:16 -07:00
Sage Weil
0060269735 cosd: don't screw up stdout with NULL string 2009-02-28 15:52:46 -08:00
Sage Weil
f5f3688830 osd: take journal on command line
./cosd dev -j journaldev ...
2009-02-25 11:05:55 -08:00
Yehuda Sadeh
c98bb11a39 assert: some more assert_warn 2009-02-12 16:47:56 -08:00
Yehuda Sadeh
af812a0621 cosd: change some assert to assert_warn and clean exit 2009-02-12 15:05:12 -08:00
Yehuda Sadeh
c511d68dea added a common initialization function 2009-02-09 15:46:02 -08:00
Sage Weil
8ba7f14c37 change ceph_fsid
Make it look more like uuid_t.  Rename type, comparator.
2008-12-23 13:39:25 -08:00
Sage Weil
e8158d1e3a osd: send and process heartbeats in separate thread, channel
Use a separate dispatch thread to process heartbeats.  Use a
separate thread to send them.  This ensures something slow
(e.g. a map update) does not make an osd appear to be down.

This also means a spearate entity_addr for heartbeats, which puts
them over a separate TCP stream.
2008-12-01 15:43:29 -08:00
Sage Weil
51b5212fc3 osd: include magic in osd volumes 2008-11-20 17:00:36 -08:00
Sage Weil
7afce5b5e5 osd: clean up mkfs vs peek_super 2008-11-20 14:40:08 -08:00
Sage Weil
6be0af4e42 osd: make peek_whoami verify fsid 2008-11-20 13:54:58 -08:00
Sage Weil
db8e5227af msgr: include entity type in negotiation
This allows the accepting end to determine the policy it will use
on this connection, and return the correct LOSSY flag to the peer.

Also, some kclient simplification, cleanup.

And a connection ref count fix in process_accept().
2008-11-13 12:45:37 -08:00
Sage Weil
5df7fb87ce fix env parsing 2008-11-05 14:55:07 -08:00
Sage Weil
9499a8e80a rewrite debug macros, infrastructure 2008-11-05 14:32:37 -08:00
Sage Weil
0639334916 try to chdir on exit to avoid clobbering ./gmon.out 2008-11-04 14:50:21 -08:00
Sage Weil
91518f8e64 osd: lossy send policy on acks 2008-10-13 12:51:42 -07:00