Commit Graph

78 Commits

Author SHA1 Message Date
Sage Weil
85e626d178 common: disable logger by default; make daemon settings explicit in (3) callers 2010-07-01 08:55:52 -07:00
Sage Weil
79991ed498 debug: revamp debug/logging
- By default, append to $type.$name.log.
- Get old $hostname.$pid + $type.$name symlink behavior only with
  g_conf.log_per_instance
- Add new g_conf.log_file option to force a particular file.
2010-07-01 08:47:35 -07:00
Yehuda Sadeh
ce909c2c31 osd: error out when failing to read journal header
This fixes bug #201.
2010-06-16 10:13:59 -07:00
Yehuda Sadeh
d971bb06f5 osd: mkfs failures are colored red 2010-06-14 12:22:54 -07:00
Sage Weil
12798de371 osd: add --dump-pg-log command 2010-06-08 22:34:57 -07:00
Greg Farnum
0d4bdfac01 osd: add osd_client_message_size_cap option to config; default 500MB
And change the name in cosd to be that
2010-06-04 16:42:45 -07:00
Greg Farnum
f60be8e397 progress 2010-06-04 12:04:08 -07:00
Sage Weil
9e4e53e073 osd: simplify --mkjournal, add --flush-journal 2010-05-20 10:58:56 -07:00
Sage Weil
b8cca8f34b replace nstring with std::string 2010-04-28 13:45:55 -07:00
Sage Weil
e976c53607 timer: kill unused g_timer 2010-03-09 14:51:05 -08:00
Sage Weil
d17257b983 osd: fail startup if store is in use (before we fork) 2010-02-12 11:20:30 -08:00
Sage Weil
8538efc5c2 osd: don't block on mon negotiation on startup
That means we don't check for monmap vs ondisk fsid checks and
such.  They're mostly useless anyway.
2010-02-11 16:18:54 -08:00
Sage Weil
c91716edee osd: store local osd magic, whoami, and other static bits outside of ObjectStore
These values are immutable, and we also want to look at them prior to
forking and 'mounting' the ObjectStore.  Just keep them in separate files
for simplicity.

This avoids the double filestore startup cost paid on cosd startup.
2010-02-08 20:29:09 -08:00
Sage Weil
dfc1b1115b auth: fix KeyStore interface 2010-02-04 13:48:23 -08:00
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