Feature #9189
closedExpose client identifying metadata to MDS, e.g. hostname
0%
Description
Currently, when doing e.g. a "session ls" on an MDS's admin socket, we get client IDs and IP addresses. It would be much nicer for admins trying to identify/debug/kill bad sessions if we could also tell them a hostname or other friendly identifier for the client.
This could take the form of a metadata map<string,string> included in MClientSession. The client would by default populate it with 'hostname' (or fqdn?) and 'mountpoint' keys. It should also look for an environment variable (fuse) or mount flag (kernel) that would allow users to add/override metadata. Then on the MDS side keep this metadata in Session and use it when doing output for e.g. session ls or any future session management stuff.
Updated by John Spray over 9 years ago
- Status changed from New to Fix Under Review
Updated by John Spray over 9 years ago
Userspace part merged:
commit 51eeb3340e05a214702f328ad62f7775b2abbeb4 Merge: 66deda4 288f05a Author: John Spray <jcspray@gmail.com> Date: Wed Sep 17 13:47:27 2014 +0100 Merge pull request #2496 from ceph/wip-9189 #9375 and #9189 - add client metadata and improve health messages Reviewed-by: Greg Farnum greg@inktank.com
kclient metadata stuff pending review here: https://github.com/ceph/ceph-client/pull/6
Updated by Zheng Yan over 9 years ago
- Status changed from Fix Under Review to Resolved