]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
15 years agomon: set initial timeout on sessions; clean up a bit
Sage Weil [Wed, 14 Oct 2009 05:05:57 +0000 (22:05 -0700)]
mon: set initial timeout on sessions; clean up a bit

15 years agomon: fix warning
Sage Weil [Tue, 13 Oct 2009 21:46:05 +0000 (14:46 -0700)]
mon: fix warning

15 years agomon: PaxosServices needs virtual destructor
Sage Weil [Tue, 13 Oct 2009 21:45:39 +0000 (14:45 -0700)]
mon: PaxosServices needs virtual destructor

15 years agomon: small cleanup
Sage Weil [Tue, 13 Oct 2009 20:46:34 +0000 (13:46 -0700)]
mon: small cleanup

15 years agodebian: bail out on error during package build
Sage Weil [Tue, 13 Oct 2009 20:46:12 +0000 (13:46 -0700)]
debian: bail out on error during package build

15 years agoMakefile: include client/ioctl.h in tarball
Sage Weil [Tue, 13 Oct 2009 20:45:08 +0000 (13:45 -0700)]
Makefile: include client/ioctl.h in tarball

15 years agomsgr: kill dead code
Sage Weil [Tue, 13 Oct 2009 20:08:15 +0000 (13:08 -0700)]
msgr: kill dead code

15 years agouclient: pipe down about connects
Sage Weil [Tue, 13 Oct 2009 21:14:58 +0000 (14:14 -0700)]
uclient: pipe down about connects

15 years agomsgr: add version field to msg header
Sage Weil [Tue, 13 Oct 2009 19:54:22 +0000 (12:54 -0700)]
msgr: add version field to msg header

15 years agoosd: use ms_handle_connect to resend mon messages
Sage Weil [Tue, 13 Oct 2009 19:08:51 +0000 (12:08 -0700)]
osd: use ms_handle_connect to resend mon messages

This is worlds better than resending every few seconds.

15 years agomonclient: ignore resets on non-current mon
Sage Weil [Tue, 13 Oct 2009 18:54:57 +0000 (11:54 -0700)]
monclient: ignore resets on non-current mon

15 years agomon: use connection hook to resend mon requests
Sage Weil [Tue, 13 Oct 2009 18:54:40 +0000 (11:54 -0700)]
mon: use connection hook to resend mon requests

15 years agomsgr: add ms_handle_connect callback
Sage Weil [Tue, 13 Oct 2009 18:51:32 +0000 (11:51 -0700)]
msgr: add ms_handle_connect callback

Called when an outgoing connection succeeds.

15 years agomsgr: drop extra arg
Sage Weil [Tue, 13 Oct 2009 18:37:28 +0000 (11:37 -0700)]
msgr: drop extra arg

15 years agomsgr: change ms_handle_[peer_]reset prototype
Sage Weil [Tue, 13 Oct 2009 18:21:31 +0000 (11:21 -0700)]
msgr: change ms_handle_[peer_]reset prototype

And some small fixups in handlers along the way

15 years agomsgr: put peer type, addr in Connection
Sage Weil [Tue, 13 Oct 2009 17:40:02 +0000 (10:40 -0700)]
msgr: put peer type, addr in Connection

15 years agotodo
Sage Weil [Tue, 13 Oct 2009 06:05:50 +0000 (23:05 -0700)]
todo

15 years agomsgr: simple exponential backoff, with tunable initial and max delay
Sage Weil [Tue, 13 Oct 2009 06:04:24 +0000 (23:04 -0700)]
msgr: simple exponential backoff, with tunable initial and max delay

15 years agomsgr: simplify policy
Sage Weil [Tue, 13 Oct 2009 05:45:50 +0000 (22:45 -0700)]
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.

15 years agomsgr: kill unused ms_handle_failure
Sage Weil [Mon, 12 Oct 2009 20:34:48 +0000 (13:34 -0700)]
msgr: kill unused ms_handle_failure

15 years agomon: MonmapMonitor now sends responses to commands and doesn't double-add
Greg Farnum [Mon, 12 Oct 2009 21:04:46 +0000 (14:04 -0700)]
mon: MonmapMonitor now sends responses to commands and doesn't double-add
monitor addresses.

15 years agomon: use send_reply for pool ops; fix msg leak
Sage Weil [Mon, 12 Oct 2009 19:06:36 +0000 (12:06 -0700)]
mon: use send_reply for pool ops; fix msg leak

15 years agomon: share new osd maps with 'random' osds
Sage Weil [Mon, 12 Oct 2009 19:03:02 +0000 (12:03 -0700)]
mon: share new osd maps with 'random' osds

Ok, it's not exactly a uniform distribution, but good enough for now.

15 years agomon: send osd map if MPGStats sender has an old map
Sage Weil [Mon, 12 Oct 2009 17:53:39 +0000 (10:53 -0700)]
mon: send osd map if MPGStats sender has an old map

15 years agomon: clean out old crufty cluster shutdown code
Sage Weil [Mon, 12 Oct 2009 17:47:11 +0000 (10:47 -0700)]
mon: clean out old crufty cluster shutdown code

The OSD directed shutdown should be adjusted anyway.

15 years agomon: send MOSDPGCreate from all mons, not just leader
Sage Weil [Mon, 12 Oct 2009 17:44:01 +0000 (10:44 -0700)]
mon: send MOSDPGCreate from all mons, not just leader

This ensures they go out to whichever mon the osd is connected to.  Sort
of brute force.  :/

15 years agomon: oops, make PaxosServiceMessage match ceph_mon_request_header
Sage Weil [Mon, 12 Oct 2009 17:11:57 +0000 (10:11 -0700)]
mon: oops, make PaxosServiceMessage match ceph_mon_request_header

15 years agomon: kill some dead code
Sage Weil [Mon, 12 Oct 2009 04:56:59 +0000 (21:56 -0700)]
mon: kill some dead code

15 years agomon: use send_reply for MPoolOpReply
Sage Weil [Mon, 12 Oct 2009 04:55:39 +0000 (21:55 -0700)]
mon: use send_reply for MPoolOpReply

15 years agoLogClient: Add a mon data member and mon selection code.
Greg Farnum [Mon, 12 Oct 2009 18:29:33 +0000 (11:29 -0700)]
LogClient: Add a mon data member and mon selection code.

Replaces removed MonMap::pick_mon

15 years agoMonMap: Remove pick_mon() and last_mon data member -- doesn't belong here
Greg Farnum [Mon, 12 Oct 2009 18:29:05 +0000 (11:29 -0700)]
MonMap: Remove pick_mon() and last_mon data member -- doesn't belong here

15 years agomonmap: add a utime_t created data member
Greg Farnum [Mon, 12 Oct 2009 17:47:47 +0000 (10:47 -0700)]
monmap: add a utime_t created data member

15 years agouclient: Accept -1 in set_default_preferred_pg to go back to non-local writes
Greg Farnum [Mon, 12 Oct 2009 17:40:29 +0000 (10:40 -0700)]
uclient: Accept -1 in set_default_preferred_pg to go back to non-local writes

15 years agomon/msg: Remove MMonAdd; switch MonmapMonitor to use MMonCommand
Greg Farnum [Mon, 12 Oct 2009 17:34:50 +0000 (10:34 -0700)]
mon/msg: Remove MMonAdd; switch MonmapMonitor to use MMonCommand

15 years agomon: Replace old question comment with explanation comment
Greg Farnum [Mon, 12 Oct 2009 16:15:45 +0000 (09:15 -0700)]
mon: Replace old question comment with explanation comment

15 years agomon: Remember to delete the Message when done
Greg Farnum [Mon, 12 Oct 2009 16:14:19 +0000 (09:14 -0700)]
mon: Remember to delete the Message when done

15 years agoceph: follow monmap changes in -w mode
Sage Weil [Sun, 11 Oct 2009 04:34:47 +0000 (21:34 -0700)]
ceph: follow monmap changes in -w mode

15 years agomonmaptool: use generic MonMap::print methods
Sage Weil [Sun, 11 Oct 2009 04:34:40 +0000 (21:34 -0700)]
monmaptool: use generic MonMap::print methods

15 years agomon: store latest monmap is paxos-compatible format
Sage Weil [Sun, 11 Oct 2009 04:26:53 +0000 (21:26 -0700)]
mon: store latest monmap is paxos-compatible format

Previously it was monmap/latest, but wasn't prefixed/wrapped with the
version_t.

15 years agomon: don't trim cluster sessions
Sage Weil [Sun, 11 Oct 2009 04:26:05 +0000 (21:26 -0700)]
mon: don't trim cluster sessions

This isn't a perfect test.. we'll need to revisit later.

15 years agomon: route osdmaps sent by mon properly
Sage Weil [Sat, 10 Oct 2009 05:27:38 +0000 (22:27 -0700)]
mon: route osdmaps sent by mon properly

15 years agomon: kill unused MOSDGetMap
Sage Weil [Sat, 10 Oct 2009 04:55:44 +0000 (21:55 -0700)]
mon: kill unused MOSDGetMap

Yay

15 years agoosd: stop using MOSDGetMap
Sage Weil [Sat, 10 Oct 2009 04:50:51 +0000 (21:50 -0700)]
osd: stop using MOSDGetMap

We should use the monclient and subscriptions instead.

15 years agomon: kill MMDSGetMap, clean up MDSMonitor map sending code
Sage Weil [Sat, 10 Oct 2009 04:47:22 +0000 (21:47 -0700)]
mon: kill MMDSGetMap, clean up MDSMonitor map sending code

We don't need most of this crap anymore.. subscriptions solve all of these
problems!  The getmap message isn't even used anymore.

15 years agomon: kill more dead code
Sage Weil [Sat, 10 Oct 2009 04:27:47 +0000 (21:27 -0700)]
mon: kill more dead code

15 years agomonc: clean up mon pick code slightly
Sage Weil [Sat, 10 Oct 2009 04:27:34 +0000 (21:27 -0700)]
monc: clean up mon pick code slightly

15 years agoMerge branch 'unstable' of ssh://ceph.newdream.net/home/sage/ceph.newdream.net/git...
Sage Weil [Sat, 10 Oct 2009 04:24:08 +0000 (21:24 -0700)]
Merge branch 'unstable' of ssh://ceph.newdream.net/home/sage/ceph.newdream.net/git/ceph into unstable

15 years agomon: kill dead faking, bcast code
Sage Weil [Fri, 9 Oct 2009 23:48:11 +0000 (16:48 -0700)]
mon: kill dead faking, bcast code

15 years agoall: change disk format numbers
Greg Farnum [Fri, 9 Oct 2009 23:04:11 +0000 (16:04 -0700)]
all: change disk format numbers

15 years agomon: Remove invalid assert; fix mon_type constants.
Greg Farnum [Fri, 9 Oct 2009 23:02:20 +0000 (16:02 -0700)]
mon: Remove invalid assert; fix mon_type constants.

15 years agomdsmap: add a last_changed utime_t data member.
Greg Farnum [Thu, 8 Oct 2009 23:28:39 +0000 (16:28 -0700)]
mdsmap: add a last_changed utime_t data member.

15 years agomon: Add MonmapMonitor to whole system
Greg Farnum [Fri, 9 Oct 2009 01:09:18 +0000 (18:09 -0700)]
mon: Add MonmapMonitor to whole system

15 years agomon: Add MonmapMonitor source.
Greg Farnum [Thu, 8 Oct 2009 23:29:43 +0000 (16:29 -0700)]
mon: Add MonmapMonitor source.

15 years agoPaxosService: Add some function documentation.
Greg Farnum [Thu, 8 Oct 2009 22:37:11 +0000 (15:37 -0700)]
PaxosService: Add some function documentation.

15 years agomessage: Add a new MMonAdd message type
Greg Farnum [Thu, 8 Oct 2009 01:07:47 +0000 (18:07 -0700)]
message: Add a new MMonAdd message type

15 years agoHadoop: Set preferred_pg after client mounts
Greg Farnum [Wed, 7 Oct 2009 16:21:22 +0000 (09:21 -0700)]
Hadoop: Set preferred_pg after client mounts

15 years agouclient: Debugging output
Greg Farnum [Wed, 7 Oct 2009 16:20:59 +0000 (09:20 -0700)]
uclient: Debugging output

15 years agomon: use reply_request in pgmon pg stats update
Sage Weil [Fri, 9 Oct 2009 23:43:49 +0000 (16:43 -0700)]
mon: use reply_request in pgmon pg stats update

15 years agopush_to_kclient: no -u to cp, the timestamps may be ordered
Sage Weil [Fri, 9 Oct 2009 23:43:13 +0000 (16:43 -0700)]
push_to_kclient: no -u to cp, the timestamps may be ordered

15 years agomon: new, improved monitor request/reply routing
Sage Weil [Fri, 9 Oct 2009 23:33:15 +0000 (16:33 -0700)]
mon: new, improved monitor request/reply routing

We track which monitor requests are forwarded to the leader in the mon
Session, and clean them out when we send a reply back via MRoute.

Only forward once, and resend pending requests on election completion.
This may lead to harmless dups, but at least we know our request didn't
get dropped on the floor by another mon failing somewhere.

This changes the monitor protocol by expanding the PaxosServiceMessage
header.

15 years agomon: create session for all incoming monitor messages
Sage Weil [Fri, 9 Oct 2009 23:30:17 +0000 (16:30 -0700)]
mon: create session for all incoming monitor messages

This code stolen from auth branch; hopefully git merge will be smart
enough.

15 years agotodo
Sage Weil [Fri, 9 Oct 2009 22:15:25 +0000 (15:15 -0700)]
todo

15 years agobyteorder: more typos
Sage Weil [Fri, 9 Oct 2009 22:15:13 +0000 (15:15 -0700)]
byteorder: more typos

15 years agoqa: start new qa dir, add some client tests
Sage Weil [Fri, 9 Oct 2009 19:19:35 +0000 (12:19 -0700)]
qa: start new qa dir, add some client tests

15 years agobyteorder: braces!
Sage Weil [Fri, 9 Oct 2009 17:55:32 +0000 (10:55 -0700)]
byteorder: braces!

15 years agoosd: check is_dup earlier; do not set osdop version if it's a noop
Sage Weil [Fri, 9 Oct 2009 17:53:37 +0000 (10:53 -0700)]
osd: check is_dup earlier; do not set osdop version if it's a noop

Otherwise, we end up with a bogus version that's not logged and in the
future, which confuses us later (we think it's a replay or something).  If
it's a noop, that means the version is either already set, or doesn't need
to be.

15 years agoosd: use sized int32 in osdmap incremental new_pg_temp
Sage Weil [Fri, 9 Oct 2009 05:20:49 +0000 (22:20 -0700)]
osd: use sized int32 in osdmap incremental new_pg_temp

Oops!

15 years agomsgr: reset session state on lossy_tx fault
Sage Weil [Fri, 9 Oct 2009 04:20:22 +0000 (21:20 -0700)]
msgr: reset session state on lossy_tx fault

15 years agobyteorder: include endian.h for good measure
Sage Weil [Thu, 8 Oct 2009 22:18:05 +0000 (15:18 -0700)]
byteorder: include endian.h for good measure

15 years agoRevert "byteorder: properly detect endianness"
Sage Weil [Thu, 8 Oct 2009 21:58:03 +0000 (14:58 -0700)]
Revert "byteorder: properly detect endianness"

Or not!

This reverts commit a33441c4b274d840432ba553db463cbee1f1a480.

15 years agobyteorder: properly detect endianness
Sage Weil [Thu, 8 Oct 2009 21:21:08 +0000 (14:21 -0700)]
byteorder: properly detect endianness

15 years agoosd: fix up handling of dup PG::Info
Sage Weil [Thu, 8 Oct 2009 21:20:52 +0000 (14:20 -0700)]
osd: fix up handling of dup PG::Info

Ignore dup info.  Simplify broken logic.

15 years agomon: fix session close races
Sage Weil [Thu, 8 Oct 2009 18:45:27 +0000 (11:45 -0700)]
mon: fix session close races

Make sure we don't use a connection's session if it is closed.

Remove session from connection on reset.

15 years agoobjecter: don't send duplicate onetime sub requests
Sage Weil [Thu, 8 Oct 2009 18:44:17 +0000 (11:44 -0700)]
objecter: don't send duplicate onetime sub requests

15 years agoosd: don't manually set rank addr
Sage Weil [Thu, 8 Oct 2009 18:43:43 +0000 (11:43 -0700)]
osd: don't manually set rank addr

This didn't accomplish anything useful.

15 years agomsgr: include port when printing sockaddrs!
Sage Weil [Thu, 8 Oct 2009 18:41:32 +0000 (11:41 -0700)]
msgr: include port when printing sockaddrs!

15 years agolibceph: move to main dir with other main .cc files
Sage Weil [Thu, 8 Oct 2009 17:35:43 +0000 (10:35 -0700)]
libceph: move to main dir with other main .cc files

15 years agomonc: no msgr bind needed
Sage Weil [Thu, 8 Oct 2009 17:35:52 +0000 (10:35 -0700)]
monc: no msgr bind needed

15 years agolibceph: no bind
Sage Weil [Thu, 8 Oct 2009 17:34:20 +0000 (10:34 -0700)]
libceph: no bind

15 years agoosd: use fast_fail() policy to connect to osd
Sage Weil [Thu, 8 Oct 2009 17:34:09 +0000 (10:34 -0700)]
osd: use fast_fail() policy to connect to osd

15 years agomsgr: do not require bind() on client apps
Sage Weil [Thu, 8 Oct 2009 17:02:22 +0000 (10:02 -0700)]
msgr: do not require bind() on client apps

15 years agomsgr: clean out dead connect-side bind code
Sage Weil [Thu, 8 Oct 2009 16:54:17 +0000 (09:54 -0700)]
msgr: clean out dead connect-side bind code

15 years agomds: validate file layouts on file creation, setlayout
Sage Weil [Thu, 8 Oct 2009 16:21:39 +0000 (09:21 -0700)]
mds: validate file layouts on file creation, setlayout

15 years agoceph: add ceph_file_layout_is_valid function, minimum stripe unit
Sage Weil [Thu, 8 Oct 2009 16:21:21 +0000 (09:21 -0700)]
ceph: add ceph_file_layout_is_valid function, minimum stripe unit

15 years agofilestore: be less excited about btrfs version
Sage Weil [Wed, 7 Oct 2009 23:45:02 +0000 (16:45 -0700)]
filestore: be less excited about btrfs version

15 years agomon: take lock in ms_handle_reset before adjusting session map
Sage Weil [Wed, 7 Oct 2009 23:44:38 +0000 (16:44 -0700)]
mon: take lock in ms_handle_reset before adjusting session map

15 years agomsgr: no need for sockaddr_storage encoder
Sage Weil [Wed, 7 Oct 2009 23:43:49 +0000 (16:43 -0700)]
msgr: no need for sockaddr_storage encoder

15 years agomessenger: do not bind socket before connecting
Yehuda Sadeh [Wed, 7 Oct 2009 23:29:11 +0000 (16:29 -0700)]
messenger: do not bind socket before connecting

15 years agoversion: git rev-parse, not git-rev-parse
Sage Weil [Wed, 7 Oct 2009 22:36:16 +0000 (15:36 -0700)]
version: git rev-parse, not git-rev-parse

15 years agomon: allow {getmap,getcurhsmap} <epoch>
Sage Weil [Wed, 7 Oct 2009 18:58:03 +0000 (11:58 -0700)]
mon: allow {getmap,getcurhsmap} <epoch>

15 years agocrushtool: show zero weight items in crush map decode/dump
Sage Weil [Wed, 7 Oct 2009 18:54:56 +0000 (11:54 -0700)]
crushtool: show zero weight items in crush map decode/dump

15 years agocrush: zero weight items get 0 length straws
Sage Weil [Wed, 7 Oct 2009 18:54:20 +0000 (11:54 -0700)]
crush: zero weight items get 0 length straws

15 years agocrush: silence (bogus) item uninit warning
Sage Weil [Wed, 7 Oct 2009 17:36:58 +0000 (10:36 -0700)]
crush: silence (bogus) item uninit warning

15 years agopush_to_kclient: fix dest tree check
Sage Weil [Wed, 7 Oct 2009 17:33:08 +0000 (10:33 -0700)]
push_to_kclient: fix dest tree check

15 years agomsgr: fix operator<< for sockaddr_in, too
Sage Weil [Wed, 7 Oct 2009 17:32:11 +0000 (10:32 -0700)]
msgr: fix operator<< for sockaddr_in, too

15 years agomsgr: uninline tcp_{read,write}
Sage Weil [Wed, 7 Oct 2009 17:31:31 +0000 (10:31 -0700)]
msgr: uninline tcp_{read,write}

15 years agomsgr: fix uninitialized memory on sockaddr_storage print
Sage Weil [Wed, 7 Oct 2009 17:29:13 +0000 (10:29 -0700)]
msgr: fix uninitialized memory on sockaddr_storage print

15 years agotodo
Sage Weil [Tue, 6 Oct 2009 21:00:51 +0000 (14:00 -0700)]
todo

15 years agocrush: reject on empty bucket (and avoid divide by zero)
Sage Weil [Tue, 6 Oct 2009 20:55:26 +0000 (13:55 -0700)]
crush: reject on empty bucket (and avoid divide by zero)

15 years agoMakefile: drop src/kernel/* from Makefile.am
Sage Weil [Tue, 6 Oct 2009 20:41:55 +0000 (13:41 -0700)]
Makefile: drop src/kernel/* from Makefile.am