Commit Graph

707 Commits

Author SHA1 Message Date
Sage Weil
dd5b60b4f1 Merge remote-tracking branch 'gh/next' 2014-07-04 21:18:55 -07:00
Loic Dachary
2226b91e7d qa: support running under non privileged user
If the test is run against a cluster started with vstart.sh (which is
the case for make check), the --asok-does-not-need-root disables the use
of sudo and allows the test to run without requiring privileged user
permissions.

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 522174b066)
2014-07-02 20:31:31 -07:00
Sage Weil
55e297ad9a Merge pull request #2046 from ceph/wip-8670
mon: OSDMonitor: 'osd pool' - if we can set it, we must be able to get it

Reviewed-by: Loic Dachary <loic@dachary.org>
Reviewed-by: Sage Weil <sage@redhat.com>
2014-07-02 17:44:56 -07:00
Joao Eduardo Luis
ddc04c83ff mon: OSDMonitor: 'osd pool' - if we can set it, we must be able to get it
Add support to get the values for the following variables:
 - target_max_objects
 - target_max_bytes
 - cache_target_dirty_ratio
 - cache_target_full_ratio
 - cache_min_flush_age
 - cache_min_evict_age

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-07-02 19:35:31 +01:00
Sage Weil
bb3e1c92b6 qa/workunits/rest/test.py: make osd create test idempotent
Avoid possibility that we create multiple OSDs do to retries by passing in
the optional uuid arg.  (A stray osd id will make the osd tell tests a
few lines down fail.)

Fixes: #8728
Signed-off-by: Sage Weil <sage@inktank.com>
2014-07-02 10:39:17 -07:00
John Spray
e2b151d009 mds: Update default FS name
From 'default' to 'cephfs' so that it looks
at least vaguely meaningful.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-01 18:40:26 +01:00
John Spray
f62f7f57e0 qa: update cephtool EC pools test to respect IDs
...of data and metadata pools which are no longer
constant.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-01 18:40:03 +01:00
John Spray
710561cb8d mon/MDSMonitor: EC check in 'fs new' like newfs
Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-01 18:40:03 +01:00
John Spray
44eb259341 qa: add a check for crash_replay_interval autoset
... that after a fs new on fresh pools, crash_replay_interval
is set to the default on the data pool.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-01 18:40:03 +01:00
John Spray
82d3fcc7c7 qa: Update data pool ID for vxattrs test
Signed-off-by: John Spray <john.spray@redhat.com>
2014-07-01 18:40:02 +01:00
Loic Dachary
522174b066 qa: support running under non privileged user
If the test is run against a cluster started with vstart.sh (which is
the case for make check), the --asok-does-not-need-root disables the use
of sudo and allows the test to run without requiring privileged user
permissions.

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-07-01 08:42:58 +02:00
Gregory Farnum
d7f3c88d83 Merge pull request #1942 from ceph/wip-fs-cmds
Wip fs cmds

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-06-30 20:52:46 -07:00
Sage Weil
f4e69baecb Merge remote-tracking branch 'gh/next' 2014-06-30 16:50:01 -07:00
Sage Weil
bcc09f9376 qa/workunits/cephtool/test.sh: sudo ceph daemon
Signed-off-by: Sage Weil <sage@inktank.com>
2014-06-30 16:41:17 -07:00
Sage Weil
2dec8a8100 qa/workunits/suites/fsx.sh: don't use zero range
Zero range is not supported by cephfs.

Fixes: #8542
Signed-off-by: Sage Weil <sage@inktank.com>
2014-06-30 07:05:48 -07:00
John Spray
7294e8c4df test/qa: update for MDSMonitor changes
Accomodate changes:
 * data and metadata pools no longer exist by default
 * filesystem-using tests must use `fs new` to create
   the filesystem first.

Signed-off-by: John Spray <john.spray@inktank.com>
2014-06-30 10:38:57 +01:00
Ilya Dryomov
9bcc19de58 map-unmap.sh: fail if 'rbd rm' fails
Fail if 'rbd rm' fails - most probably it'd fail with "image still has
watchers" and in that case it's a bug in the kernel client which we do
want to notice.  Also nuke the trap-based error handling - cleanup() is
half-baked and not really necessary here.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-06-29 21:58:15 +04:00
Ilya Dryomov
16b14ea123 map-unmap.sh: drop the get_id() logic
Take advantage of the fact that 'rbd map' will now talk to udev and
output the device that got assigned by the kernel to the newly created
mapping.  Drop the get_id() cruft, udevadm settle and chown calls.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-06-29 21:58:15 +04:00
Joao Eduardo Luis
48e38ac632 qa/workunits: cephtool: fix 'osd bench' test
Commit 7dc93a9651 fixed an incorrect
behavior with the OSD's 'osd bench' value hard-caps.  The test wasn't
appropriately modified unfortunately.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-26 01:00:36 +01:00
Joao Eduardo Luis
4b0809a13e qa/workunits: cephtool: only run heap profiler test if tcmalloc enabled
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-26 01:00:36 +01:00
Joao Eduardo Luis
5c4616e100 qa/workunits: cephtool: set +e for the tcmalloc tests
Avoids failing the tests when tcmalloc is not present

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-26 01:00:36 +01:00
Joao Eduardo Luis
6725543515 qa/workunits: cephtool: delete unnecessary function calls
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-26 01:00:36 +01:00
Joao Eduardo Luis
946bd0dad4 qa/workunits: cephtool: disable bash debug when not running tests
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-26 01:00:35 +01:00
Joao Eduardo Luis
5d26575ef2 qa/workunits: cephtool: allow running individual tests
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-26 01:00:35 +01:00
Joao Eduardo Luis
f4184086d0 qa/workunits: cephtool: cleanup state after erasure-code-profile test
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-26 01:00:35 +01:00
Joao Eduardo Luis
780424df3a qa/workunits: cephtool: add/remove comments
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-26 00:57:14 +01:00
Joao Eduardo Luis
3d14a96f4b qa/workunits: cephtool: split into properly indented functions
The test was a big sequence of commands being run and it has been growing
organically for a while, even though it has maintained a sense of
locality with regard to the portions being tested.

This patch intends to split the commands into functions, allowing for a
better semantic context and easier expansion.  On the other hand, this
will also allow us to implement mechanisms to run specific portions of
the test instead of always having to run the whole thing just to test a
couple of lines down at the bottom (or have to creatively edit the test).

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-26 00:55:46 +01:00
Joao Eduardo Luis
04658b7b2b qa/workunits: cephtool: move test line to where it's more appropriate
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-26 00:52:44 +01:00
Joao Eduardo Luis
db6cc133ba qa/workunits: cephtool: split into functions
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-26 00:51:05 +01:00
Samuel Just
4e68ac34ec Merge pull request #2001 from dachary/wip-tiermsg
mon: test that pools used in tiers cannot be removed

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-06-25 13:39:48 -07:00
Sage Weil
394d51233d Merge pull request #1958 from jdurgin/wip-rbd-ro
qa: add script to test krbd setting ro/rw ioctl

Reviewed-by: Sage Weil <sage@redhat.com>
2014-06-25 11:14:58 -07:00
John Spray
e5c565d3c1 Merge remote-tracking branch 'origin/next' 2014-06-24 16:00:28 -07:00
Joao Eduardo Luis
378b5add22 qa/workunit: cephtool: test mds newfs and add_data_pool with ec pools
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-24 00:48:43 +01:00
Loic Dachary
39a4b78177 mon: test that pools used in tiers cannot be removed
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-06-20 09:52:31 +02:00
John Spray
0d63cf24a4 qa: extend cephfs_journal_tool_smoke
To provide coverage for the 'import' command
resulting in the same contents as before an
export/import cycle.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-06-13 11:39:56 +01:00
John Spray
acd6ebb09b qa: set +x on cephfs_journal_tool_smoke
Signed-off-by: John Spray <john.spray@redhat.com>
2014-06-13 11:39:56 +01:00
John Spray
ee487b422b tools/cephfs: Purge trailing objects during import
Reviewed-by: Gregory Farnum <greg@inktank.com>
Signed-off-by: John Spray <john.spray@inktank.com>
2014-06-13 11:39:17 +01:00
Josh Durgin
40c48bcae0 qa: add script to test krbd setting ro/rw ioctl
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-06-11 17:31:01 -07:00
Greg Farnum
29c33f0c05 qa: add an fsx run which turns on kernel debugging
Signed-off-by: Greg Farnum <greg@inktank.com>
2014-06-11 13:40:48 -07:00
Sage Weil
47028874e2 Merge pull request #1872 from ceph/wip-reweight-tree
mon: add 'osd crush reweight-tree ...'

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-09 05:29:20 -07:00
Josh Durgin
d52239d020 Merge pull request #1906 from ceph/wip-runxfstests
wip-runxfstests

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-06-03 15:53:52 -07:00
Sage Weil
4951244726 Merge remote-tracking branch 'gh/next' 2014-06-02 22:24:48 -07:00
Ilya Dryomov
c18cbefe33 qa: add run_xfstests_krbd.sh wrapper
As run_xfstests.sh does no longer accept test lists, wrap it to provide
an expunge file with a list of tests we want to skip for krbd runs.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-06-02 19:41:01 +04:00
Ilya Dryomov
cd65246127 qa: catch up with xfstests changes
Back in 2013 xfstests were rearranged, which also changed the way
./check parses test lists.  Catch up with those changes.  Note that
tests can no longer be listed in ranges, we only accept individual
tests and test groups (e.g. -g quick).

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-06-02 19:41:00 +04:00
Ilya Dryomov
703166c815 qa: cp run_xfstests.sh run_xfstests-obsolete.sh
run_xfstests.sh is going to be updated in the next commit to be able to
drive newer xfstests.  Among other things, the new xfstests proper
doesn't support listing tests in ranges, which is what the qemu wrapper
(run_xfstests_qemu.sh) relies on.  So keep a copy of the old
run_xfstests.sh around until the qemu vm image is regenerated and the
up-to-date exclusion list for that kernel is shaken out.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-06-02 19:41:00 +04:00
Joao Eduardo Luis
38405d3554 qa/workunits/cephtool: test setting options using SI units
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-05-30 22:09:23 +01: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
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
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
3bef125fe4 qa: Add smoke test for cephfs-journal-tool
Signed-off-by: John Spray <john.spray@inktank.com>
2014-05-20 14:43:54 +01:00