Commit Graph

198 Commits

Author SHA1 Message Date
Sage Weil
f1de0d6cb3 qa: drop rgw.py from test_python.sh workunit
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-18 21:27:49 -07:00
Alex Elder
6cbda4c3fc qa: comment out xfstest 232
Test 232 in the xfstests suite produces an XFS error in the log
when run over an RBD device.  This is most likely an XFS problem
that will be tracked separately (in tracker 2302).

My original plan with getting this checked in was to have it run a
baseline set of the tests--all known to pass on rbd devices--with
the intention of doing ongoing work to add back missing tests (at
least from the "auto" group) as we understand and fix whatever
makes them produce failures.

So just comment out test 232 so the xfstests script is able to
run to completion without error.

Signed-off-by: Alex Elder <elder@dreamhost.com>
2012-04-17 08:33:42 -05:00
Alex Elder
a40fe5bdad run_xfstests.sh: ensure cleanup on errors
Because we exit on any error (due to 'set -e'), the cleanup call was
never getting made in the event of an error.  The net effect of that
was that a filesystem could be left mounted, and rbd cleanup then
couldn't complete because the module was in use.

Fix the trap call so it calls cleanup on exit as well as error.
Switch to using the capitalized signal names in the call.

Signed-off-by: Alex Elder <elder@dreamhost.com>
2012-04-14 11:43:15 -05:00
Alex Elder
3d187db501 run_xfstests.sh: pass test result via exit status
It turns out that xfstests *does* exit with non-zero status
when a test fails.  Its exit status is the number of tests
that failed (which, now that we have over 255 tests could be
an issue...)

Save the exit status and make it be the result of the run.

Signed-off-by: Alex Elder <elder@dreamhost.com
2012-04-14 11:26:21 -05:00
Alex Elder
bf8847e7c1 qa: add run_xfsests.sh script
Add a script that runs xfstests over a pair of devices that are
specified using command line arguments.  The tests are run using
a specified filesystem type (xfs, ext4, or btrfs).

A default set of tests is run if none is specified on the command
line.  Normally there's an "auto" group used for this purpose, but
for now I've laid out a (large) subset of them that I know pass on
rbd devices.  These can be updated as we find they work reliably.

Signed-off-by: Alex Elder <elder@dreamhost.com>
2012-04-13 21:02:44 -07:00
Sage Weil
e5934f10be qa: kclient/file_layout.sh: ...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-13 12:55:53 -07:00
Sage Weil
401a571613 qa: kclient/file_layout.sh poking
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-12 15:01:59 -07:00
Sage Weil
968d29d138 qa: use recent kernel for kernel_untar_build.sh
Happier on oneiric!

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-12 12:01:41 -07:00
Sage Weil
945218cc30 qa/workunits/kclient/file_layout: escape *
Escape * so that it is expanded as root.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-11 20:36:47 -07:00
Sage Weil
70360f840e github.com/NewDreamNetwork -> github.com/ceph 2012-03-02 11:00:08 -08:00
Sage Weil
ebd29b65b9 qa/btrfs/test_rmdir_async_snap
Attempt to reproduce btrfs bug when rmdirs race with an async snap.
Unsuccessful.  Best guess is that we need multiple threads to trigger.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-02-20 10:56:42 -08:00
Sage Weil
1f351cdbe9 qa/btrfs/.gitignore: ignore targets
Signed-off-by: Sage Weil <sage@newdream.net>
2012-02-13 09:42:05 -08:00
Sage Weil
3c5dcf8958 qa/btrfs/create_async_snap
Stupid tool to call the async snap ioctl.  Until the btrfs tool does it.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-02-10 14:39:12 -08:00
Sage Weil
21a1dbd85c trivial_libceph: need O_RDWR
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-02-07 21:56:51 -08:00
Sage Weil
e93999f96a qa/workunits/rados/load-gen-mix.sh
10k objects, not 100k!

Signed-off-by: Sage Weil <sage@newdream.net>
2012-01-16 13:26:01 -08:00
Sage Weil
ba83e8c6dd qa: rados load-gen: use rbd pool
No replay interval.
2012-01-16 13:25:46 -08:00
Sage Weil
51e402e3c2 rados: fix load-gen 'max-ops'
This was mixed up with min/max_op_len.  And max_ops wasn't being used
the initial object creation stage, flooding the OSDs.  Or during run().

Signed-off-by: Sage Weil <sage@newdream.net>
2012-01-16 10:40:33 -08:00
Sage Weil
cfa39bfb23 qa/client/gen-1774.sh
Capture Alexandre's script for reproducing #1774 here for posterity, until
we write a properly harnessed test for this.  Currently, workunits can't
mount/unmount, and we don't have a way to make ceph-fuse drop it's cache.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-01-12 12:59:07 -08:00
Josh Durgin
b6c43d2aff rbd: add a command to delete all snapshots of an image
This makes deleting images with many snapshots easier.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-05 10:19:17 -08:00
Greg Farnum
4ea8ad438f qa: add a slightly more stressful anchortable test
This creates more than 8 links.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-01-04 17:11:36 -08:00
Greg Farnum
c8a13f2b7d qa: fix mdstable script for proper injectargs use.
This script is fairly primitive, but somebody might find it useful...

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-01-04 17:11:36 -08:00
Sage Weil
8658f0d55b qa: load-gen-mix-small-long
30 minutes

Signed-off-by: Sage Weil <sage@newdream.net>
2012-01-04 14:21:46 -08:00
Josh Durgin
6687ccf5dc workunits: update rbd test for new error format
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-12-30 10:32:05 -08:00
Sage Weil
37013b6fe5 qa: load-gen-mix-small.sh 2011-12-29 09:59:26 -08:00
Sage Weil
5804477b20 qa: trivial_libceph test
This currently fails... see #1827

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-13 16:31:02 -08:00
Sage Weil
6ff95e9d23 qa: rados load-gen workunits
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-13 08:19:37 -08:00
Josh Durgin
cf279a8b72 workunits: print tests pjd runs
This will tell us which ones actually failed within a test suite.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-12-09 16:31:42 -08:00
Josh Durgin
8afa5a5d9e workunits: fix secret file and temp file removal for kernel rbd
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-12-06 14:20:31 -08:00
Josh Durgin
bcd26fca71 workunits: make rbd kernel workunit executable
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-12-06 13:36:51 -08:00
Josh Durgin
66b6b1bff8 workunits: add some tests for kernel rbd
This covers some snapshot and resize functions that aren't tested by fs benchmarks.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-12-06 10:31:17 -08:00
Josh Durgin
f418775d2c workunits: rados python workunit should be executable
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-11-14 08:18:47 -08:00
Josh Durgin
5407fa70f8 workunits: add workunit for running rgw and rados python tests
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-11-10 17:03:12 -08:00
Greg Farnum
d4faf5889d qa: workunit to run test_libcephfs_readder
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-11-03 13:55:53 -07:00
Josh Durgin
e161ce1593 workunits: test rbd python bindings
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-10-24 15:32:47 -07:00
Josh Durgin
bfb5ceb2bd workunits: add rbd rollback and snapshot removal tests
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-10-24 15:32:47 -07:00
Josh Durgin
f4aa69a872 workunit: check that rbd info returns the right size for snapshots
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-10-24 15:32:47 -07:00
Josh Durgin
b968ff3a0e workunit: clean up temporary files
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-10-03 12:20:25 -07:00
Sage Weil
2269dc255a test_async_snap: loop a finite number of times.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-29 11:50:01 -07:00
Sage Weil
697e664cc5 qa: btrfs: test_async_snap
Hammer on the btrfs async sync/snap create/remove ioctls.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-29 11:48:00 -07:00
Sage Weil
3e9a936062 doc: more c* -> ceph-* renames
Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-22 16:18:37 -07:00
Sage Weil
6f8f140350 c* -> ceph-*
Hopefully I didn't miss too much...

Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-22 15:08:25 -07:00
Sage Weil
6228389df8 qa: add test_librbd workunit
Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-12 14:01:46 -07:00
Josh Durgin
b37b61eb76 workunit: use sudo when first reading /sys... too
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-09-09 14:48:20 -07:00
Greg Farnum
efaf91b665 workunit: and delete root-owned file
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-09-09 13:41:14 -07:00
Greg Farnum
d021b22339 workunit: you need sudo to look at /sys/kernel/debug
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-09-09 13:32:21 -07:00
Greg Farnum
34822ad435 workunits: make file_layout.sh more robust
We don't have a great way to guarantee mdsmap updates, but they
should happen on their own and we can loop. Closes #1518.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-09-08 13:27:25 -07:00
Sage Weil
2641eb395d qa: test false 2011-09-02 10:51:55 -07:00
Sage Weil
9ff3505751 qa: add multiple_rsync.sh workunit
For #1318

Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-31 17:41:12 -07:00
Greg Farnum
b826749255 workunits: make file_layout test setting only one parameter
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-25 12:51:06 -07:00
Sage Weil
ddc567429d mon: allow wildcards for mon cap command matching
We need wildcards, actually.  * is any token, ... is 1 or more tokens.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-23 15:24:44 -07:00