summaryrefslogtreecommitdiffstats
path: root/src/ceph_mds.cc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #2629 from dachary/wip-heap-profilerLoic Dachary2014-10-091-0/+3
|\ | | | | | | | | | | perfglue: minors heap profiler updates and documentation Reviewed-by: Jianpeng Ma <majianpeng@gmail.com>
| * mon,mds: call ceph_heap_profiler_init() at boot timeLoic Dachary2014-10-081-0/+3
| | | | | | | | | | | | | | So that the CEPH_HEAP_PROFILER_INIT environment variable can be used to start profiling. Signed-off-by: Loic Dachary <loic-201408@dachary.org>
* | mds: deprecation-warn on numeric mds namesJohn Spray2014-10-081-0/+6
|/ | | | | | | | To be turned into strict check in post-hammer release, so that we can always unambiguously discriminate a string into one of name, rank, gid. Signed-off-by: John Spray <john.spray@redhat.com>
* mds: introduce explicit DaemonState instead of intJohn Spray2014-07-291-2/+2
| | | | Signed-off-by: John Spray <john.spray@redhat.com>
* tools: Create cephfs-journal-toolJohn Spray2014-05-201-89/+0
| | | | | | This is for debugging/repairing CephFS journals. Signed-off-by: John Spray <john.spray@inktank.com>
* mds: Add dump-journal-entriesJohn Spray2014-02-261-1/+12
| | | | | | | This adds a somewhat-human-readable peer to the 'dump-journal' command. Signed-off-by: John Spray <john.spray@inktank.com>
* mds: Create MDSUtility as base for Dumper/ResetterJohn Spray2014-02-261-35/+16
| | | | | | | | | | | These classes has lots of similar functionality and we may want to add more similar things in the future. Also, get a copy of the MDS map at startup to learn the ID of the metadata pool instead of assuming it's the default. Signed-off-by: John Spray <john.spray@inktank.com>
* mds: Fix Dumper shutdownJohn Spray2014-02-261-0/+7
| | | | | | | | It was shutting down messenger before monclient. This caused a sometimes-assertion when monclient tried to reconnect in response to ms_handle_reset. Signed-off-by: John Spray <john.spray@inktank.com>
* ceph: Add inline data featureLi Wang2014-01-141-0/+1
| | | | | Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com> Signed-off-by: Li Wang <liwang@ubuntukylin.com>
* mds: add CEPH_FEATURE_EXPORT_PEER and bump the protocal versionYan, Zheng2013-12-161-1/+2
| | | | Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
* mon, mds, osd: add early SIGTERM injectionSage Weil2013-07-201-0/+3
| | | | | | | | | | | This makes it easy to identify problems with (early) shutdown with a loop like while [ ! -e core ] ; do ./ceph-mds -i a -c ceph.conf -f ; done and a vstart cluster. Signed-off-by: Sage Weil <sage@inktank.com>
* mds: put g_ceph_context on shutdownSage Weil2013-07-201-2/+3
| | | | | | This makes us shut down lots of threads. Signed-off-by: Sage Weil <sage@inktank.com>
* mds: install signal handlers after initSage Weil2013-07-201-9/+10
| | | | Signed-off-by: Sage Weil <sage@inktank.com>
* Merge branch 'next'Sage Weil2013-05-231-0/+1
|\
| * osd, mds: shut down async signal handler on exitSage Weil2013-05-221-0/+1
| | | | | | | | Signed-off-by: Sage Weil <sage@inktank.com>
* | ceph-mds: specify which types of addresses to pickJoao Eduardo Luis2013-05-221-1/+1
|/ | | | Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
* mds: fix usage typo for ceph-mdsSam Lang2013-01-161-1/+1
| | | | Signed-off-by: Sam Lang <sam.lang@inktank.com>
* mds: shutdown cleanly if can't authenticateYehuda Sadeh2012-12-121-3/+5
| | | | | | | | | | | Fixes: #3590 This was triggered when tried to run mds with cephx enabled against a mon without cephx support. We didn't handle the returned error at all, so this one fixes it. It also makes sure that we don't continue initialization until rotating keys are in place (as the osd does). Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* ceph_mds.cc: remove twice included sys/stat.hDanny Al-Gaaf2012-11-281-1/+0
| | | | | | Fix includes: remove twice included sys/stat.h Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* Code to allow pipes to be prepared to sign messages and to call the ↵Peter Reiher2012-10-011-1/+2
| | | | | | authentication methods for signing and checking. Signed-off-by: Peter Reiher <reiher@inktank.com>
* global: fix version banner in log on startupSage Weil2012-08-141-2/+0
| | | | | | | | Log banner from global_init(). This puts it at the very top of the log, right when the daemon starts. Fixes: #2940 Signed-off-by: Sage Weil <sage@inktank.com>
* msgr: indicate whether clients are lossySage Weil2012-07-211-4/+4
| | | | | | | | | | | We need to know whether the client is lossy before we connect to the peer in order to know whether to deliver a RESET event or not on connection failure. Lossy clients get one, lossless do not. And in any case, we know ahead of time, so we may as well indicate as much in the Policy. Signed-off-by: Sage Weil <sage@inktank.com>
* make everyone use our assert #include and macroSage Weil2012-06-071-0/+2
| | | | | | ...as detected by the previous patch. Signed-off-by: Sage Weil <sage@inktank.com>
* msgr: name messengersSage Weil2012-05-011-2/+2
| | | | | | | Give each Messenger a logical name describing its role. For instance, the OSD will have client, cluster, and heartbeat messengers. Signed-off-by: Sage Weil <sage@newdream.net>
* log: new logging infrastructureSage Weil2012-03-271-0/+2
| | | | | | | | | - explicitly defined subsystems, and ceph_subsys_FOO enums to go with them - modular log system with Entry object - separate gather level and log level - drop lots of DoutStreambuf hackery Signed-off-by: Sage Weil <sage@newdream.net>
* msgr: switch all users over to abstract interfaceSage Weil2012-03-151-7/+7
| | | | | | This will let us transparently swap implementations out. Signed-off-by: Sage Weil <sage@newdream.net>
* config: alternative config options for global_init()Yehuda Sadeh2012-03-121-1/+1
| | | | | | | | | | | We want to be able to provide alternative default config values, than the ones we set in common/config_opts.h. This can be useful when we want different default for different modules (e.g., rgw, rgw-admin). Just passing it on the command line won't do because then we'd override any config set by the user, so we need to process that before the regular parsing (but after initializing the config context). Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
* msgr: remove SimpleMessenger::get_ms_addr() in favor of Messenger::get_myaddrGreg Farnum2012-03-071-1/+1
| | | | | | | And fix the comments on set_ip. Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com> Reviewed-by: Sage Weil <sage.weil@dreamhost.com>
* msgr: make nonce a required part of the SimpleMessenger constructor.Greg Farnum2012-03-021-4/+4
| | | | | | | With that, remove the set_nonce function and the gratuitous passing of nonce around through layers of functions. Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
* msgr: Require that init functions are called before bind() and start().Greg Farnum2012-03-021-4/+4
| | | | | | Fix up callers to handle these constraints. Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
* msgr: Remove the SimpleMessenger::bind() nonce parameter.Greg Farnum2012-03-021-2/+3
| | | | | | Instead, use the just-established nonce value. Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
* msgr: Remove the SimpleMessenger start/start_with_nonce distinction.Greg Farnum2012-03-021-0/+1
| | | | | | | Instead, have a settable nonce value that you can fill in any time after construction and that it uses during regular start(). Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
* msgr: Remove SimpleMessenger::register_entityGreg Farnum2012-03-021-3/+4
| | | | | | | | | This function has been vestigial for a long time. Remove it and move its remaining functionality into the constructor. Update users to the new interface (this is remarkably easy and simplifies the code). Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
* mds: unregister SIGHUP tooSage Weil2012-02-291-0/+1
| | | | Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* Fix ceph-mds --journal-resetAlexandre Oliva2012-02-231-0/+1
| | | | | | | | Complete configuration initialization for special actions, and hold Resetter lock while running reset. Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br> Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* msgr: promote SimpleMessenger::Policy to Messenger::PolicySage Weil2012-02-191-7/+7
| | | | | | This is part of the generic interface, not specific to the implementation. Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* mds: remove pidfileSage Weil2012-02-151-2/+6
| | | | Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* mds: install async signal handlers for SIG{HUP,INT,TERM}Sage Weil2012-02-151-1/+22
| | | | Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* features: #include ceph_features directly where neededSage Weil2012-01-231-0/+2
| | | | | | Less rebuild time when touched. Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* Merge remote branch 'gh/master' into wip-op-data-muxSage Weil2012-01-181-2/+9
|\
| * Merge remote branch 'gh/wip-backfill'Sage Weil2012-01-171-0/+3
| |\ | | | | | | | | | | | | | | | | | | | | | Reviewed-by: Samuel Just <samuel.just@dreamhost.com> Conflicts: src/ceph_mds.cc src/ceph_osd.cc
| | * msgr: explicitly specify internal cluster protocolSage Weil2012-01-051-0/+2
| | | | | | | | | | | | | | | | | | Replace case statement based on my_type. Signed-off-by: Sage Weil <sage@newdream.net>
| * | mds: abort startup if we fail to bindSage Weil2012-01-171-2/+6
| |/ | | | | | | Signed-off-by: Sage Weil <sage@newdream.net>
* / mds: require OSDREPLYMUX feature bitSage Weil2012-01-141-1/+3
|/ | | | | | | We use ObjectOperations now and need a new server to decompose replies into their constituent components. Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* global: make daemon banner print explicitSage Weil2011-12-011-0/+2
| | | | | | | This eliminates some flags and avoids annoying cases where the banner is printed but we don't want to see it. Signed-off-by: Sage Weil <sage@newdream.net>
* mds: fix usage textSage Weil2011-12-011-1/+1
| | | | | | Filename is not optional. Signed-off-by: Sage Weil <sage@newdream.net>
* mds, osd, synclient: Pick cluster_addr/public_addr based on *_network.Tommi Virtanen2011-11-211-0/+3
| | | | | | | | | | | | | | | | | | Instead of specifying an IP address in ceph.conf like [global] cluster_addr = 10.1.2.3 you can now avoid the node-specific configuration and just say [global] cluster_network = 10.1.2.0/24 The *_network variables can also take a whitespace-separated list of networks, to be checked in that order: [global] cluster_network = 10.1.2.0/24 192.168.42.192/26
* msg: Move public_addr use outside ->bind()Tommi Virtanen2011-11-211-2/+2
|
* mdsN -> mds.NSage Weil2011-09-281-4/+4
| | | | Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* rename source files c* -> ceph-*Sage Weil2011-09-231-0/+275
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>