]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
16 years agoauth: librados requests for osd and mon keys
Yehuda Sadeh [Wed, 30 Sep 2009 23:17:00 +0000 (16:17 -0700)]
auth: librados requests for osd and mon keys

16 years agoauth: don't wait if already authenticated, fix unitest
Yehuda Sadeh [Wed, 30 Sep 2009 22:24:45 +0000 (15:24 -0700)]
auth: don't wait if already authenticated, fix unitest

16 years agoauth: mds gets rotating secrets
Yehuda Sadeh [Wed, 30 Sep 2009 21:02:08 +0000 (14:02 -0700)]
auth: mds gets rotating secrets

16 years agoauth: init mds keys on startup
Yehuda Sadeh [Wed, 30 Sep 2009 18:45:41 +0000 (11:45 -0700)]
auth: init mds keys on startup

16 years agoauth: fix osd init sequence
Yehuda Sadeh [Tue, 29 Sep 2009 23:40:53 +0000 (16:40 -0700)]
auth: fix osd init sequence

16 years agourandom: fix fd leak
Yehuda Sadeh [Tue, 29 Sep 2009 21:21:23 +0000 (14:21 -0700)]
urandom: fix fd leak

16 years agoauth: authenticate in the x-env protocol
Yehuda Sadeh [Tue, 29 Sep 2009 21:08:13 +0000 (14:08 -0700)]
auth: authenticate in the x-env protocol

16 years agoauth: fix monclient deadlock
Yehuda Sadeh [Fri, 25 Sep 2009 23:51:07 +0000 (16:51 -0700)]
auth: fix monclient deadlock

16 years agoauth: fix keys loading via ceph tool
Yehuda Sadeh [Fri, 25 Sep 2009 23:37:43 +0000 (16:37 -0700)]
auth: fix keys loading via ceph tool

16 years agoauth: common_init should not always init keys
Yehuda Sadeh [Fri, 25 Sep 2009 23:19:38 +0000 (16:19 -0700)]
auth: common_init should not always init keys

16 years agoauth: use key in keyring getting session key and ticket
Yehuda Sadeh [Fri, 25 Sep 2009 22:52:52 +0000 (15:52 -0700)]
auth: use key in keyring getting session key and ticket

16 years agoauth: fix decode_decrypt
Yehuda Sadeh [Fri, 25 Sep 2009 22:52:35 +0000 (15:52 -0700)]
auth: fix decode_decrypt

16 years agoauth: don't run over g_conf options when setting them
Yehuda Sadeh [Fri, 25 Sep 2009 21:49:45 +0000 (14:49 -0700)]
auth: don't run over g_conf options when setting them

16 years agoauth: use global keyring, entity name
Yehuda Sadeh [Fri, 25 Sep 2009 20:13:09 +0000 (13:13 -0700)]
auth: use global keyring, entity name

16 years agoauth: cleanup get session key
Sage Weil [Fri, 25 Sep 2009 21:25:59 +0000 (14:25 -0700)]
auth: cleanup get session key

16 years agoauth: generate meaningful service ticket
Sage Weil [Fri, 25 Sep 2009 21:24:35 +0000 (14:24 -0700)]
auth: generate meaningful service ticket

Include caps from auth ticket, create a new session key, etc.

Make session_key _and_ ticket available to verify_authorizer
caller.

16 years agoauth: rename authenticator -> authorizer
Sage Weil [Fri, 25 Sep 2009 21:14:16 +0000 (14:14 -0700)]
auth: rename authenticator -> authorizer

16 years agoauth: move hexdump into a header
Sage Weil [Fri, 25 Sep 2009 21:12:50 +0000 (14:12 -0700)]
auth: move hexdump into a header

16 years agoauth: monitor reads initial auth state
Yehuda Sadeh [Fri, 25 Sep 2009 19:33:40 +0000 (12:33 -0700)]
auth: monitor reads initial auth state

16 years agoauth: encode/decode functions use magic
Yehuda Sadeh [Fri, 25 Sep 2009 17:47:31 +0000 (10:47 -0700)]
auth: encode/decode functions use magic

16 years agoauth: protocol fixes, keys tool changes, keys init
Yehuda Sadeh [Thu, 24 Sep 2009 23:12:09 +0000 (16:12 -0700)]
auth: protocol fixes, keys tool changes, keys init

16 years agoauth: set up entity name on startup
Yehuda Sadeh [Thu, 24 Sep 2009 19:28:39 +0000 (12:28 -0700)]
auth: set up entity name on startup

16 years agoauth: get rid of stab keys handler
Yehuda Sadeh [Thu, 24 Sep 2009 18:41:01 +0000 (11:41 -0700)]
auth: get rid of stab keys handler

16 years agoauth: reuse authorize request handling for service tickets requests
Yehuda Sadeh [Thu, 24 Sep 2009 18:33:56 +0000 (11:33 -0700)]
auth: reuse authorize request handling for service tickets requests

16 years agoauth: start integrate keys_server with authentication
Yehuda Sadeh [Thu, 24 Sep 2009 17:21:41 +0000 (10:21 -0700)]
auth: start integrate keys_server with authentication

16 years agoauth: move keys_server to the monitor
Yehuda Sadeh [Wed, 23 Sep 2009 21:58:42 +0000 (14:58 -0700)]
auth: move keys_server to the monitor

16 years agoauth: move session_key to the AuthHandler
Sage Weil [Wed, 23 Sep 2009 21:53:58 +0000 (14:53 -0700)]
auth: move session_key to the AuthHandler

16 years agomon: put auth_handler in mon Session
Sage Weil [Wed, 23 Sep 2009 21:51:46 +0000 (14:51 -0700)]
mon: put auth_handler in mon Session

16 years agoauth: small cleanup
Sage Weil [Wed, 23 Sep 2009 20:06:33 +0000 (13:06 -0700)]
auth: small cleanup

16 years agomon: route all auth traffic through authmon
Sage Weil [Wed, 23 Sep 2009 20:03:56 +0000 (13:03 -0700)]
mon: route all auth traffic through authmon

16 years agoauth: fill out server side authenticate steps
Sage Weil [Wed, 23 Sep 2009 19:42:36 +0000 (12:42 -0700)]
auth: fill out server side authenticate steps

16 years agoauth: build an almost real mon ticket
Sage Weil [Wed, 23 Sep 2009 19:13:15 +0000 (12:13 -0700)]
auth: build an almost real mon ticket

16 years agoosd: session skeleton
Sage Weil [Wed, 23 Sep 2009 18:25:28 +0000 (11:25 -0700)]
osd: session skeleton

16 years agoauth: break out authenticate request
Sage Weil [Wed, 23 Sep 2009 18:17:08 +0000 (11:17 -0700)]
auth: break out authenticate request

16 years agoauth: add missing file
Yehuda Sadeh [Wed, 23 Sep 2009 17:41:29 +0000 (10:41 -0700)]
auth: add missing file

16 years agoauth: monclient creates session asynchronously
Yehuda Sadeh [Tue, 22 Sep 2009 23:51:09 +0000 (16:51 -0700)]
auth: monclient creates session asynchronously

16 years agoauth: fix deadlock
Yehuda Sadeh [Tue, 22 Sep 2009 20:56:56 +0000 (13:56 -0700)]
auth: fix deadlock

16 years agoauth: monclient deciphers rotating key
Yehuda Sadeh [Tue, 22 Sep 2009 20:41:13 +0000 (13:41 -0700)]
auth: monclient deciphers rotating key

16 years agoauth: typo
Yehuda Sadeh [Tue, 22 Sep 2009 19:38:49 +0000 (12:38 -0700)]
auth: typo

16 years agoauth: load master key on startup
Yehuda Sadeh [Tue, 22 Sep 2009 19:37:30 +0000 (12:37 -0700)]
auth: load master key on startup

16 years agoauth: osd loads rotating keys on startup
Yehuda Sadeh [Tue, 22 Sep 2009 19:13:35 +0000 (12:13 -0700)]
auth: osd loads rotating keys on startup

16 years agoMerge commit 'origin/unstable' into auth
Yehuda Sadeh [Tue, 22 Sep 2009 17:06:47 +0000 (10:06 -0700)]
Merge commit 'origin/unstable' into auth

Conflicts:

src/osd/OSD.cc

16 years agomonclient: change pick_new_mon -> reopen_session
Sage Weil [Tue, 22 Sep 2009 16:59:23 +0000 (09:59 -0700)]
monclient: change pick_new_mon -> reopen_session

16 years agomonclient: avoid dup subscribe messages
Sage Weil [Tue, 22 Sep 2009 16:58:07 +0000 (09:58 -0700)]
monclient: avoid dup subscribe messages

16 years agoosd: subscribe to monmap
Sage Weil [Tue, 22 Sep 2009 16:55:21 +0000 (09:55 -0700)]
osd: subscribe to monmap

16 years agotodo
Sage Weil [Mon, 21 Sep 2009 23:52:40 +0000 (16:52 -0700)]
todo

16 years agokclient: fix le encoding bugs (yay sparse)
Sage Weil [Mon, 21 Sep 2009 23:52:19 +0000 (16:52 -0700)]
kclient: fix le encoding bugs (yay sparse)

16 years agokclient: clean whitespace
Sage Weil [Mon, 21 Sep 2009 23:49:56 +0000 (16:49 -0700)]
kclient: clean whitespace

16 years agokclient: include object name in DATALOC ioctl result
Sage Weil [Mon, 21 Sep 2009 23:40:00 +0000 (16:40 -0700)]
kclient: include object name in DATALOC ioctl result

16 years agoauth: fix merge
Yehuda Sadeh [Mon, 21 Sep 2009 23:38:18 +0000 (16:38 -0700)]
auth: fix merge

16 years agoMerge commit 'origin/unstable' into auth
Yehuda Sadeh [Mon, 21 Sep 2009 23:35:01 +0000 (16:35 -0700)]
Merge commit 'origin/unstable' into auth

Conflicts:

src/mon/MonClient.cc
src/mon/MonClient.h

16 years agoauth: fix deadlock
Yehuda Sadeh [Mon, 21 Sep 2009 23:31:05 +0000 (16:31 -0700)]
auth: fix deadlock

16 years agokclient: include ioctl-number doc file in patch set
Sage Weil [Mon, 21 Sep 2009 23:26:50 +0000 (16:26 -0700)]
kclient: include ioctl-number doc file in patch set

16 years agokclient: no need for static ceph_buffer
Sage Weil [Mon, 21 Sep 2009 23:26:35 +0000 (16:26 -0700)]
kclient: no need for static ceph_buffer

16 years agoauth: entity can request rotating keys (in progress)
Yehuda Sadeh [Mon, 21 Sep 2009 22:59:15 +0000 (15:59 -0700)]
auth: entity can request rotating keys (in progress)

16 years agomds: fix mds standby map handling
Sage Weil [Mon, 21 Sep 2009 22:11:07 +0000 (15:11 -0700)]
mds: fix mds standby map handling

Borken by c6ddbdb4671b3594f9b4d5f54b65f8525935758b

16 years agomon: consolidate sub request msgs; cleaner api
Sage Weil [Mon, 21 Sep 2009 21:55:59 +0000 (14:55 -0700)]
mon: consolidate sub request msgs; cleaner api

Caller must call renew_subs() explicitly when they want to start
the subscription(s).

16 years agomon: allow sub for monmap
Sage Weil [Mon, 21 Sep 2009 21:45:45 +0000 (14:45 -0700)]
mon: allow sub for monmap

16 years agomon: fix up subscribe infrastructure to use msgr connection for sessions
Sage Weil [Mon, 21 Sep 2009 21:30:19 +0000 (14:30 -0700)]
mon: fix up subscribe infrastructure to use msgr connection for sessions

Session state is now cleaned up when connections drop.  More
efficient in-memory structures.

16 years agomsgr: pass Connection* to msgr error handlers
Sage Weil [Mon, 21 Sep 2009 21:24:35 +0000 (14:24 -0700)]
msgr: pass Connection* to msgr error handlers

This lets the error handlers get at session state (if any).

16 years agomon: fix client id preallocation
Sage Weil [Mon, 21 Sep 2009 21:06:15 +0000 (14:06 -0700)]
mon: fix client id preallocation

Broken by b2c7655093821710aac2b4d35ccb1740429eb402

16 years agomonclient: send a single mount request
Sage Weil [Mon, 21 Sep 2009 21:05:57 +0000 (14:05 -0700)]
monclient: send a single mount request

16 years agouclient: use ref in constructor for MClientRequest
Sage Weil [Fri, 18 Sep 2009 04:41:04 +0000 (21:41 -0700)]
uclient: use ref in constructor for MClientRequest

16 years agoauth: more than 1 rotating key per service, key id
Yehuda Sadeh [Mon, 21 Sep 2009 18:03:05 +0000 (11:03 -0700)]
auth: more than 1 rotating key per service, key id

16 years agoauthmon: distribute rotating keys
Yehuda Sadeh [Sat, 19 Sep 2009 00:07:22 +0000 (17:07 -0700)]
authmon: distribute rotating keys

16 years agokclient: two msgpool modes: blocking (ala mempool_t) and !blocking (strict)
Sage Weil [Fri, 18 Sep 2009 23:41:38 +0000 (16:41 -0700)]
kclient: two msgpool modes: blocking (ala mempool_t) and !blocking (strict)

Only warn on !blocking pool depletion!

16 years agokclient: fix symlink kmalloc under spinlock
Sage Weil [Fri, 18 Sep 2009 23:32:26 +0000 (16:32 -0700)]
kclient: fix symlink kmalloc under spinlock

16 years agostrerror -> strerror_r
Sage Weil [Fri, 18 Sep 2009 23:17:04 +0000 (16:17 -0700)]
strerror -> strerror_r

16 years agokclient: rename msgpool type
Sage Weil [Fri, 18 Sep 2009 21:57:35 +0000 (14:57 -0700)]
kclient: rename msgpool type

16 years agokclient: use msgpools for osd requests, replies
Sage Weil [Fri, 18 Sep 2009 21:54:04 +0000 (14:54 -0700)]
kclient: use msgpools for osd requests, replies

16 years agouclient: fix null pointer ref
Sage Weil [Fri, 18 Sep 2009 21:18:43 +0000 (14:18 -0700)]
uclient: fix null pointer ref

16 years agokclient: fix up ceph_client init error handling
Sage Weil [Fri, 18 Sep 2009 21:15:44 +0000 (14:15 -0700)]
kclient: fix up ceph_client init error handling

16 years agokclient: fix patchset comment
Sage Weil [Fri, 18 Sep 2009 21:05:10 +0000 (14:05 -0700)]
kclient: fix patchset comment

16 years agokclient: fall back to WARN + new allocation if msgpool is depleted
Sage Weil [Fri, 18 Sep 2009 21:04:50 +0000 (14:04 -0700)]
kclient: fall back to WARN + new allocation if msgpool is depleted

16 years agokclient: use msgpools for other monc messages
Sage Weil [Fri, 18 Sep 2009 20:08:25 +0000 (13:08 -0700)]
kclient: use msgpools for other monc messages

16 years agokclient: add back msgpools
Sage Weil [Fri, 18 Sep 2009 20:01:22 +0000 (13:01 -0700)]
kclient: add back msgpools

This reverts commit b985882aa27fea1d1ed92b09b6057be961c56c0a.

16 years agokclient: add GET_DATALOC ioctl to get object location, osd addr
Sage Weil [Fri, 18 Sep 2009 19:45:48 +0000 (12:45 -0700)]
kclient: add GET_DATALOC ioctl to get object location, osd addr

16 years agoauth: authmon incremenetal can hold rotating key
Yehuda Sadeh [Fri, 18 Sep 2009 18:45:17 +0000 (11:45 -0700)]
auth: authmon incremenetal can hold rotating key

16 years agoauth: keep keys in single data structure
Yehuda Sadeh [Fri, 18 Sep 2009 18:24:26 +0000 (11:24 -0700)]
auth: keep keys in single data structure

16 years agoauth: some authmon fixes
Yehuda Sadeh [Fri, 18 Sep 2009 17:08:25 +0000 (10:08 -0700)]
auth: some authmon fixes

16 years agouclient: _removexattr should be naming the xattr to remove!
Greg Farnum [Fri, 18 Sep 2009 00:25:04 +0000 (17:25 -0700)]
uclient: _removexattr should be naming the xattr to remove!

16 years agouclient: Add functions/data members for preemptive cap dropping.
Greg Farnum [Fri, 18 Sep 2009 00:22:42 +0000 (17:22 -0700)]
uclient: Add functions/data members for preemptive cap dropping.

16 years agoMClientRequest: Releases should have a constructor
Greg Farnum [Thu, 17 Sep 2009 18:16:33 +0000 (11:16 -0700)]
MClientRequest: Releases should have a constructor

16 years agouclient: First pass at encode_cap_release function; not used.
Greg Farnum [Wed, 16 Sep 2009 00:32:01 +0000 (17:32 -0700)]
uclient: First pass at encode_cap_release function; not used.

16 years agouclient: Move the MetaRequest to MClientRequest into its own code, and
Greg Farnum [Tue, 15 Sep 2009 20:08:25 +0000 (13:08 -0700)]
uclient: Move the MetaRequest to MClientRequest into its own code, and
cut out the payload encode/decode since MClientRequests are now made
from MetaRequests.

Oh, and there are no issues with rebuilding messages -- false alarm!

16 years agouclient: The basic passing mechanism is now a MetaRequest. It seems to work.
Greg Farnum [Tue, 15 Sep 2009 18:40:52 +0000 (11:40 -0700)]
uclient: The basic passing mechanism is now a MetaRequest. It seems to work.

More bug-testing is needed, though, as rebuilding messages in send_message
is finicky at best...

16 years agouclient: Make the uclient work properly with the new MetaRequest structure.
Greg Farnum [Mon, 14 Sep 2009 23:31:35 +0000 (16:31 -0700)]
uclient: Make the uclient work properly with the new MetaRequest structure.

16 years agouclient: MetaRequests are going to be how we pass requests around;
Greg Farnum [Mon, 14 Sep 2009 22:40:14 +0000 (15:40 -0700)]
uclient: MetaRequests are going to be how we pass requests around;
repurpose them so they don't require an MClientRequest.

ALSO, convert the mds member from a map to an int.

16 years agoHadoop: Minor fixes and style changes to satisfy Hadoop's FindBugs system.
Greg Farnum [Mon, 14 Sep 2009 17:46:39 +0000 (10:46 -0700)]
Hadoop: Minor fixes and style changes to satisfy Hadoop's FindBugs system.
Remove a few deprecated methods.

16 years agoauth: add authmon handling
Yehuda Sadeh [Thu, 17 Sep 2009 23:31:58 +0000 (16:31 -0700)]
auth: add authmon handling

16 years agokclient: fix osd request kicking
Sage Weil [Thu, 17 Sep 2009 23:15:21 +0000 (16:15 -0700)]
kclient: fix osd request kicking

We often need to kick the request to the same osd.  Keep track of
an osd incarnation, incremented each time we reset_osd or see the
connection drop, and kick requests when the incarnation doesn't
match.

16 years agomon: fix bug with client id assignment of -1
Sage Weil [Thu, 17 Sep 2009 22:57:06 +0000 (15:57 -0700)]
mon: fix bug with client id assignment of -1

16 years agokclient: avoid no-op dir cap release when no dentry lease
Sage Weil [Thu, 17 Sep 2009 22:56:43 +0000 (15:56 -0700)]
kclient: avoid no-op dir cap release when no dentry lease

Make release logic a bit smarter: only force inclusion of dir
cap release if there is a dentry lease to start with.

16 years agokclient: make mds console msgs consistent
Sage Weil [Thu, 17 Sep 2009 22:29:09 +0000 (15:29 -0700)]
kclient: make mds console msgs consistent

16 years agomonc: pick monitor before sending initial mount
Sage Weil [Thu, 17 Sep 2009 21:56:34 +0000 (14:56 -0700)]
monc: pick monitor before sending initial mount

16 years agouclient: implement basic I_COMPLETE support
Sage Weil [Thu, 17 Sep 2009 21:54:36 +0000 (14:54 -0700)]
uclient: implement basic I_COMPLETE support

16 years agouclient: factor out command cap issue checks
Sage Weil [Thu, 17 Sep 2009 21:25:55 +0000 (14:25 -0700)]
uclient: factor out command cap issue checks

rdcache_gen, shared_gen

16 years agomds: minor comments
Sage Weil [Thu, 17 Sep 2009 21:16:05 +0000 (14:16 -0700)]
mds: minor comments

16 years agokclient: move some inode update code inside i_lock
Sage Weil [Thu, 17 Sep 2009 21:15:53 +0000 (14:15 -0700)]
kclient: move some inode update code inside i_lock

16 years agokclient: use shared_gen, not cache_gen, for I_COMPLETE tracking
Sage Weil [Thu, 17 Sep 2009 21:15:39 +0000 (14:15 -0700)]
kclient: use shared_gen, not cache_gen, for I_COMPLETE tracking