Commit Graph

635 Commits

Author SHA1 Message Date
Greg Farnum
883c6faaff mon: don't delete all laggy mds beacons, just the one's you've replaced 2010-01-29 14:11:21 -08:00
Greg Farnum
59535055d5 mon: print out proper address in debug log 2010-01-29 14:11:21 -08:00
Greg Farnum
142224193f mds: unify two if blocks with identical checks 2010-01-29 14:11:21 -08:00
Sage Weil
e49a67302d mon: add struct encoding v to ease future revisions 2010-01-25 13:33:43 -08:00
Greg Farnum
818c73ea2f Change CompatSet usage to be compatible with new struct 2010-01-19 14:03:20 -08:00
Greg Farnum
8883cd22d9 mon: use CompatSet in disk format 2010-01-19 14:02:45 -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
Greg Farnum
0ce86b3508 mon: properly clean up SessionMap on a shutdown.
This fixes failed asserts whenever you tried to do a clean monitor shutdown
instead of killing it.
2010-01-08 17:27:15 -08:00
Greg Farnum
89bdc33d40 monClient: fix potential naming confusion with messenger 2010-01-07 17:10:21 -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
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
Sage Weil
e5ff1489d4 change LP64 ifdefs to casts for printf formatting 2009-12-23 08:52:18 -08:00
Sage Weil
2c328d123f logger: cleanup 64 2009-12-23 08:52:17 -08:00
Sage Weil
4e7b383b42 msgr: put tid in ceph_msg_header (protocol change) 2009-12-22 11:41:47 -08:00
Greg Farnum
54b8cd34fe Make a more flexible 'tell' command to replace injectargs
osd/mds: make a handle_command function; don't parse all MMonCommands as config

mon: Send injectargs to osd/mds in new format;
	accept tells for mds and osd
2009-12-15 16:17:29 -08:00
Sage Weil
ebc3136587 mon: fix mon injectargs
If !connection, we know it's local delivery.
2009-12-11 07:53:25 -08:00
Sage Weil
0deb52013e mon: fix null pointer ref on connection 2009-12-11 07:53:25 -08:00
Sage Weil
1eabf8d188 mon: log error, don't abort, on stray pg_stat notify 2009-12-10 10:03:44 -08:00
Sage Weil
cfda3be56f mon: stop trying to create localized pgs >= max osd|device
If lpg_num == lpgp_num, and the preferred osd no longer exists, there is
no guarantee that the parent and child pgs will land on the same osd.  This
happens when we are creating pgs for a new osd, they don't finish getting
created, and then we destroy that OSD again.

Care should be taken to avoid expanding the OSD count _and_ lpg_num
simultaneously...
2009-12-10 09:24:31 -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
714a9af30d mon: fix allocation of low global_ids after mon restart
We need to set last_allocated in init().  Also avoid the
-1 casting and just use 0 instead.
2009-12-02 15:03:50 -08:00
Sage Weil
fd21693fa6 mon: add 'mds set_state <gid> <stateid>'
For mdsmon disaster recovery :)
2009-11-24 19:02:05 -08:00
Sage Weil
1ac56b7d7a mon: avoid mds state update when clearing laggy flag
Do not clear laggy flag (or otherwise get into prepare_update) if the mds
hasn't seen the latest map.  Previously we could go to clear laggy and also
revert to an old mds state.
2009-11-24 19:02:05 -08:00
Sage Weil
bf3cd2803c mon: fix use-after-free in mds mon blacklisting 2009-11-20 14:07:16 -08:00
Yehuda Sadeh
16c8c5b8b9 auth: change error code when not supporting authentication 2009-11-19 16:50:59 -08:00
Sage Weil
b580653f20 mon: allow mds injectargs on recovering mdss 2009-11-19 15:31:42 -08:00
Sage Weil
23eaa6d28c mds: use global_id as key in MDSMap
This makes the data structures less stupid (using an
entity_addr_t as a key is silly).

This is a protocol and disk format change.
2009-11-19 15:30:27 -08:00
Sage Weil
b05e184c07 mon: only remove_session if !s->closed 2009-11-19 12:41:04 -08:00
Sage Weil
bf709f5425 mon: fix session ref leak 2009-11-19 12:41:04 -08:00
Sage Weil
2cc368c58b monc: restart auth handshake each time we connect to mon 2009-11-19 12:42:29 -08:00
Sage Weil
2e2eaa6b1f Merge commit 'd00b917143e2afd72851bfd0400b2c2a1f3fc018' into auth 2009-11-18 16:01:20 -08:00
Yehuda Sadeh
85a25b5e3b auth: fix monclient startup issue 2009-11-18 15:29:56 -08:00
Yehuda Sadeh
eb295b9e14 auth: fix client and server side negotiation 2009-11-18 14:19:01 -08:00
Sage Weil
5eeb711b6b auth: change server side negotiation a bit
client is not fixed up yet
2009-11-18 10:12:10 -08:00
Sage Weil
91e3e49f7a Merge branch 'unstable' of ceph.newdream.net:git/ceph into unstable 2009-11-17 16:31:18 -08:00
Sage Weil
62ccae85ea monc: small sanity check 2009-11-17 14:02:09 -08:00
Sage Weil
fcc234a8a0 monc: small cleanup
avoid unnec finish_hunting call on get_monmap_privately
2009-11-17 10:46:48 -08:00
Yehuda Sadeh
0669ca21f4 auth: reuse global_id when requesting tickets 2009-11-16 16:46:59 -08:00
Sage Weil
fecee16d9d mon: fix decode authmon stash on restart 2009-11-16 14:33:12 -08:00
Sage Weil
8c6d2769b1 mon: move misplaced parens 2009-11-16 14:25:13 -08:00
Sage Weil
40edb9e253 mon: fail on write error
Don't rename badly written file.  Also assert success, for now.
2009-11-16 11:45:25 -08:00
Sage Weil
37145dc154 monc: fix race/deadlock for get_monmap_privately 2009-11-13 16:38:52 -08:00
Sage Weil
788ddaa319 config: accept list of possible conf file locations; include ./ceph.conf
This makes './ceph -w' work with './vstart.sh -x'.
2009-11-13 10:47:52 -08:00
Sage Weil
2acf8b61b0 monc: fix race/deadlock for get_monmap_privately 2009-11-13 10:40:02 -08:00
Sage Weil
486d696723 mon: ignore MAuth message when connection has no session
This happens if hte message is delayed, and the session meanwhile
is closed.  We need similar checks any time we take a Session
from the message->get_connection()....
2009-11-09 21:31:51 -08:00
Sage Weil
6f62583cde Merge branch 'unstable' into auth
Conflicts:
	src/Makefile.am
	src/mkmonfs.cc
	src/msg/SimpleMessenger.cc
2009-11-09 21:12:16 -08:00
Sage Weil
44593828e8 auth: fix global id alloc on peon monitors 2009-11-09 15:52:11 -08:00
Sage Weil
c507e3c988 auth: kill ClientMOnitor, MCLientMOunt*, etc. 2009-11-09 15:38:56 -08:00