Commit Graph

33907 Commits

Author SHA1 Message Date
Sage Weil
297f6169fe crush: add get_rule_weight_map
Calculate a weight map of OSDs for a given rule.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-28 13:49:52 -07:00
Ailing
0b5a674107 rest-api: key missing for per "rx" and "rwx"
commit 85a1cf31e6 and db266a3fb2 introduce new per "rx" and "rwx", but key missing for per "rx" and "rwx" in permmap

Signed-off-by: Ailing Zhang <ailzhang@cisco.com>
2014-05-28 12:37:48 -07:00
Samuel Just
26cd37cf8e Merge pull request #1878 from ceph/wip-map-advance
osd: fix map advance limit to handle map gaps

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-05-28 10:26:57 -07:00
Alfredo Deza
634780a272 remove unused variables, gets all tox envs passing
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-05-28 11:54:32 -04:00
Alfredo Deza
23b75b5505 add backport of collections.Counter for python2.6
Using Raymond Hettinger's MIT backport

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-05-28 11:48:12 -04:00
Alfredo Deza
59b7113ca3 intial take on ceph-brag-client and tox. Python 2.7 passes
Signed-off-by: Alfredo Deza <alfredo@deza.pe>
2014-05-28 10:55:22 -04:00
Loic Dachary
f7f7659b7e Merge pull request #1853 from dachary/wip-mailmap
mailmap updates

each commit has been submitted to the author for review
2014-05-28 14:01:07 +02:00
Loic Dachary
bc85b5d166 mailmap: Aristoteles Neto affiliation
and name normalization

Reviewed-by: Aristoteles Neto <aristoteles.neto@webdrive.co.nz>
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-28 13:58:09 +02:00
Loic Dachary
0b88659898 mailmap: Chris Glass affiliation
Reviewed-by: Chris Glass <tribaal@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-28 13:58:09 +02:00
Loic Dachary
7582fa98f2 mailmap: Christian Theune affiliation
Reviewed-by: Christian Theune <ct@gocept.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-28 13:58:09 +02:00
Loic Dachary
b2cb36f27b mailmap: Shawn Edwards affiliation
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-28 13:58:08 +02:00
Loic Dachary
e65b7e25d7 mailmap: Ilya Dryomov name normalization
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-28 13:58:08 +02:00
Loic Dachary
e4928c505e mailmap: Stuart Longland affiliation
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-28 13:58:08 +02:00
Loic Dachary
dbc66d7b84 mailmap: Walter Huf affiliation
Reviewed-by: Walter J. Huf <hufman@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-28 13:58:08 +02:00
Loic Dachary
6338542937 mailmap: Michael Riederer affiliation
and name normalization

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-28 13:58:08 +02:00
Loic Dachary
831b2c92e7 mailmap: Stefan Eilemann affiliation
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-28 13:58:08 +02:00
Loic Dachary
1f2259069f mailmap: Stephen F Taylor affiliation
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-28 13:58:08 +02:00
Loic Dachary
be9f7437c4 mailmap: Daniel J. Hofmann affiliation
Reviewed-by: Daniel J. Hofmann <daniel@trvx.org>
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-28 13:58:08 +02:00
Loic Dachary
c758584654 mailmap: Kevin Dalley affiliation
Reviewed-by: Kevin Dalley <kevin@kelphead.org>
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-28 13:58:08 +02:00
Loic Dachary
7d1a49377b mailmap: Florent Flament affiliation
and name normalization

Reviewed-by: Florent Flament <florent.flament@cloudwatt.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-28 13:57:52 +02:00
Loic Dachary
9bfdc68967 Merge pull request #1877 from ceph/wip-tier-doc
doc: Fix cache tier docs

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-05-28 13:45:50 +02:00
John Spray
2815e4d1af doc: Fix cache tier docs
The instructions for 'osd tier add' were plain
wrong, claiming that the cache mode could
be passed as a third argument.

Signed-off-by: John Spray <john.spray@inktank.com>
2014-05-28 12:21:37 +01:00
Loic Dachary
d14dfac2c2 Merge pull request #1856 from dachary/wip-pg-documentation
documentation: adapt PG formula for erasure coded pools

Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>
2014-05-28 12:19:29 +02:00
Loic Dachary
ffbb69fd9e Merge pull request #1867 from dachary/wip-8324
documentation: update pid file description

Reviewed-by: Florent Flament <florent.flament@cloudwatt.com>
2014-05-28 12:15:57 +02:00
Loic Dachary
08b3cff59d os: FileStore::create_backend unit tests
Assert that the fs_type is mapped to a backend that claims to have the
matching name.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-28 11:43:41 +02:00
Loic Dachary
3081652119 os: ObjectStore::collect_metadata unit tests
And an emacs-executable reminder about how to run a specific test.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-28 11:43:37 +02:00
Sage Weil
97023dccaa mon/OSDMonitor: simplify 'osd crush reweight ...' flow
Use the goto labels; drop the do/while.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-27 15:42:08 -07:00
Sage Weil
576315ac15 mon/OSDMonitor: add 'osd crush reweight-subtree ...'
Reweight all items within a subtree.  For example, you might reweigh tall
OSDs within a rack to a new value.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-27 15:42:08 -07:00
Sage Weil
2916148f54 crush: add adjust_subtree_weight()
Adjust the weight for all (leaf) items beneath a subtree.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-27 15:42:08 -07:00
Samuel Just
84e6a61f23 Merge pull request #1813 from ceph/wip-old-out
mon: restore osd weight after auto-mark out and then osd restart

Reviewed-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
2014-05-27 15:06:34 -07:00
Samuel Just
f0316411fa Merge pull request #1811 from ceph/wip-perf-atomic
perf_counter: use atomics instead of mutex

Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-05-27 15:04:31 -07:00
Samuel Just
e5a172124a Merge pull request #1873 from dachary/wip-8440
mon: fix set cache_target_full_ratio

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-05-27 15:00:39 -07:00
Loic Dachary
d113965a5b Merge pull request #1876 from atwardowski/patch-4
Fix Documentation Typo

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-05-27 22:04:00 +02:00
Adam Twardowski
26862caf70 Fix Documentation Typo
Signed-off-by: Adam Twardowski <adam.twardowski@gmail.com>
2014-05-27 15:41:50 -04:00
John Wilkins
d4e8119833 doc: Added primary affinity. Some minor rewrap edits.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-05-27 11:17:37 -07:00
Alfredo Deza
1ac3a503a1 better error reporting on incompatible device requirements
Signed-off-by: Alfredo Deza <alfredo@deza.pe>
2014-05-27 12:54:49 -04:00
John Spray
78313b7d5d Merge pull request #1739 from ceph/wip-journal-tool
cephfs-journal-tool
2014-05-27 14:51:18 +01:00
Loic Dachary
db90d86ee4 Merge pull request #1824 from dachary/wip-documentation
erasure-code: fix URL in developer notes

Reviewed-by: koleosfuscus <koleosfuscus@yahoo.com>
2014-05-27 11:41:18 +02:00
Loic Dachary
c2225f874d mon: fix set cache_target_full_ratio
It was a noop because it was incorrectly using the variable n. Add a
test to protect against regression.

http://tracker.ceph.com/issues/8440 Fixes: #8440

Reported-by: Geoffrey Hartz <hartz.geoffrey@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-27 10:24:18 +02:00
John Spray
4c22c6f9d3 pybind/rados: Fix timeouts for small t
Previously, if passing a number less than 0.5 for
the timeout, operations would always return
a failure status code.

The same problem would also generate premature timeouts
for operations which completed within 0.5s of
their timeout deadline.

Fix the logic so that we only decrement `countdown`
if the thread has not completed when returning from join().

Signed-off-by: John Spray <john.spray@inktank.com>
2014-05-25 17:34:08 +01:00
Sage Weil
1e0a82fd55 osd: fix map advance limit to handle map gaps
The recent change in cf25bdf6b0 would stop
advancing after some number of epochs, but did not take into consideration
the possibilty that there are missing maps.  In that case, it is impossible
to advance past the gap.

Fix this by increasing the max epoch as we go so that we can always get
beyond the gap.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-25 08:38:38 -07:00
Loic Dachary
641732d59c documentation: update pid file description
The pid file behavior changed over time and the description is misleading.

http://tracker.ceph.com/issues/8324 Fixes: #8324

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-05-25 11:05:10 +02:00
Colin Mattson
c9ff48183e Improvements to radosgw docs
- Correct a typo (`rados-admin`) in admin docs
- Reorder sections in config so "above example" is in expected position
2014-05-24 20:15:35 -07:00
Sage Weil
e741ea4ed9 os/FileStore: include filestore backend, f_type in osd metadata
Report the FileStore backend and underlying fs type as part of the osd
metadata shared with the monitor.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-24 15:58:54 -07:00
Loic Dachary
6bb0a04864 Merge pull request #1861 from atwardowski/patch-3
Fix Doc Typo

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-05-24 10:57:10 +02:00
Loic Dachary
82e40bcf89 Merge pull request #1846 from ceph/wip-8342
init-ceph: keep trying other OSDs if we fail to set CRUSH position on one OSD

Reviewed-by: Loic Dachary <loic@dachary.org>
Reviewed-by: Dmitry Smirnov <onlyjob@debian.org>
2014-05-24 09:03:36 +02:00
Josh Durgin
b4a55d764d Merge pull request #1858 from ceph/wip-8428
rgw: check appropriate entity permission on put_metadata

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-05-23 13:37:22 -07:00
Adam Twardowski
827df7d5ed Fix Doc Typo
Signed-off-by: Adam Twardowski <adam.twardowski@gmail.com>
2014-05-23 15:35:18 -04:00
Sage Weil
9312c5ea03 os/FileStore: refactor backend instantiation
Use a factory method for creating the backend so that the logic is not
duplicated in mkfs() and _detect_fs().  Make the other fs-dependent logic
(xattr limits) key off of the fs_type magic.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-23 11:47:16 -07:00
Sage Weil
3cf723c53e os/FileStore: fix journal-less operation
A few different fixes here:

- make the op_seq correct on start when there is no replay
- make an explicit 'no journal' case in queue_transaction (one that
  actually works).  Note that the 'trailing journal' mode is probably
  still broken.
- add a -J flag to vstart.sh for journalless operation

Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-23 11:47:16 -07:00