Project

General

Profile

Actions

Feature #9189

closed

Expose client identifying metadata to MDS, e.g. hostname

Added by John Spray over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:

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.

Actions #1

Updated by John Spray over 9 years ago

  • Status changed from New to Fix Under Review
Actions #2

Updated by John Spray over 9 years ago

  • Assignee set to John Spray
Actions #3

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

Actions #4

Updated by Zheng Yan over 9 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF