summaryrefslogtreecommitdiff
path: root/src/ceph_osd.cc
Commit message (Collapse)AuthorAgeFilesLines
* osd: Make --get-journal-fsid not really start the osd.Sage Weil2012-10-051-7/+8
| | | | | | | | This way, it won't need -i ID and it won't access the osd_data_dir. That makes it useful for locating the right osd to use with an external journal partition. Signed-off-by: Tommi Virtanen <tv@inktank.com>
* osd: close stderr on daemonizeSage Weil2012-06-191-2/+2
| | | | | | | | This spams stderr in an ugly way. Users should look at the logs. In particular, filestore upgrades spam the console, which is unpleasant. Signed-off-by: Sage Weil <sage@inktank.com>
* ceph_osd: move auto-upgrade to after forkSamuel Just2012-06-181-4/+11
| | | | Signed-off-by: Samuel Just <sam.just@inktank.com>
* misc assert #include cleanup, hackerySage Weil2012-06-071-1/+1
| | | | Signed-off-by: Sage Weil <sage@inktank.com>
* make everyone use our assert #include and macroSage Weil2012-06-061-0/+2
| | | | | | ...as detected by the previous patch. Signed-off-by: Sage Weil <sage@inktank.com>
* OSD,FileStore: clean up filestore convsersionSamuel Just2012-06-051-2/+5
| | | | | | | | | | | Previously, we messed with the filestore_update_collections config option to enable upgrades in the filestore. We now pass that in as a parameter to the FileStore,IndexManager constructors. Further, the user must now specify the version to which to update in order to prevent accidental updates. Signed-off-by: Samuel Just <sam.just@inktank.com>
* OSD: exit(0) once filestore is convertedSamuel Just2012-06-051-8/+3
| | | | | | Also, do not upgrade filestore automatically Signed-off-by: Samuel Just <sam.just@dreamhost.com>
* osd: do not clobber existing key with --mkkeySage Weil2012-05-231-10/+18
| | | | Signed-off-by: Sage Weil <sage@inktank.com>
* osd: --get-{osd,journal}-uuid synonyms for --get-{osd,journal}-fsidSage Weil2012-05-011-2/+2
| | | | Signed-off-by: Sage Weil <sage@newdream.net>
* msgr: name messengersSage Weil2012-04-301-6/+6
| | | | | | | 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>
* throttle: feed cct, name, and add loggingSage Weil2012-04-301-1/+2
| | | | | Signed-off-by: Sage Weil <sage.weil@dreamhost.com> Reviewed-by: Greg Farnum <gregory.farnum@dreamhost.com>
* osd: fix heartbeat set_port()Sage Weil2012-04-101-1/+2
| | | | | | | set_port() fails an assert if it isn't an in4 or in6 address, which a default entity_addr_t is not. Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* osd: allow users to specify the osd heartbeat server address.Greg Farnum2012-04-101-2/+4
| | | | | | Reported-by: Nick Bartos <nick@pistoncloud.com> Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com> Reviewed-by: Sage Weil <sage.weil@dreamhost.com>
* Merge remote-tracking branch 'gh/wip-log'Sage Weil2012-03-301-0/+2
|\ | | | | | | | | Conflicts: src/common/config_opts.h
| * 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>
* | osd: rename hbin -> hbclient, hbout -> hbserverSage Weil2012-03-301-14/+14
| | | | | | | | | | | | This is way less confusing. Signed-off-by: Sage Weil <sage@newdream.net>
* | osd: simplify heartbeat logicSage Weil2012-03-301-0/+5
|/ | | | | | | | | | Simplify heartbeats to use a simple request/reply model. - avoid any weirdness with map update timing - no from/to distinction - lossy client/server model Signed-off-by: Sage Weil <sage@newdream.net>
* msgr: switch all users over to abstract interfaceSage Weil2012-03-141-13/+13
| | | | | | 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: remove refcounting of Messengers.Greg Farnum2012-03-021-4/+4
| | | | | | | This was pretty pointless since each Messenger has a well-defined exit point and shutdown process. Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
* msgr: make nonce a required part of the SimpleMessenger constructor.Greg Farnum2012-03-021-8/+12
| | | | | | | 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-15/+15
| | | | | | 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-4/+7
| | | | | | 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-2/+3
| | | | | | | 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-9/+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>
* osd: unregister signal handlers on shutdownSage Weil2012-02-291-0/+4
| | | | Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* ceph-osd: clarify error messagesSage Weil2012-02-281-2/+2
| | | | | | So we know where the error came from. And use real error codes in init(). Signed-off-by: Sage Weil <sage@newdream.net>
* msgr: promote SimpleMessenger::Policy to Messenger::PolicySage Weil2012-02-181-15/+15
| | | | | | This is part of the generic interface, not specific to the implementation. Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* osd: install async signal handlers for SIG{HUP,INT,TERM}Sage Weil2012-02-141-5/+21
| | | | Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* add CEPH_FEATURE_OSDENCSage Weil2012-02-131-2/+4
| | | | | | | | | | | | Require it for osd <-> osd and osd <-> mon communication. This covers all the new encoding changes, except hobject_t, which is used between the rados command line tool and the OSD for a object listing position marker. We can't distinguish between specific types of clients, though, and we don't want to introduce any incompatibility with other clients, so we'll just have to make do here. :( Signed-off-by: Sage Weil <sage@newdream.net>
* osd: PG::Log::Entry -> pg_log_entry_tSage Weil2012-02-011-1/+1
| | | | Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* features: #include ceph_features directly where neededSage Weil2012-01-231-0/+1
| | | | | | Less rebuild time when touched. Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* osd: implement --dump-journalSage Weil2012-01-201-0/+19
| | | | | | | Dump the contents of the journal to stdout in text form. Useful for debugging. Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* 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-041-0/+4
| | | | | | | | | | | | Replace case statement based on my_type. Signed-off-by: Sage Weil <sage@newdream.net>
* | osd: fix bind error checksSage Weil2012-01-171-2/+2
| | | | | | | | Signed-off-by: Sage Weil <sage@newdream.net>
* | osd: abort on startup if we fail to bind to a portSage Weil2012-01-171-1/+7
|/ | | | Signed-off-by: Sage Weil <sage@newdream.net>
* osd: --get-journal-fsidSage Weil2011-12-191-0/+10
| | | | Signed-off-by: Sage Weil <sage@newdream.net>
* osd: --get-osd-fsid and --get-cluster-fsidSage Weil2011-12-191-3/+18
| | | | 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, 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
* osd: Remove unused variable.Tommi Virtanen2011-11-211-1/+0
|
* use libuuid for fsidSage Weil2011-11-111-1/+2
| | | | Signed-off-by: Sage Weil <sage@newdream.net>
* osdN -> osd.NSage Weil2011-09-271-2/+2
| | | | Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* rename source files c* -> ceph-*Sage Weil2011-09-231-0/+363
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>