Commit Graph

41679 Commits

Author SHA1 Message Date
Haomai Wang
f814298008 packaging: include ceph_perf_local
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-05-27 12:51:50 +08:00
Haomai Wang
61d70db320 ceph_perf_local: rename from ceph_perf
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-05-27 12:51:36 +08:00
Haomai Wang
38e60deb5a Perf: used to perf local hardware capacity
This program contains a collection of low-level performance measurements
for Ceph, which can be run either individually or altogether.  These
tests measure performance in a single stand-alone process, not in a cluster
with multiple servers.  Invoke the program like this:

    Perf test1 test2 ...

test1 and test2 are the names of individual performance measurements to
run.  If no test names are provided then all of the performance tests
are run.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
2015-05-18 00:59:11 +08:00
Kefu Chai
8e7dfcd29b Merge pull request #4704 from dachary/wip-ceph-helpers
{mon,osd}-test-helpers.sh are deprecated

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-05-17 22:25:39 +08:00
Loic Dachary
7e5336bfa5 Merge pull request #4706 from stiopaa1/cephdetectinit
ceph_detect_init: added linux mint

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 15:57:42 +02:00
Michal Jarzabek
d688b0c39d ceph_detect_init: added linux mint
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2015-05-17 12:50:57 +01:00
Loic Dachary
e5564a87eb tests: {mon,osd}-test-helpers.sh are deprecated
Remove the helpers because they are not used any longer. They have been
deprecated by ceph-helpers.sh

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 13:31:25 +02:00
Loic Dachary
ae2d489bac tests: ceph-helpers.sh remove redundant setup in main
And add setup/teardown in tests that do not have it.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 13:31:25 +02:00
Loic Dachary
e9859838ea tests: test/mon/mon-handle-forward.sh uses ceph-helpers.sh
Use ceph-helpers.sh instead of  mon/mon-test-helpers.sh.

  * modifying the .asok and .log names to match the ceph-helpers.sh
    conventions

  * use explicit ports 7300 and 7301 instead of +1 so that grep
    will show that 7301 is used. This reduces the odds of a
    port collision when looking for a port that's not already
    used by an existing test.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 13:31:25 +02:00
Loic Dachary
1209786555 tests: test/mon/osd-pool-create.sh uses ceph-helpers.sh
Use ceph-helpers.sh instead of  mon/mon-test-helpers.sh.

  * The expect_false() helper is replaced by a ! statement which is
    simpler and has the same effect.

  * modifying the .asok and .log names to match the ceph-helpers.sh
    conventions

  * trim the --public-addr argument from the run_mon call

  * add || return 1 after run_mon where missing

  * add || return 1 to all commands in TEST_no_pool_delete

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 13:31:25 +02:00
Loic Dachary
88e954b052 tests: test/osd/osd-bench.sh uses ceph-helpers.sh
Remove useless inclusion of osd/osd-test-helpers.sh

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 13:31:25 +02:00
Loic Dachary
e3f03d83d6 tests: test/osd/osd-config.sh uses ceph-helpers.sh
The ceph-helpers.sh was already included, along with
mon/mon-test-helpers.sh and osd/osd-test-helpers.sh which creates
confusion.

  * modifying the .asok and .log names to match the ceph-helpers.sh
    conventions

  * trim the --public-addr argument from the run_mon call

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 13:31:25 +02:00
Loic Dachary
0f56553259 tests: test/osd/osd-copy-from.sh uses ceph-helpers.sh
The ceph-helpers.sh was already included, along with
mon/mon-test-helpers.sh and osd/osd-test-helpers.sh which creates
confusion.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 13:31:25 +02:00
Loic Dachary
c693ec1081 tests: test/vstart_wrapper.sh uses ceph-helpers.sh
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 13:31:25 +02:00
Loic Dachary
4a26ca2efe tests: test/mon/misc.sh uses ceph-helpers.sh
Fix grep that assume the pool has id 0, because it may be different
when rbd is redefined to have less PG by the run_mon function.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 13:31:25 +02:00
Loic Dachary
aa99929e06 tests: test/erasure-code/test-erasure-code.sh uses ceph-helpers.sh
The ceph-helpers.sh was already included, along with
mon/mon-test-helpers.sh and osd/osd-test-helpers.sh which creates
confusion.

  * replace check_osd_status with wait_for_osd

  * modifying the .asok and .log names to match the ceph-helpers.sh
    conventions

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 13:31:25 +02:00
Loic Dachary
7aca4701a4 tests: test/mon/osd-crush.sh uses ceph-helpers.sh
It is just a conversion and the behavior is not changed. It involves:

  * calling run_mon from inside each test instead of doing it in run

  * modifying the .asok and .log names to match the ceph-helpers.sh
    conventions

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 13:31:21 +02:00
Loic Dachary
f3cb870b9e tests: test/mon/osd-erasure-code-profile.sh uses ceph-helpers.sh
Instead of using mon-test-helpers.sh, primarily because the kill_daemon
function implemented in mon-test-helpers.sh is not as good as
ceph-helpers.sh.

Instead of having tests that share the same monitor, each test now runs
on a fresh monitor. The test writer no longer has to worry that it will
be re-using the pool or profile from a previous test. That causes
problems that are difficult to diagnose and the overhead of running a
new monitor is not so high.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 12:33:05 +02:00
Loic Dachary
66dcda9a58 tests: kill mon-test-helpers.sh call_TEST_functions
Remove call_TEST_functions because it is too complex and rarely used.
Replace the two instances where it was used by a few lines doing the
same thing.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 12:33:05 +02:00
Loic Dachary
ea61c8ab5a tests: ceph-helpers.sh do not hardcode id a in run_mon
Fix hardcoding of id a in the run_mon function. The directory
in which the mon data is stored must be a sub-directory of the
directory given in argument.

If mon_initial_members is set, the rbd pool cannot be redefined, which
is ok because this is rare and it's only an optimization to reduce the
number of PG.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 12:33:05 +02:00
Loic Dachary
b9447bce9a tests: ceph-helpers.sh shows ceph report if not clean
Instead of just pg dump and health detail, the wait_for_clean
function displays ceph report when it times out, to help figure out what
caused it.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 12:33:05 +02:00
Loic Dachary
de20f61529 tests: ceph-helpers.sh implement wait_for_osd
The wait_for_osd to wait for an osd to go up and down is needed
internally, after running an osd. Move the inline snippet from run_osd
into a function so that it can be used by scripts as well.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-17 12:10:47 +02:00
Yehuda Sadeh
7ee4a04c2b Merge pull request #4436 from BCLibCoop/bclibcoop/rgw-content_length
rgw: improve content-length env var handling

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-05-15 14:47:35 -07:00
Sage Weil
ccd54c6574 Merge pull request #4662 from dachary/wip-11359-tier-tests
tests: more robust tiering agent tests

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-15 13:36:31 -07:00
Haomai Wang
361f766c3b Merge pull request #4684 from xinxinsh/wip-fiemap-fix
do not return non-exist extents when doing sparse read

Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
2015-05-16 03:19:24 +08:00
Sage Weil
b688c58f6a Merge pull request #4698 from ceph/wip-wn2-comment
watch/notify: Clarify comment where notifies are completed
2015-05-15 11:40:46 -07:00
Douglas Fuller
47277c51db watch/notify: Clarify comment where notifies are completed
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2015-05-15 11:37:35 -07:00
Gregory Farnum
435e91624f Merge pull request #4653 from ceph/wip-client-misc
Wip client misc

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-05-15 10:33:31 -07:00
Loic Dachary
02afcb2741 Merge pull request #4651 from dachary/wip-erasure-code-benchmark
erasure-code: add --erased option to ceph_erasure_code_benchmark

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-15 19:13:13 +02:00
Loic Dachary
ea2736380a Merge pull request #4654 from dachary/wip-erasure-code-bench
erasure-code: bench.sh compares isa & jerasure, vandermonde & cauchy

Reviewed-by: Andreas Peters <Andreas.Joachim.Peters@cern.ch>
2015-05-15 18:59:22 +02:00
Kefu Chai
0a6b5ab9e8 Merge pull request #4694 from ceph/wip-workflow-doc
doc: s/relase/release/

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-05-16 00:56:48 +08:00
Loic Dachary
3bd1cc48a2 doc: s/relase/release/
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-15 16:44:04 +02:00
Gregory Farnum
e63c44b253 Merge pull request #4226 from ceph/wip-11276
#11276: make ceph-fuse well behaved with pool quotas

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-05-14 16:37:07 -07:00
Sage Weil
0373e4941b Merge pull request #4622 from xiaoxichen/wip-rocksdb-conf
Wip rocksdb conf

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-14 16:22:31 -07:00
xinxin shu
a46b333854 do not return non-exist extents when doing sparse read
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
2015-05-15 03:39:10 +08:00
Travis Rhoden
3368a9b79c Merge pull request #4606 from ceph/wip-rgw-init
init-radosgw: check in /var/lib/ceph/radosgw ; unify w/ sysv version

Reviewed-by: Travis Rhoden <trhoden@redhat.com>
2015-05-14 13:03:42 -04:00
Sage Weil
9d8c115b0a init-radosgw.sysv: remove
Signed-off-by: Sage Weil <sage@redhat.com>
2015-05-14 09:51:14 -07:00
Sage Weil
1c45f512a9 init-radosgw: unify init-radosgw[.sysv]
Signed-off-by: Sage Weil <sage@redhat.com>
2015-05-14 09:50:09 -07:00
Sage Weil
a4bb992426 init-radosgw: look in /var/lib/ceph/radosgw
Signed-off-by: Sage Weil <sage@redhat.com>
2015-05-14 09:50:09 -07:00
Loic Dachary
31a82f8374 Merge pull request #4680 from ceph/wip-fix-group-in-doxygen
doc: fix group in doxygen

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-14 15:31:17 +02:00
Kefu Chai
fdffcc4593 doc: customize css for the group title
Fixes: #9442
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-05-14 19:33:31 +08:00
Kefu Chai
f59d6e1269 doc: use @name to define a group, not @group
we are able to output a specified group using the directive
of `doxygengroup` in breathe. this directive prints out the
description of the group. but it's not realistic to enumerate
all groups defined in source code in the rst files. but the
doxygen command @name also helps to group functions together.
the downside of this approach is that we can not add more
items to a group later on. but it should be fine with us,
since in our case, all the grouped items are living in a single
header file.

Fixes: #9442
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-05-14 19:09:18 +08:00
Loic Dachary
ed93541c35 Merge pull request #4671 from dachary/wip-contributing
doc: recommendations related to performances / cleanup

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-14 09:04:36 +02:00
Loic Dachary
fbad3df41b Merge pull request #4674 from flaf/master
Doc: add a note about a CRUSH corner case with `ceph osd out`

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-05-14 02:08:49 +02:00
Sage Weil
700a1643e1 Merge pull request #4673 from dachary/wip-bencher
tools: remove obsolete aio_bench argument placeholder

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-13 17:06:46 -07:00
lafont
dcf8c597c5 Doc: add a note about a CRUSH corner case with ceph osd out
Signed-off-by: François Lafont <francois.lafont@ac-versailles.fr>
2015-05-14 02:02:33 +02:00
Loic Dachary
1bcea5ac10 tools: remove obsolete aio_bench argument placeholder
It was a noop and has been removed by
1ac7279822

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-14 01:59:38 +02:00
Loic Dachary
18a03f5f8f Merge pull request #4672 from dachary/wip-bencher
common: fix ObjBencher::aio_bench signature

Reviewed-by: Sage Weil <sage@redhat.com>
2015-05-14 01:03:32 +02:00
Loic Dachary
fe79babc98 common: fix ObjBencher::aio_bench signature
It was broken by 1ac7279822

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-14 00:54:07 +02:00
Josh Durgin
3242a89ba0 Merge pull request #4592 from ceph/wip-7746
rbd: add disk usage tool

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-05-13 17:38:58 -04:00