summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* mon: MonitorDBStore: use get() on exists() instead of lower_bound()wip-4521Joao Eduardo Luis2013-04-241-0/+6
| | | | | | This works around an issue with leveldb. Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
* mon: MonitorDBStore: force exists(str,v) to use our own exists(str,str)Joao Eduardo Luis2013-04-241-1/+2
| | | | Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
* MonitorDBStore fooJoao Eduardo Luis2013-04-231-1/+1
|
* barJoao Eduardo Luis2013-04-231-0/+3
|
* ceph_mon_kvstore_fix: fooJoao Eduardo Luis2013-04-231-0/+4
| | | | Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
* ceph.install: add ceph_mon_kvstore_fixDanny Al-Gaaf2013-04-231-0/+1
| | | | Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* ceph.spec.in: add ceph_mon_kvstore_fix to ceph packageDanny Al-Gaaf2013-04-231-0/+1
| | | | Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* mon: ceph_mon_kvstore_fix: fix store conversion bug manuallyJoao Eduardo Luis2013-04-233-0/+747
| | | | | | | | | | This tool is to be used to fix the cause of #4521, and it will take an old-format store and convert all the osdmap's full versions to the new-format k/v store. Fixes: #4521 Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
* mon: MonitorDBStore: allow function override when inheriting the classJoao Eduardo Luis2013-04-231-4/+4
| | | | Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
* mon: MonitorDBStore: use stringify()Joao Eduardo Luis2013-04-231-15/+6
| | | | Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
* ceph-disk: OSD hotplug fixes for CentosGary Lowell2013-04-227-23/+131
| | | | | | | | | | | | | | Two fixes for Centos 6.3 and other systems with udev versions prior to 172. The disk peristant name using the GPT UUID does not exist, so use the by_path persistent name instead for the journal symlink. The gpt label fields are not available for use in udev rules. Add ceph-disk-udev wrapper script that extracts the partition type guid from the label and calls ceph-disk-activate if it is a ceph guid type. (Bug #4632) Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
* doc: Usage requires --num_osds.John Wilkins2013-04-221-1/+1
| | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* doc: Added some detail. Calculating PGs, maps; reorganized a bit.John Wilkins2013-04-221-117/+216
| | | | | | fixes: #2968 Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* Merge pull request #234 from ceph/wip-4758Gregory Farnum2013-04-224-2/+10
|\ | | | | | | | | Fixes #4758. Reviewed-by: Greg Farnum <greg@inktank.com>
| * mon: commit LogSummary on every messageSage Weil2013-04-222-1/+6
| | | | | | | | | | | | | | | | | | | | This moves our version pointer up so that we don't re-log (by re-consuming) log messages to /var/log/ceph/ceph.log on ceph-mon restart. OTOH, it means we rewrite the summary of the last 50 messages, but we consider that to be relatively cheap (and something we *always* did prior for bobtail and earlier anyway). Signed-off-by: Sage Weil <sage@inktank.com>
| * mon: set threshold to periodically stash_fullSage Weil2013-04-222-1/+4
|/ | | | | | | Set an interval to periodically write a full copy of the map that is lower than the trim point (which is generally a very large number of commits). Signed-off-by: Sage Weil <sage@inktank.com>
* Merge pull request #230 from ceph/wip-mon-paxos-fixesSage Weil2013-04-227-9/+40
|\ | | | | | | | | | | Wip mon paxos fixes Reviewed-by: Greg Farnum <greg@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
| * mon: PaxosService: fix trim criteria so to avoid constantly trimmingJoao Eduardo Luis2013-04-186-7/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Say a service establishes it will only keep 500 versions once a given condition X is true. Now say that said condition X only becomes true after said service committing some 800 versions. Once we decide to trim, this service would trim all 300 surplus versions in one go. After that, each committed version would also trim the previous version. Trimming an unbounded number of versions is not a good practice as it will generate bigger transactions (thus a greater workload on leveldb) and therefore bigger messages too. Constantly trimming versions implies more frequent accesses to leveldb, and keeping around a couple more versions won't hurt us in any significant way, so let us put off trimming unless we go over a predefined minimum. This patch adds two new options: paxos service trim min - minimum amount of versions to trigger a trim (default: 30, 0 disables it) paxos service trim max - maximum amount of versions to trim during a single proposal (default: 50, 0 disables it) Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
| * mon: Paxos: increase debug levels for proposal listingJoao Eduardo Luis2013-04-181-2/+2
| | | | | | | | Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
* | Merge pull request #225 from ceph/wip-4543Gregory Farnum2013-04-226-28/+155
|\ \ | | | | | | | | | | | | Fixes #4543 Reviewed-by: Greg Farnum <greg@inktank.com>
| * | ceph-mon: Attempt to obtain monmap from several possible sourcesJoao Eduardo Luis2013-04-221-19/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order of interest/priority: - our latest monmap version - a backup monmap version created during sync start, if the store appears to be in a post-aborted sync state - a mkfs monmap version If none of these are found, we should go ahead and try to build a monmap from ceph.conf to join an existing cluster. Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
| * | mon: Monitor: backup monmap prior to starting a store syncJoao Eduardo Luis2013-04-222-8/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | If by fate we end up attempting a store sync after failing at least one before, we might not have a monmap to read from the store to backup. Therefore, in that case, we shall backup the current monmap being used by the monitor. Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
| * | mon: MonmapMonitor: add function to obtain latest monmapJoao Eduardo Luis2013-04-222-0/+33
| | | | | | | | | | | | Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
| * | mon: PaxosService: add 'exists_key/version' helper functionsJoao Eduardo Luis2013-04-221-1/+10
| | | | | | | | | | | | Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
* | | rgw: don't send tail to gc if copying object to itselfYehuda Sadeh2013-04-222-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #4776 Backport: bobtail Need to make sure that when copying an object into itself we don't send the tail to the garbage collection. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
* | | Merge pull request #232 from ceph/wip-4710Josh Durgin2013-04-221-4/+8
|\ \ \ | | | | | | | | Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
| * | | rbd: only set STRIPINGV2 feature when neededSage Weil2013-04-221-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only set the STRIPINGV2 feature if the striping parameters are non-default. Specifically, fix the case where the passed-in size and count are == 0. Fixes: #4710 Signed-off-by: Sage Weil <sage@inktank.com>
| * | | rbd: fix feature display for --infoSage Weil2013-04-221-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Only include the feature if it is set! Backport: bobtail Signed-off-by: Sage Weil <sage@inktank.com>
* | | | Merge pull request #233 from ceph/wip-mon-idempotentSage Weil2013-04-221-3/+3
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Wip mon idempotent Reviewed-by: Dan Mick <dan.mick@inktank.com>
| * | | mon: make 'osd pool rmsnap ...' idempotentSage Weil2013-04-221-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sage Weil <sage@inktank.com>
| * | | mon: make 'osd pool mksnap ...' idempotentSage Weil2013-04-221-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sage Weil <sage@inktank.com>
| * | | mon: make 'osd blacklist rm ...' idempotentSage Weil2013-04-221-1/+1
|/ / / | | | | | | | | | Signed-off-by: Sage Weil <sage@inktank.com>
* | | rbd: avoid clobbering return value with udevadm settleSage Weil2013-04-221-3/+3
| | | | | | | | | | | | | | | Fixes: #4707 Signed-off-by: Sage Weil <sage@inktank.com>
* | | FileJournal: a valid entry after invalid entry =/=> corruptSamuel Just2013-04-221-33/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Out of order journal entry writes using aio may cause entry n+2 to be written prior to n. This does not indicate corruption. Fixes: #4736 Signed-off-by: Samuel Just <sam.just@inktank.com> Reviewed-by: Greg Farnum <greg@inktank.com>
* | | radosgw: Fix duplicate 'Content-Type' when using 'response-content-type'Sylvain Munaut2013-04-221-2/+3
| | | | | | | | | | | | | | | Signed-off-by: Sylvain Munaut <s.munaut@whatever-company.com> Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
* | | ceph-create-keys: Don't wait if permission deniedGary Lowell2013-04-211-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | If get or create keys returns permssion denied, exit gracefully instead of retrying. Signed-off-by: Gary Lowell <gary.lowell@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
* | | doc: Aesthetic improvements. Removed unnecessary graphic and overrode margin ↵John Wilkins2013-04-201-4/+1
| | | | | | | | | | | | | | | | | | for h3 tag. Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | | doc: Added a scenario to PG troubleshooting.John Wilkins2013-04-201-0/+12
| | | | | | | | | | | | Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | | doc: Changed usage to "bucket-name". Description was okay.John Wilkins2013-04-201-1/+1
| | | | | | | | | | | | | | | | | | fixes: #4102 Signed-off-by: John Wilkins <john.wilkins@inktank.com>
* | | Merge branch 'wip-4201' into nextDavid Zafman2013-04-196-80/+1128
|\ \ \ | | | | | | | | | | | | Reviewed-by: Samuel Just <sam.just@inktank.com>
| * | | tools/ceph-filestore-dump: Implement remove, export and importDavid Zafman2013-04-191-61/+1073
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change local names to be clearer Break real_log() into common function get_log() Move infos_oid, biginfo_oid and log_oid to globals for general use Feature: #4201 (osd: data loss: pg export/import/remove) Signed-off-by: David Zafman <david.zafman@inktank.com>
| * | | tools/ceph-filestore-dump: Error messages lost because stderr is closedDavid Zafman2013-04-191-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use cout instead of cerr for command errors Use cerr for debug mode because stderr is avail Output map_epoch in debug mode Fix a message and only for debug mode Signed-off-by: David Zafman <david.zafman@inktank.com>
| * | | osd: Make clear_temp() public for use by removeDavid Zafman2013-04-191-2/+1
| | | | | | | | | | | | | | | | Signed-off-by: David Zafman <david.zafman@inktank.com>
| * | | osd: Add flag to force version write in _write_info()David Zafman2013-04-192-3/+3
| | | | | | | | | | | | | | | | Signed-off-by: David Zafman <david.zafman@inktank.com>
| * | | osd: Create static PG::_write_log() functionDavid Zafman2013-04-192-4/+11
| | | | | | | | | | | | | | | | Signed-off-by: David Zafman <david.zafman@inktank.com>
| * | | osd: Create new static function PG::_write_info() for use by PG importDavid Zafman2013-04-192-5/+27
| | | | | | | | | | | | | | | | Signed-off-by: David Zafman <david.zafman@inktank.com>
| * | | osd: Add OSD::make_infos_oid() as common function to create oidDavid Zafman2013-04-192-1/+5
| | | | | | | | | | | | | | | | Signed-off-by: David Zafman <david.zafman@inktank.com>
| * | | filestore, osd: Fixes to comform to programming guidelinesDavid Zafman2013-04-192-3/+6
| | | | | | | | | | | | | | | | Signed-off-by: David Zafman <david.zafman@inktank.com>
* | | | Merge branch 'wip_4662_clean' into nextSamuel Just2013-04-1912-109/+343
|\ \ \ \ | | | | | | | | | | | | | | | Reviewed-by: Greg Farnum <greg@inktank.com>
| * | | | ReplicatedPG::_finish_mark_all_unfound_lost: only requeue if !deletingSamuel Just2013-04-191-1/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Samuel Just <sam.just@inktank.com>