Commit Graph

39 Commits

Author SHA1 Message Date
Sage Weil
24eeb0da95 rbd: drop udev
The packages have these rules now.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-25 15:12:56 -06:00
Sage Weil
a60e7b599a rbd: set TESTDIR when running xfstests
[elder@inktank.com: fixed typo]

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-25 15:12:41 -06:00
Sage Weil
c9d3dea320 avoid secretfile, except for kclient
Only mount.ceph needs the secret in a standalone file.  Remove other users,
and simplify that one.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:05 -08:00
Sage Weil
333c7260bc rbd: remove merge cruft
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:05 -08:00
Sander Pool
c525e1061b Install ceph debs and use installed debs
The ceph task installs ceph using the debian
packages now, and all invocations of binaries installed
in {tmpdir}/binary/usr/local/bin/ are replace with
the use of the binaries installed in standard locations
by the debs.

Author:    Sander Pool <sander.pool@inktank.com>
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2013-02-18 13:39:03 -08:00
Sage Weil
82273e951b rbd: fix rbd image unmount
The testdir param was missing.  Avoid this class of errors by unmounting
exactly what we mounted.
2013-02-05 23:19:23 -08:00
Sage Weil
6099045990 rbd: set env before running sudo
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-05 23:01:25 -08:00
Sage Weil
ada803db0f rbd: fix .format() call with {1} syntax
IndexError: tuple index out of range
2013-02-03 08:18:52 -08:00
Sam Lang
ace4cb07b2 Replace /tmp/cephtest/ with configurable path
Teuthology uses /tmp/cephtest/ as the scratch test directory for
a run.  This patch replaces /tmp/cephtest/ everywhere with a
per-run directory: {basedir}/{rundir} where {basedir} is a directory
configured in .teuthology.yaml (/tmp/cephtest if not specified),
and {rundir} is the name of the run, as given in --name.  If no name
is specified, {user}-{timestamp} is used.

To get the old behavior (/tmp/cephtest), set test_path: /tmp/cephtest
in .teuthology.yaml.

This change was modivated by #3782, which requires a test dir that
survives across reboots, but also resolves #3767.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-01-31 08:23:31 -06:00
Alex Elder
dbc38eff62 rbd.py: update scratch and test image sizes
Test 167 was failing due to running out of space on the scratch
file system.  The test reserves 21MB in a file, and repeats 50
times.  It required just over 1GB, so I bumped the default size
for the testing device to 1200 MB.  I increased the test device
size as well.

This resolves http://tracker.newdream.net/issues/3864.

Signed-off-by: Alex Elder <elder@inktank.com>
2013-01-18 12:47:34 -06:00
Josh Durgin
ca086261a0 xfstests: run in parallel on multiple machines
xfstests itself still seems to have some global dependencies that
make it hard to run more than one instance per node, so keep
the one client per node restriction.

Name the image after the client using it, and only run the
nested context managers once, so this task can work with
more than one client.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-11-20 15:48:21 -08:00
Alex Elder
f88a2f73d8 rbd task: support xfstests repeat count
This adds the ability to use the new repeat count argument to the
run_xfstests.sh script.  By default, the test suite will be run
once, but if a count is specified the script will execute the suite
that many times, but will only perform the setup (building the
tests, etc.) once.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2012-11-01 13:49:58 -05:00
Josh Durgin
c8c7014fc0 rbd: fix typo and cast to int before comparing format 2012-09-13 14:29:43 -07:00
Josh Durgin
055bf73d50 rbd: only specify --format if not using the default
This lets older versions that do not support --format still work with
format 1 images.
2012-09-12 11:31:28 -07:00
Alex Elder
f64cedf4db rbd: allow xfstests task to specify rbd image formats
This adds the ability to specify the rbd image format to use for the
scratch and test devices for the rbd.xfstests task.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2012-09-10 19:38:21 -05:00
Alex Elder
73a29cdf91 rbd: allow image format to be specified
This adds the ability to specify an rbd image format (either 1 or 2)
for an rbd image.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2012-09-10 19:37:25 -05:00
Sage Weil
7d50411ca9 rbd.xfstests: default to 1gb (not 250mb) image 2012-08-18 20:10:54 -07:00
Sage Weil
62f8f006b3 rbd.xfstests: default to 250mb instead of 100mb 2012-05-20 20:50:19 -07:00
Sage Weil
6ba4efcd3a rbd.py: add xfstests functionality
Add tasks for running xfstests over a pair of rbd volumes.  The main
one is called xfstests, and it sets up rbd volumes of specified size
and runs a set of likely-to-be-successful tests.  The other one is
used by the first, and is called run_xfstests.  This provides a
generic (device rather than rbd device oriented) interface to
xfstests, and should probably be made standalone and distinct from
rbd at some point.

Using multiple rbd devices required the rbd udev rule manipulation
to ignore errors, since it appears that each device caused the a
teardown attempt, which leads to failures the second time around.
There's probably a more robust solution, but this works for now.

Signed-off-by: Alex Elder <elder@dreamhost.com>
2012-04-13 22:28:05 -07:00
Josh Durgin
e30b7710f5 rbd: fix typo in default config
pyflakes would have caught this if 'all' weren't a built-in function
2012-03-26 11:57:07 -07:00
Sage Weil
f8ec23e79d rbd: default to all: 2012-01-15 22:53:39 -08:00
Sage Weil
a92fef77dc rename c* -> ceph-*
Leave cfuse task name unchanged for now...
2011-09-23 08:57:18 -07:00
Tommi Virtanen
a2372fce12 Move orchestra to teuthology.orchestra so there's just one top-level package. 2011-09-13 14:53:02 -07:00
Josh Durgin
091b0ae3de autotest: allow tests to be run on all clients 2011-09-07 17:50:12 -07:00
Josh Durgin
e45109b645 rbd: allow specifying all clients 2011-09-07 16:54:24 -07:00
Sage Weil
aa575c1318 rbd: make default image 10G instead of 1G 2011-08-21 15:14:02 -07:00
Tommi Virtanen
1ccdcb9896 Make rbd task use mnt.N not mnt.client.N as mountpoint.
Everything else expects this, so e.g. workunits wouldn't work with rbd.
2011-08-09 16:25:00 -07:00
Tommi Virtanen
2137da2cf3 Add final slash to path to enforce it being a dir. 2011-07-01 09:22:25 -07:00
Josh Durgin
e2e96b31ef Enable core dumps when running the rbd cli tool. 2011-06-22 17:40:58 -07:00
Josh Durgin
9eea6b9325 Handle rbd config with no properties. 2011-06-22 17:34:08 -07:00
Josh Durgin
122ed28638 Wait for rbd devices to be removed before removing the module. 2011-06-22 17:32:10 -07:00
Tommi Virtanen
efeac9f328 Add status logging into task rbd. 2011-06-22 16:36:25 -07:00
Tommi Virtanen
fb016548ad Wait for block device to show up in task rbd.dev_create. 2011-06-22 16:36:12 -07:00
Josh Durgin
c0482793cb Add combined rbd task that runs all the subparts. 2011-06-22 16:03:57 -07:00
Josh Durgin
789de09f8b Add rbd.mount method. 2011-06-22 16:03:57 -07:00
Josh Durgin
deb2fe5c81 Add rbd.mkfs method. 2011-06-22 16:03:57 -07:00
Josh Durgin
2d64461959 Add rbd -> /dev mapping method. 2011-06-22 16:03:57 -07:00
Josh Durgin
dfc3a85154 Add rbd modprobe method. 2011-06-22 16:03:57 -07:00
Josh Durgin
bd46d753e3 Add rbd task with create_image function. 2011-06-22 16:03:56 -07:00