Danny Al-Gaaf
a0d978f615
remove twice included linux/types.h
...
Cleanup includes: remove twice included linux/types.h
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2012-11-28 08:25:42 -08:00
Dan Mick
c99d9c3ae7
rbd: fix import from stdin, add test
...
Make import work; do I/O in image native block size.
Note: creating sparse images is not currently attempted; could
scan for runs of zeros and write discontiguous chunks to image.
Fixes : #3503
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-11-27 17:29:23 -08:00
Dan Mick
a738f44bc4
rbd: allow export to stdout, add tests
...
Fixes : #3502
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-11-27 17:29:16 -08:00
Dan Mick
919db19426
rbd workunit: Add tests for clones across pools
...
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit ece11b0ed9
)
2012-11-27 14:06:33 -08:00
Dan Mick
5164075040
rbd workunit: Make "remove_images" silent
...
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit 0be9b15b79
)
2012-11-27 14:06:30 -08:00
Dan Mick
ca5549e8c9
rbd workunit: Add tests for cross-pool rename
...
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit a96ede944f
)
2012-11-27 14:06:27 -08:00
Dan Mick
bbd343a1d1
rbd: tests for copy with explicit/implicit pool names
...
Validate change to not assume dest pool == src pool
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit 39180430b9
)
2012-11-27 14:06:23 -08:00
Joao Eduardo Luis
2a681052b2
qa: workunits: mon: add workloadgen's workunit
...
Uses test/mon/test_osd_workloadgen to generate a bunch of map
changes
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2012-11-27 20:00:44 +00:00
Josh Durgin
365ba0600b
qa: add script to run objectcacher tests
...
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-11-26 10:37:43 -08:00
Sage Weil
efa03cef5e
mon: require pgnum in 'ceph osd pool create <poolname> <pgnum> [<pgp_num>]' command
...
The default of 8 is virtually never the right answer. Require the initial
pg count to be explicitly provided.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-12 12:01:07 -08:00
Joe Buck
5ef16edbc3
test.sh: Adding LD_LIBRARY_PATH so JUnit can find .so files.
...
Removing useless java.library.path references.
Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
2012-11-09 11:43:11 -08:00
Sage Weil
9dcc8a3b2e
Merge remote-tracking branch 'gh/wip-mds'
2012-11-08 11:40:36 -08:00
Joe Buck
791a8224f0
Adding a simple workunit that executes one libcephfs-java test
...
Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
2012-11-08 09:27:52 -08:00
Sam Lang
60a9816d00
qa: Script to run fio and template file
...
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-11-07 12:41:52 -06:00
Dan Mick
0c989794bd
Merge branch 'next'
2012-11-06 15:52:38 -08:00
Dan Mick
0baa9275ea
cls_rbd: send proper format of key to "last_read" for dir_list
...
rbd ls of format-2 images was looping on the first 64 (when more than 64
were present). The key name passed to the omap layer needs to always
contain the prefix, and the "inside-the-loop next-chunk" statement
was missing the "add the prefix" call.
Also, add a test for listing 100 images, format 1 and 2.
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-11-06 15:51:44 -08:00
Dan Mick
241569c595
rbd: allow removal of image even if rbd_children deletion fails
...
Users have been seeing failures where rbd rm is half-done; could be
because of outstanding watches on the rbd_header object. The state
is that rbd_children no longer contains the child, but other pieces
remain; remove considers this a failure.
Fix: test for ENOENT from remove_child, and treat that as an ignorable
error and drive on. Simulate this in copy.sh by removing the
rbd_children object altogether, which also results in ENOENT return
from remove_child.
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-11-05 21:41:34 -08:00
Dan Mick
4b4e0fa609
rbd: allow removal of image even if rbd_children deletion fails
...
Users have been seeing failures where rbd rm is half-done; could be
because of outstanding watches on the rbd_header object. The state
is that rbd_children no longer contains the child, but other pieces
remain; remove considers this a failure.
Fix: test for ENOENT from remove_child, and treat that as an ignorable
error and drive on. Simulate this in copy.sh by removing the
rbd_children object altogether, which also results in ENOENT return
from remove_child.
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-11-05 20:15:41 -08:00
Sam Lang
ac07afa205
test: Dont check initial permissions
...
We can't check the initial permissions of the
file because the umask may be set to something
other than 0022. The check isn't needed to check
for chmod correctness anyway.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-10-22 15:27:12 -05:00
Sage Weil
ddde1c8f6a
Merge branch 'wip-testrados'
...
Lightly-reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-21 09:01:33 -07:00
Sam Lang
352a7e268e
test: Make the test filename unique to test
...
This fixes up the chmod test to use a unique
filename to test with, and avoid clobbering of
other tests and commonly named files.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-10-18 17:15:45 -05:00
Sage Weil
8791db7453
qa: run multiprocess rados tests
...
These now pass, except for the watch/notify one.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-16 17:52:26 -07:00
Sam Lang
58020d44c7
test: Add a workunit for chmod
...
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-10-16 15:17:38 -05:00
Dan Mick
8518115e25
rbd cli tests: copy.sh was looking for old version of rbd ls -l output
...
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2012-10-09 17:13:49 -07:00
Josh Durgin
f1ad419282
qa: report success if race is not detected
...
This test still verifies that the race is handled correctly if it
occurs, but will no longer clutter test results with spurious failures
when the race is not reproduced.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-04 16:50:46 -07:00
Dan Mick
37ffb278c8
qa scripts: Replace cut -f 1 with awk '{print $1;}'
...
This is to handle TextTable output, which doesn't use tabs
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-04 17:04:09 -07:00
Dan Mick
61b2e4d6ac
rbd: use TextTable to implement ls -l
...
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-04 15:20:29 -07:00
Josh Durgin
9e8f69a0da
qa: try to reproduce a race more times
...
This was failing occassionally in the nightly runs.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-02 12:33:07 -07:00
Sage Weil
7af24bbda2
libcephfs: fix test workunit
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 21:02:36 -07:00
Sage Weil
18921ed2ef
Merge remote-tracking branch 'gh/wip-watch-header-race'
2012-09-27 13:37:52 -07:00
Josh Durgin
e177680903
librbd: ensure header is up to date after initial read
...
Use an assert version op in combination with our watch, and re-read
the header until it's not stale. Header updates are infrequent, so
this should not cause any delay with normal use.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-24 12:09:46 -07:00
Sage Weil
0c07607fb8
qa: move all rados class unit tests into qa/workunits/cls
...
This includes the existing rbd one; teh suite is getting fixed to match.
See #3097 .
Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-20 15:12:39 -07:00
Alex Elder
ed43d4de12
rbd/copy.sh: fix typo
...
Or maybe it was a spello, or a thinko, or something. In any case
I'm pretty sure Josh intended to call the function he added in
commit 78d6a60ca, and not the non-existent "test_import_args".
Signed-off-by: Alex Elder <elder@inktank.com>
2012-09-18 22:51:10 -05:00
Josh Durgin
f530659786
Merge remote branch 'origin/wip-librbd-locking'
...
Conflicts:
qa/workunits/rbd/copy.sh
Reviewed-by: Sage Weil <sage.weil@inktank.com>
2012-09-18 16:06:25 -07:00
Josh Durgin
78d6a60c59
qa: test args for rbd import
...
Make sure that --pool/--dest-pool and --image/--dest all work
interchangeably.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-14 17:17:29 -07:00
Josh Durgin
eeaa92c471
rbd: add locking commands
...
The locker (entity_name_t) will be different each time the rbd
command line tool is run, so 'lock remove' is always breaking a lock.
Fixes : #2556
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-07 18:38:27 -07:00
Josh Durgin
fd1c634b13
qa: update rbd tests and runner
...
* no longer need to wait for watch timeout since #2948 was fixed
* use --format 2 instead of --new-format
* add test_cls_rbd to run-rbd-tests script
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-09-07 18:38:27 -07:00
Josh Durgin
18054ba46f
Merge branch 'wip-rbd-protect' into master
...
Conflicts:
src/librbd.cc
src/librbd/cls_rbd_client.h
2012-08-16 12:57:58 -07:00
Josh Durgin
9071764a6b
qa: remove rbd image when done
...
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-07-30 11:19:53 -07:00
Sage Weil
640e5fdebc
qa: simple tests for 'ceph osd create|rm' commands
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-07-27 10:43:26 -07:00
Sage Weil
4788567e0f
qa: simple test for pool create/delete commands
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-07-27 10:43:26 -07:00
Sage Weil
7586cde9de
qa/workunits/suites/pjd.sh: bash -x
...
This will let us see what test is failing, exactly, and what its inputs
were. Hoping to help find #2187 .
Signed-off-by: Sage Weil <sage@inktank.com>
2012-07-18 10:52:44 -07:00
Josh Durgin
3dd65a897b
qa: download tests from specified branch
...
These python tests aren't installed, so they need to be downloaded
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-07-13 09:42:27 -07:00
Josh Durgin
d82a502680
qa: add rbd remove tests
...
These check that removing an image still works if an rbd rm
command was interrupted partway through.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-07-02 14:18:21 -07:00
Josh Durgin
1c096a8062
qa: run rbd tests against old and new formats
...
Now it's not the caller's responsibility to specify the format,
and we can eliminate a job from the qa suite.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-07-02 14:18:21 -07:00
Josh Durgin
aa3255b844
qa: add tests for rbd ls with old and new formats
...
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-07-02 14:18:21 -07:00
Josh Durgin
288bde3f9e
qa: restructure rbd cli tests
...
Move tests into functions and remove all images at the end of each.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-07-02 14:18:21 -07:00
Josh Durgin
0ad14c95c0
qa: add rbd command rename tests
...
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-07-02 14:18:21 -07:00
Sage Weil
d9e902f9c5
ceph.newdream.net -> ceph.com
...
wiki url -> docs url
2012-06-16 14:50:29 -07:00
Josh Durgin
5cd33cdd23
workunits/rbd: add workunit for running cls_rbd tests
...
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-06-10 22:01:19 -07:00
Josh Durgin
031d42ad1f
workunits/rbd: disable remove_with_watcher test
...
This will fail until #2533 is fixed.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-06-10 21:59:07 -07:00
Josh Durgin
3d7925b1ae
workunits/rbd: allow creating images in different formats
...
This will allow adding more arguments for testing combinations
of features in the future.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-06-09 17:24:50 -07:00
Sage Weil
95e0a880c8
qa: stress_watch.sh workunit runs test_stress_watch
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-05-31 16:46:25 -07:00
Sage Weil
352247e1b9
fix file_layout.sh layouts test
...
preferred_osd is not gone.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-28 14:52:56 -07:00
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
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
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
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
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
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
3e9a936062
doc: more c* -> ceph-* renames
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-09-22 16:18:37 -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
Sage Weil
9c498e0f1e
qa: add unit tests for mon cap 'allow command ...' stanzas
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-23 14:03:47 -07:00
Sage Weil
d5a9301f2c
qa: define _GNU_SOURCE for qa helpers; add btrfs dir makefile
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-08-22 21:18:00 -07:00
Sage Weil
39b6a9c495
qa: add rbd copy workunit
...
Test copying an image and snapshot.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-22 16:53:55 -07:00
Colin Patrick McCabe
3ce41446a6
Define _GNU_SOURCE in src/Makefile.am
...
We end up needing _GNU_SOURCE in a bunch of places-- to get direct i/o,
pipe2, and some other Linux-specific interfaces.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-22 15:35:13 -07:00
Greg Farnum
9f5d16384a
file_layout.sh: add test for setting a new data pool
...
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-18 17:36:22 -07:00
Colin Patrick McCabe
8c822a80e5
Merge branch 'wip-librados-tests'
...
Conflicts:
src/include/rados/librados.hpp
src/librados.cc
src/rgw/rgw_rados.cc
src/testradospp.cc
2011-08-18 17:00:38 -07:00
Colin Patrick McCabe
184c2f5d98
qa/workunits/rados/test.sh:explicitly invoke tests
...
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-17 12:41:15 -07:00
Colin Patrick McCabe
930bd329e7
Add qa/workunits/rados/test.sh
...
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-17 12:35:39 -07:00
Sage Weil
46645936c5
Merge commit 'v0.33'
2011-08-17 10:47:02 -07:00
Sage Weil
ce00564049
qa: test rename into snapped dir
...
Tests fix for #1399 .
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-08-17 09:07:08 -07:00
Sage Weil
47ab2bab4f
qa/fsstress: be verbose
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-10 14:01:06 -07:00
Sage Weil
1c1d92ec83
qa: move fsx.sh
2011-08-03 18:04:33 -07:00
Sage Weil
ab537f1e04
Revert "qa: Remove fsx workunit."
...
This reverts commit a66da4af25
. Still useful
to have this around.
2011-08-03 18:04:33 -07:00
Greg Farnum
3eb1ba8652
qa: make dir tests run by default in rename all.sh
...
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-07-08 11:09:32 -07:00
Greg Farnum
03b6c40b17
qa: mds rename: account for not being in the ceph root dir
...
We need to know the Ceph absolute path. We can't actually
derive that for sure (if we aren't mounted into the root), but this
at least lets us deal with being in our own subdirectories.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-07-06 15:02:42 -07:00
Greg Farnum
b5e4a31930
move mds rename tests to workunits directory
...
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-07-06 14:20:35 -07:00
Sage Weil
7d7544192f
qa: file_layout.sh is kclient only
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-29 10:49:01 -07:00
Sage Weil
1247a22453
qa: fix file_layout.sh mode
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-29 09:48:26 -07:00
Sage Weil
b5510a6641
qa: move file_layout into workunits/misc
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-29 09:51:36 -07:00
Sage Weil
f7fb547549
qa: make kernel_untar_build.sh output more helpful
...
- rm -rv
- list remaining files on failure
to help debug #1230
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-28 16:07:39 -07:00
Sage Weil
81900994f8
qa: wget -q for kenrel_untar_build.sh
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-23 15:57:35 -07:00
Sage Weil
6725e748e9
qa: simple rbd import/export test
...
Fixes : #1211
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-21 20:31:00 -07:00
Sage Weil
abafef3bcd
qa: clean up after snaptest-multiple-capsnaps.sh
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-21 15:52:46 -07:00
Sage Weil
04d10d1028
qa: tiobench workunit: remove timeout
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-20 11:47:24 -07:00
Sage Weil
6fb971ffdb
qa: organize workunits
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-17 15:01:56 -07:00
Sage Weil
9e4adf0de9
qa: make snap-rm-diff workunit clean up
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-17 09:22:24 -07:00
Sage Weil
e9f308df87
qa: wget -q
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-17 09:22:17 -07:00
Sage Weil
3aa6a4d658
qa: pjd must run as root
2011-06-16 14:07:26 -07:00
Tommi Virtanen
af9879deca
qa: Make snaptest-git-ceph.sh clean up after itself.
...
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-06-15 11:27:54 -07:00
Sage Weil
954e09661f
qa: do not use automake for workunit makefiles
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-14 12:53:33 -07:00
Sage Weil
40f5ab9659
qa/workunits/direct_io: fit .gitignore
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-14 12:35:35 -07:00
Sage Weil
66229c7a54
qa: direct_io: fix warnings
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-13 22:11:51 -07:00
Sage Weil
8ce98b22de
qa: test_sync_io: zero buffers prior to read
...
Be extra paranoid to ensure we read back the correct data and didn't
just find it in undefined memory.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-13 16:23:28 -07:00
Sage Weil
d89c9a1303
qa: test_sync_io improvements
...
Exit (without removing foo) on error.
Allow read- or write-only operation.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-13 16:18:23 -07:00
Sage Weil
1e96f71fba
qa: fix test_shorT_dio_read
...
No args, hardcode filename.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-13 14:17:16 -07:00
Sage Weil
d5bba79ebb
qa: move compiled workunits into organized directory
...
No need for a separate qa/src/ dir; just put them where we want them. We
need to ignore non-executable files when doing the bulk runs anyway.
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-13 13:29:30 -07:00
Sage Weil
d851deeac1
qa: add short directio read test
...
This tests for the bug fixed by linux commit:c3cd628.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-13 13:22:06 -07:00
Sage Weil
8a12a01cf7
qa: add henry's direct io tests
...
Not sure what the second one is testing, actually, but including it anyway.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-13 13:22:06 -07:00
Sage Weil
8147076d98
qa: add direct and sync io workunits
...
Just run the test programs in ../src
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-13 13:22:06 -07:00
Sage Weil
f2aef3e1da
qa: organize workunits a bit
...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-13 13:22:06 -07:00
Sage Weil
953bb605e6
qa: move compiled items into qa/src/
2011-06-13 13:22:06 -07:00
Tommi Virtanen
c9825f0874
automake: Make debug targets known but not built by default in non-debug builds.
...
With this, "./configure --without-debug && make -C src testceph" will work.
Before this, it would use make builtin rules, and fail to compile in a
confusing manner.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-04-27 12:16:52 -07:00
Tommi Virtanen
a66da4af25
qa: Remove fsx workunit.
...
Covered better by autotest, these days.
2011-04-07 14:07:24 -07:00
Colin Patrick McCabe
a3475610eb
direct_io_test: use mkstmp instead of mkostemps
...
mkostemps isn't present in older glibc versions, like the ones in CentOS
5.5. We don't really use any of the extra functionality of mkostemps in
this test.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-17 18:02:17 -07:00
Samuel Just
3fccc0a9f2
qa/workunits: added fsstress.sh
...
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-03-02 15:55:48 -08:00
Tommi Virtanen
718c42b9df
Make git ignore qa/workunits/direct_io_test.
2011-02-11 12:58:06 -08:00
Sage Weil
be8cdb08b2
qa: test for proper i_complete handling
...
This reproduces some buggery with rename vs I_COMPLETE on the kernel
client.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-02-07 09:15:21 -08:00
Colin Patrick McCabe
e251f51fb8
direct_io_test: fix signed/unsigned, printf flags
...
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-02-03 03:54:22 -08:00
Colin Patrick McCabe
942eb0e015
workunits: direct_io_test: fix error message
...
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-01-21 02:51:59 -08:00
Colin Patrick McCabe
6a20b83a63
workunits: direct_io_test: add cmdline options
...
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-01-20 11:18:22 -08:00
Colin Patrick McCabe
42709d1bff
workunits: direct_io_test: test more iterations
...
Test seeking around in an O_DIRECT file to see if we read what we
should.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-01-20 11:07:37 -08:00
Colin Patrick McCabe
f1d7af97f3
workunits: add direct_io_test
...
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-01-20 10:46:55 -08:00
Colin Patrick McCabe
512cc974fb
qa: Add tiobench test
...
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
2011-01-14 04:38:51 -08:00
Sage Weil
62024d0448
qa: add xattr check
...
Signed-off-by: Sage Weil <sage@newdream.net>
2011-01-13 15:47:30 -08:00
Sage Weil
3d10b34074
mds: fix null_snapflush with multiple intervening snaps
...
The client is allowed to not send a snapflush if there is no dirty metadata
to write for a given snap. However, the mds can only look up inodes by
the last snapid in the interval. So, when doing a null_snapflush (filling
in for snapflushes the client didn't send), we have to walk forward through
intervening snaps until we find the right inode.
Note that this means we will call _do_snap_update multiple times on the
same inode, but with different snapids.
Add unit test to check this.
Signed-off-by: Sage Weil <sage@newdream.net>
2010-11-10 20:58:49 -08:00
Sage Weil
7f493a11cb
qa: add ffsb
2010-10-13 10:09:43 -07:00
Sage Weil
381447d9f5
qa: add snaptest-git-ceph.sh
2010-09-21 13:55:12 -07:00
Sage Weil
2e5731b6db
qa: update snaptests, add snaptest-multi-capsnaps.sh
2010-09-17 08:09:19 -07:00
Sage Weil
6dae938316
qa: rename snapmove -> snaptest-parents
2010-08-25 21:36:19 -07:00
Sage Weil
27cc3bdd8c
qa: add snaptest-dir-rename.sh
2010-08-25 16:24:41 -07:00
Greg Farnum
54d661aca6
qa: add blogbench test to qa
2010-08-25 16:10:57 -07:00
Sage Weil
1c176ee009
qa: clean up snaptest-* suite a bit
2010-08-24 16:01:47 -07:00
Sage Weil
7172a637b7
qa: snaptest-xattrwb.sh
2010-08-24 12:13:53 -07:00
Sage Weil
10ed52012b
qa: chmod +x snaptest-authwb.sh
2010-08-24 12:13:53 -07:00
Sage Weil
fc8176c892
qa: add test for snapcap writeback of auth bits
2010-08-22 15:19:53 -07:00
Sage Weil
8950599aef
qa: test xattr snap wb
2010-08-22 15:18:21 -07:00
Sage Weil
466c002f18
qa: add snaptest-snap-rm-cmp
...
This (usually) reproduced a bug where:
- we write a big file
- snap it
- remove it. this makes the mds cow it.
- cp the snapped version.
- mds syncs the head
- client starts writeback
- (sometimes!) client sends other caps back to the mds
- mds does null flushsnap, not realizing a real one is still coming
2010-08-18 13:44:34 -07:00
Greg Farnum
5a89b8b2c9
qa: add simple snaprealm test script.
2010-08-17 17:01:43 -07:00
Sage Weil
9dd2ffd710
qa: snaptest-capwb check no snapflush case first
2010-08-17 14:29:30 -07:00
Sage Weil
d2205a9423
qa: snaptest-upchildreams.sh should clean up after itself
2010-08-17 14:29:30 -07:00
Sage Weil
2551651069
qa: add capwb check for case where client doesn't send flushsnap
2010-08-17 14:29:30 -07:00
Sage Weil
a4930d9eea
qa: add snaptest-estale.sh
...
Verify requests withing snapped namespace are directed to the proper
MDS. We should never get ESTALE, only ENOENT.
2010-08-17 12:00:07 -07:00
Sage Weil
4b6deda441
qa: make snaptest-2 output less ugly
2010-08-16 16:45:26 -07:00
Sage Weil
eb5213eee0
qa: show rm/cp progress on snaptest-2
2010-08-16 14:51:25 -07:00
Sage Weil
4e9ae5d978
qa: add test that client updates realm children on snap update
2010-08-16 14:51:25 -07:00
Greg Farnum
ab2026952f
qa: add snap-rm-diff.sh to look for issues with snapshot integrity.
...
Currently passes the script, although running these steps manually
(especially with smaller files) fails a fair percentage of the time for me.
2010-08-16 11:48:12 -07:00
Sage Weil
8100841986
qa: echo output
2010-08-06 11:35:04 -07:00
Sage Weil
7e00212761
qa: add snap test for cap writeback
...
This used to fail/hang before the cap cloning business was fixed up.
2010-08-05 16:16:02 -07:00
Sage Weil
6bd40ac96e
qa: consistent snaptest-%d.sh naming
2010-07-27 13:22:36 -07:00
Greg Farnum
8195899a15
qa: add localized version of Thomas Mueller's snaptest-2.sh
...
http://github.com/vinzent/ceph-testsuite/blob/master/tests/snaptest-2
2010-07-27 12:13:47 -07:00
Sage Weil
56cc68d125
qa: do untar_snap_rm on two different tarballs (medium and big)
2010-07-02 15:59:36 -07:00
Sage Weil
eeede270a8
qa: read recently written/deleted data back from snap
2010-06-24 16:49:52 -07:00
Sage Weil
58fe4b8d54
qa: add untar_snap_rm.sh
2010-06-07 22:18:59 -07:00
Sage Weil
8fcb0cc423
qa: make pjd clean up
2010-04-29 14:28:51 -07:00
Sage Weil
09916d3508
qa: set -e in workunits
2010-04-14 12:40:58 -07:00
Sage Weil
e6bc437528
qa: make snaptest trigger capsnap dirty(caps)==0 bug
...
Prior to ceph-client.git commit 819ccbfa448, this will cause a
VFS: Busy inodes after unmount of ceph. Self-destruct in 5 seconds. Have a nice day...
on umount.
2010-04-01 09:44:04 -07:00
Sage Weil
4d174b593a
qa: make snaptest.sh repeatable in same dir
2010-03-31 14:46:20 -07:00
Sage Weil
4abb47a24c
qa: drop numeric prefix from workunits
2010-03-30 21:24:45 -07:00
Sage Weil
d58656f901
qa: make pjd test behave when run twice in same dir
2010-03-18 10:20:37 -07:00
Sage Weil
7d88f7fdb0
qa: add fsx workunit
2010-03-18 10:20:37 -07:00
Sage Weil
f059e49d5c
qa: fix snaptest1.sh
2010-03-15 23:47:24 -07:00
Sage Weil
a7ae330d22
qa: make -j on kernel build
2010-03-08 15:10:45 -08:00
Sage Weil
038a8eba44
qa: download linux tarball from ceph.newdream.net for kernel compile test
2010-02-26 14:50:54 -08:00
Sage Weil
65f5123645
qa: fix snaptest1.sh
2010-02-16 16:00:59 -08:00
Sage Weil
fa5478bba0
qa: +x snaptest1.sh
2010-02-11 15:33:09 -08:00
Sage Weil
14f2c78614
qa: dl pjd.tgz
...
Then we can switch the symlink later
2009-12-28 20:05:32 -08:00
Yehuda Sadeh
9922ae1f55
qa: add bonnie++ to the workunits
2009-12-07 16:48:35 -08:00
Sage Weil
ee44121f4d
qa: put qa used files on ceph.newdream.net
...
avoid hitting external servers if we can :)
2009-12-04 11:25:44 -08:00
Greg Farnum
a3cb25c955
qa: We want to stop on errors. Add new scripts.
2009-11-17 09:13:47 -08:00
Greg Farnum
565448b5bd
qa: prepare for a hierarchical test script system
2009-11-12 16:44:35 -08:00