Commit Graph

353 Commits

Author SHA1 Message Date
Sage Weil
b93a00771f tasks/radosgw-admin: test radosgw-admin tool
Not yet complete...
2011-10-03 09:45:11 -07:00
Greg Farnum
9b44469e5e s3-tests: use radosgw-admin instead of radosgw_admin
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-09-30 09:26:42 -07:00
Josh Durgin
52427589a6 ceph_manager: parse osd numbers with dots
This is necessary since wip-dot-names was merged.
2011-09-29 09:09:31 -07:00
Sage Weil
a92fef77dc rename c* -> ceph-*
Leave cfuse task name unchanged for now...
2011-09-23 08:57:18 -07:00
Samuel Just
ef56a72b73 task/watch_notify_stress.py: add simple watch_notify stress test
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-09-22 13:25:21 -07:00
Greg Farnum
e4dfe3d4bd lockfile: increase interval to prevent incorrect locking orders
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-09-20 10:04:01 -07:00
Greg Farnum
5ff88d1902 lockfile: don't fail cleanup if no lock procs exist
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-09-20 10:03:33 -07:00
Tommi Virtanen
0d5dbfa27e workunit: Fetch source from github.
Needed an elaborate dance because Github won't let us download
an archive of a subdirectory.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-16 11:32:15 -07:00
Tommi Virtanen
5583fac383 s3tests: Clone repository from github.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-09-16 11:09:45 -07:00
Samuel Just
4a0f8fee54 ceph.py: remove unused variables mds_daemons and mon_daemons
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-09-15 17:26:38 -07:00
Samuel Just
a3c886af19 ceph.py/cephmanager.py: add ctx.daemons for restarting daemons
ctx.daemons will now be an instance of CephState.

ctx.daemons.get_daemon(role, id).stop() to stop daemon, retart() to
restart the daemon, etc.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-09-15 17:08:34 -07:00
Samuel Just
85cb29d345 testsnaps: LD_PRELOAD needed for librados
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-09-14 16:28:06 -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
Tommi Virtanen
cc72fe6cf3 Callers of task s3tests.create_users don't need to provide dummy "fixtures" dict. 2011-09-09 13:22:03 -07:00
Josh Durgin
1970bad9d9 thrashosds: fix timeout when no options are specified 2011-09-09 10:31:08 -07:00
Josh Durgin
8dd52f9941 thrashosds: fail if cluster doesn't finally become clean in 5 minutes 2011-09-08 18:09:11 -07:00
Josh Durgin
fc1b14ddcc thrasher: get coverage and cores from calling ceph commands 2011-09-08 14:09:13 -07:00
Josh Durgin
b72c5a8363 thrashosds: wait for every pg to go active and clean before exiting 2011-09-08 14:07:23 -07:00
Josh Durgin
08747c5bfb thrasher: clean up a bit 2011-09-08 12:58:59 -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
Greg Farnum
655e4a4cfe locktest: don't fail cleanup if the dir doesn't exist
We're doing this the cheapest way possible: make the dir!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-09-06 12:39:21 -07:00
Josh Durgin
5c99f9f264 rgw: run as an external fastcgi server to match dho 2011-09-02 17:58:19 -07:00
Sage Weil
e66dffc3d3 don't eat exceptions for breakfast
fixes 0c2bee1514
2011-09-02 11:07:10 -07:00
Greg Farnum
7c4a5ac83b locktest: make it actually run the executable test
This was missing an argument (the file to run on!) and apparently
that didn't cause the command to output a failure return code.

Additionally, the ceph wrappers were blocking a crash and falsely
reporting success back to teuthology. (Yikes!)

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-09-01 14:47:48 -07:00
Sage Weil
c502418fca thrashosds: make it work when first mon isn't mon.0 2011-09-01 12:56:29 -07:00
Sage Weil
3ce1cbb3c4 thrashosds: no camelcaps, add some whitespace 2011-09-01 12:56:29 -07:00
Josh Durgin
3d69965c42 workunits: remove unused variable 2011-08-31 16:49:05 -07:00
Josh Durgin
ec768ba3ca Fix pyflakes warnings. 2011-08-31 14:36:01 -07:00
Josh Durgin
5b42b08527 workunit: save coverage and coredumps
Anything that runs a ceph utility should be using these commands.
2011-08-30 17:13:44 -07:00
Greg Farnum
6d91915217 workunits: rework a little bit to allow "all" clients in a run
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-30 15:49:10 -07:00
Sage Weil
ec97dd8203 cfuse: support running through valgrind
Also switch up the config code so we can take per-client options.
2011-08-30 13:34:52 -07:00
Greg Farnum
0c2bee1514 valgrind: don't run valgrind_post if there's no valgrind
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-29 16:47:22 -07:00
Greg Farnum
3a3c859f5b valgrind: scan logs for bad results
It's not sophisticated but it will warn you about a node
if at least one node has issues.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-29 14:03:02 -07:00
Greg Farnum
50a648bdfc valgrind: use xml output for tools that support it
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-29 14:03:02 -07:00
Greg Farnum
fb33ef3c69 thrasher: improve documentation a little
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-25 15:27:30 -07:00
Greg Farnum
83e263425a thrasher: add option to mark OSDs down instead of out.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-25 15:19:30 -07:00
Greg Farnum
0f9b74e28c thrasher: allow a config to set values
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-25 15:18:42 -07:00
Greg Farnum
5d5de0e70c thrasher: remove redundant wait_till_clean()
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-25 14:38:34 -07:00
Greg Farnum
1130e5fe37 coverage: create dir conditionally
We don't need to create the dir if we aren't using coverage.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-24 16:48:14 -07:00
Greg Farnum
0840d05a8f lockfile: add a lockfile task
This allows pretty highly configurable testing of
fcntl locking via a teuthology task.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-24 16:39:23 -07:00
Sage Weil
42318c57cb check ceph cluster log for badness (ERR, WRN, SEC) 2011-08-23 21:00:26 -07:00
Sage Weil
21d04419b8 ceph: copy cluster log file to archive/ceph.log 2011-08-22 22:04:57 -07:00
Sage Weil
e79dda9a9d workunits: set CEPH_CONF environment
This allows any ceph util we run (including the rados-api tests) find
the config and keyrings they need.
2011-08-21 17:26:15 -07:00
Sage Weil
aa575c1318 rbd: make default image 10G instead of 1G 2011-08-21 15:14:02 -07:00
Greg Farnum
e20bae2a7f valgrind: Document!
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-17 10:35:37 -07:00
Greg Farnum
73de620c9e Merge branch 'wip-valgrind' 2011-08-17 10:32:57 -07:00
Greg Farnum
4efc95fa57 include log in valgrind log file names
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-17 10:30:26 -07:00
Greg Farnum
d5eb2c2b77 ceph task: split up arguments a little more
This allows selective daemon kill signal changes. With valgrind
daemons we want term instead of kill, for instance.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-17 10:30:24 -07:00
Greg Farnum
5323e1796f valgrind: move valgrind logs to log dir
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-17 10:29:54 -07:00
Greg Farnum
aa74481728 ceph: split up daemon-running arguments and insert valgrind ones
This setup should let us insert other kinds of things too, if we
need them.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-15 15:35:42 -07:00
Greg Farnum
9ec19f13df ceph: Set up valgrind as a flavor, and create a dir for logging.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-15 15:32:23 -07:00
Greg Farnum
98ac89a54e ceph task: pass the full config to the daemon startup subs
So far as I can tell there is no reason to reduce them to
the coverage config, and I want the full config for my
soon-to-exist valgrind options.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-15 15:31:18 -07:00
Tommi Virtanen
747deecaf6 Add assert to catch simple typos in roles list.
Input of "roles:\n- [mds,1]" used to make teuthology crash
in a non-obviou way.
2011-08-15 09:36:06 -07:00
Greg Farnum
0139323e51 Merge branch 'wip-nuke'
Conflicts:
	teuthology/task/kernel.py
2011-08-10 16:16:25 -07:00
Greg Farnum
6938946a19 manypools: remove commented-out code
This accidentally got left in from my development.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-10 16:12:53 -07:00
Greg Farnum
b5859f877a Move reconnect function from kernel task to misc.py
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-10 14:37:24 -07:00
Tommi Virtanen
7fd798a347 Configure grub to default to the right kernel, not the greatest installed one.
This is sticky; that is, even if you install other kernels (manually/via fab/etc),
grub will keep booting up the one that was last enabled via teuthology config.
Use teuthology to switch kernels and it'll just work.

If the kernel the grub default points to is removed, grub will fall back to
booting the kernel with the greatest version number.

Closes: http://tracker.newdream.net/issues/1364
2011-08-10 13:40:00 -07:00
Tommi Virtanen
39e22e4c0a Handle socket.timeout when waiting for a reconnect.
Now it gets ignored, just like the other harmless socket errors.
2011-08-10 13:22:14 -07:00
Tommi Virtanen
742109f4d9 Wait up to 300 seconds for a reboot.
At least sepia86 was reliably slower than the previous 180 second default.
2011-08-10 13:21:39 -07:00
Sage Weil
bf7b1dd4a7 ceph: fix max_mds calculation
Signed-off-by: Sage Weil <sage@newdream.net>
2011-08-10 12:47:20 -07:00
Greg Farnum
a1f3cac0b6 kernel: comment reconnect task, clean up reporting
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-10 09:07:48 -07:00
Greg Farnum
663bbf8b2b manypools: remove commented-out code
This accidentally got left in from my development.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-09 16:53:46 -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
780ebcdf1b Make sure workunit task does not create mnt.N by itself.
This used to hide a bug in the rbd task, where rbd
created the mountpoint with the wrong name. The workunits
ended up running against the local filesystem.
2011-08-09 16:11:32 -07:00
Stephon Striplin
eee1d9a9e4 allow s3tests.create_users defaults be overridden 2011-08-09 14:28:08 -07:00
Sage Weil
b5ba155c17 Revert "fix get_clients"
This reverts commit 83b6678e79.  The bug I was
hitting was actually fxied by 06e3e69c29.
2011-08-09 13:23:58 -07:00
Gregory Farnum
137f36d533 teuthology: add task manypools
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-08 15:13:21 -07:00
Sage Weil
3f2ad30aca cfuse, kclient: print remote host 2011-08-05 14:35:44 -07:00
Sage Weil
83b6678e79 fix get_clients
Only return the clients that are listed (not _all_ clients).  There might
be a combination of cfuse and kclient (or other) clients here!
2011-08-05 14:35:44 -07:00
Sage Weil
06e3e69c29 tasks/kclient: don't clobber remote 2011-08-05 14:35:43 -07:00
Sage Weil
ef2b80910a use coverage_dir 2011-08-05 14:35:43 -07:00
Josh Durgin
f38c3697fd kernel: install in parallel 2011-08-05 11:17:28 -07:00
Josh Durgin
f66c010ef5 kernel: debug weird socket exceptions 2011-08-05 11:08:02 -07:00
Josh Durgin
6df0d71abf kernel: reboot immediately after installing
This hides the latency of rebooting when installing on many machines.
2011-08-05 11:07:40 -07:00
Josh Durgin
3e6b17f1b8 Down machines shouldn't be considered free. 2011-08-05 10:59:16 -07:00
Josh Durgin
68e6f2b77e Make scheduled tasks leave some machines free. 2011-08-04 18:32:57 -07:00
Josh Durgin
4e399da700 Log connections to targets
This way you can tell which machines have problems in case of an
error.
2011-08-04 18:25:43 -07:00
Greg Farnum
6ac6f7ab38 teuthology: convert from bzip2 to gzip.
gzip is much, much faster on large log files. With a 7.7GB client log, gzip
took 2:45 to compress it to 624MB. bzip2 took 34:38 to compress it to
366MB. For our purposes the space savings are not worth the time loss.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-07-29 10:35:02 -07:00
Sage Weil
277c4ff7aa set max_mds based on non-standbys 2011-07-28 10:25:30 -07:00
Sage Weil
5b0924494a tolerate named (not numbered) mons 2011-07-26 22:07:02 -07:00
Sage Weil
7c0f7c23c7 specify and clean up admin socket 2011-07-26 22:00:39 -07:00
Josh Durgin
271e066d6c Connect without using any known_hosts files. 2011-07-19 17:13:13 -07:00
Josh Durgin
8d196b001c Make targets a dictionary mapping hosts to ssh host keys. 2011-07-19 17:13:13 -07:00
Josh Durgin
ac5c1c41dd Add an overrides section for the ceph task.
This lets you run a suite against a particular version of ceph, or
with special debug settings.
2011-07-15 17:15:12 -07:00
Josh Durgin
9721e33457 Better interface for running functions in parallel. 2011-07-14 14:39:50 -07:00
Josh Durgin
b99e33f00c Download ceph binaries in parallel. 2011-07-13 14:02:46 -07:00
Josh Durgin
3e2c6c6cac Run workunits on different clients in parallel. 2011-07-13 14:02:46 -07:00
Josh Durgin
a282991bed Download and run autotests on multiple clients in parallel.
These clients must still be on different machines,
or they'll clobber each other's results.
2011-07-13 14:02:43 -07:00
Tommi Virtanen
c88ef9e7f7 Merge branch 'localdir'
Conflicts:
	teuthology/task/ceph.py
2011-07-13 12:38:12 -07:00
Tommi Virtanen
127ef6861c Feed locally-created binary tarball to remotes in parallel.
This should be faster as long as we have the bandwidth for it.
2011-07-13 12:34:39 -07:00
Tommi Virtanen
aee944229e Use a nameless tempfile for local tarball, avoids cleanup. 2011-07-13 12:18:55 -07:00
Tommi Virtanen
f52df63bce More careful error checking, avoid need for shell quoting. 2011-07-13 12:07:36 -07:00
Tommi Virtanen
e7618a6750 Clean up tarball tmpdir in all cases.
Prefer shutil.rmtree over os.system('rm -rf ...').
2011-07-13 11:32:28 -07:00
Tommi Virtanen
c701fe500c Use tempfile instead of ad hoc temp dir creation. 2011-07-13 10:58:01 -07:00
Tommi Virtanen
3547eba712 Avoid identifier clash with builtin "dir". 2011-07-13 10:17:04 -07:00
Sage Weil
8f3d56ade5 include sha1 in summary
Redundant (there's also a ceph-sha1 file), but convenient.
2011-07-11 20:32:44 -07:00
Josh Durgin
1edd435e8c Clean up from pyflakes. 2011-07-11 18:07:40 -07:00
Josh Durgin
5fadb1c11c Whitespace and style cleanup. 2011-07-11 18:07:37 -07:00
Josh Durgin
e69cf0b1b7 Success of test may not have been set yet. 2011-07-11 18:00:12 -07:00
Greg Farnum
f92b3a1cca add locktest task
This will retrieve xfstests' locktest and run it on two clients.

I still need to tweak this so the logging output we get is more useful, and
so that we test extra features like wait locks, but it does execute.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-07-11 16:45:02 -07:00
Greg Farnum
38ad4d1bf1 task ceph: distribute monmap to all nodes, not just mons.
And clean up the monmap, too!
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-07-11 16:45:02 -07:00
Josh Durgin
28f19a4104 Add an option to keep machines locked if a test fails. 2011-07-11 16:23:05 -07:00
Sage Weil
2f35eddb27 clean up locked machine list 2011-07-11 15:28:15 -07:00
Sage Weil
91c6f351a1 tell user which machines you locked 2011-07-11 14:39:21 -07:00
Sage Weil
a8d4901fe6 make connect work if no roles are specified
This is useful for -nuke.
2011-07-11 14:23:31 -07:00
Josh Durgin
fd30ed76bf Add --block option to retry until machines are locked.
If there are not enough machines up, fail immediately.
2011-07-07 16:15:18 -07:00
Josh Durgin
a55d2eb53a Read lock server from ~/teuthology.yaml. 2011-07-07 12:35:11 -07:00
Josh Durgin
9bfca87980 Check that all machines are locked, and add an option to lock machines instead of providing targets. 2011-07-07 12:35:11 -07:00
Greg Farnum
4fcecf0184 task ceph: set_max_mds so multiple MDS nodes are used
The current check will be insufficient when we handle standby-replays,
standbys, etc, but it's a lot better than the current situation where
it starts up all the daemons but only one is active!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-07-06 16:45:57 -07:00
Greg Farnum
850f337fc9 workunits task: clean up properly if there's an error.
Previously it would fail out and leave the workunits directory, causing
final cleanup to fail.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-07-06 16:45:57 -07:00
Tommi Virtanen
9655042d4b Skip s3-tests marked fails_on_rgw, they will fail anyway. 2011-07-06 14:17:24 -07:00
Tommi Virtanen
3665f7530a The shell exits after the command, hence there is no need for pushd/popd. 2011-07-06 14:15:51 -07:00
Josh Durgin
7ea8ecdc6b Don't set unix env vars in fastcgi env. 2011-07-06 11:40:25 -07:00
Sage Weil
7e603ceb61 adjust ceph.conf from yaml input 2011-07-05 16:47:00 -07:00
Josh Durgin
f80a2f69c6 Remove quotes from apache conf. 2011-07-05 16:48:00 -07:00
Josh Durgin
a3b42e6556 Let apache kill rgw.
It seems to be getting killed correctly now.
2011-07-05 16:38:21 -07:00
Josh Durgin
ba6545f8b7 Set LD_LIBRARY_PATH for rgw. 2011-07-05 16:32:41 -07:00
Sage Weil
d04256aa96 set flavor to 'local' if pushing from local src dir
always record in summary
2011-07-05 15:14:42 -07:00
Josh Durgin
003492a2d5 Retry connecting based on more error codes. 2011-07-05 13:48:26 -07:00
Josh Durgin
ae87abf333 Add s3tests task. 2011-07-01 16:18:59 -07:00
Josh Durgin
03a08eb392 Add rgw task with hardcoded apache config. 2011-07-01 16:18:59 -07:00
Tommi Virtanen
e697e4b8ee pyflakes cleanup. 2011-07-01 09:28:56 -07:00
Tommi Virtanen
2137da2cf3 Add final slash to path to enforce it being a dir. 2011-07-01 09:22:25 -07:00
Sage Weil
53fc6920b1 use local source dir for teuthology run
- ceph:
    path: /home/sage/ceph
...

This will 'make install' to a temp dir, tar it up, and ship that to the
target nodes.  A usr/local -> . symlink will be added if /usr/local isn't
there, to accommodate trees that /usr based autotools paths.
2011-07-01 09:09:39 -07:00
Josh Durgin
effee7ffc6 Make kernel a separate entity outside of tasks.
It is run before anything other than checking for conflicts.
This way it can't step on the connections used by other tasks,
or clobber test files in /tmp when rebooting.
2011-06-30 16:05:53 -07:00
Josh Durgin
4b1d536ab9 Don't recreate ctx.cluster when reconnecting after installing kernels. 2011-06-30 15:51:09 -07:00
Josh Durgin
6f86de4423 Save kernel version in summary instead of a separate file. 2011-06-30 15:48:43 -07:00
Josh Durgin
7b1b332264 Kernel task does not need to be a context manager. 2011-06-30 15:47:54 -07:00
Tommi Virtanen
e16556e377 Archive dir removal has to be unconditional.
Even when ctx.archive is False, ceph logging
need the destination directory exist, so
/tmp/cephtest/archive has to be created (and
thus removed) unconditionally.
2011-06-30 11:26:20 -07:00
Sage Weil
437631695d workunits: set LD_LIBRARY_PATH
Needed by rbd workunit to find librbd.so
2011-06-29 12:55:21 -07:00
Sage Weil
770edc3a0b suite: set each run description to combination of facet names 2011-06-29 12:09:38 -07:00
Sage Weil
bc91e1b580 workunits: set CEPH_ARGS so 'ceph' etc can find config 2011-06-29 10:57:35 -07:00
Sage Weil
a9a2733621 workunit: include ceph bin dir in path
Some workunits need these binaries (e.g. kclient/file_layout.sh needs
cephfs).

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-29 10:41:03 -07:00
Josh Durgin
79956538a4 Add kernel task for controlling kernel version for different roles. 2011-06-28 14:51:11 -07:00
Josh Durgin
0904ce550d Move get_clients method into misc to avoid duplication. 2011-06-28 14:51:11 -07:00
Sage Weil
256e6a2bbc tasks/clock: tolerate ntp daemon 2011-06-28 14:18:08 -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
Josh Durgin
05e2ba9b15 Save the flavor of a run in the summary file. 2011-06-21 11:02:43 -07:00
Tommi Virtanen
e481db1337 Archive syslog messages while the test was in progress. 2011-06-20 14:31:41 -07:00
Tommi Virtanen
bc8cc868f9 Fix bug that thought all >1 node clusters always had core dumps.
Accidentally shared the stdout between all the runs.
2011-06-20 14:31:41 -07:00
Tommi Virtanen
6a32f723a3 Autotests run no ceph software, so don't try to do code coverage there. 2011-06-17 16:01:26 -07:00
Tommi Virtanen
57c542b9e8 Archive cores dumped during test, record test as failed if any seen. 2011-06-17 16:00:39 -07:00
Tommi Virtanen
2738ce011e Better examples for kclient task. 2011-06-16 16:51:57 -07:00
Tommi Virtanen
4f46e4b7f6 Make cfuse and kclient default to all clients. 2011-06-16 16:09:50 -07:00
Tommi Virtanen
b49c7390cc Archive autotest result output. 2011-06-16 16:09:49 -07:00
Tommi Virtanen
5b237fc50e Support running multiple autotest tests.
Docs had this from the start, it was just buggy. Still
doesn't support using the "autotest" task more than once,
no easy way to differentiate the results in that case.
2011-06-16 16:09:49 -07:00
Sage Weil
cebf88d92a show role in log prefix when running workunits 2011-06-16 15:19:55 -07:00
Sage Weil
55cfd9298e fix typo in workunits example 2011-06-16 15:19:55 -07:00
Sage Weil
7fe89b795f add clock task to sync clocks 2011-06-16 15:19:55 -07:00
Tommi Virtanen
78a3c23418 Move non-ceph logic out of the ceph task: base dir, archive transfer. 2011-06-16 14:36:22 -07:00
Tommi Virtanen
301ab56748 Move non-ceph logic out of the ceph task: host in use check.
To avoid every config always listing basic tasks, we silently
add internal.* tasks in front of the task list.
2011-06-16 14:36:21 -07:00
Tommi Virtanen
629ad4477d Move /tmp/cephtest/data creation to where it belongs, in ceph.cluster. 2011-06-16 14:36:21 -07:00
Tommi Virtanen
594a3d3f04 Refactor ceph log handling into a separate subtask. 2011-06-16 14:36:21 -07:00
Tommi Virtanen
445186b0a5 Refactor ceph healthy waiting into a separate subtask.
Note, not a context manager, just a task. There's no cleanup.
2011-06-16 14:36:21 -07:00
Tommi Virtanen
259eb35068 Refactor ceph mds daemon handling into a separate subtask. 2011-06-16 14:36:21 -07:00
Tommi Virtanen
2da2d258e9 Refactor ceph osd daemon handling into a separate subtask. 2011-06-16 11:34:42 -07:00
Tommi Virtanen
3fc00e3764 Refactor ceph mon daemon handling into a separate subtask. 2011-06-16 11:34:42 -07:00
Tommi Virtanen
574cfe98ab Remove the "ceph mds set_max_mds" call, apparently it's not needed.
We can always re-add it if and when it's useful.
2011-06-16 11:04:59 -07:00
Tommi Virtanen
915a366a36 Refactor ceph cluster setup into a separate subtask. 2011-06-16 10:39:26 -07:00
Tommi Virtanen
14ddb419d6 Start splitting the ceph task into smaller units.
This lets them nicely have independent error handling;
an example case where that is desirable is that the
old code failed to archive the logs if one of the daemons
exited with an error.

This also means a config file might specify just some
of the smaller tasks, e.g. for a test that explicitly
wants to create operational error situations.

The diff looks big because of an indentation change,
use "git diff -b" for a smaller diff.
2011-06-16 10:39:26 -07:00
Josh Durgin
1dd25b4745 Add task for mounting with the kernel client. 2011-06-15 18:08:29 -07:00
Josh Durgin
98a8071935 Remove unused imports and variable. 2011-06-15 15:22:12 -07:00
Tommi Virtanen
2bae22f0a3 Create the archive dir earlier, move out of ceph task. 2011-06-15 12:10:27 -07:00
Tommi Virtanen
faa855dd2e Add task for running ceph workunits, QA tests that expect cwd to be ceph mount. 2011-06-15 11:59:57 -07:00
Tommi Virtanen
e00b7fc6ad Clean up after an autotest run. 2011-06-15 11:51:16 -07:00
Tommi Virtanen
cd8f31db0f Write config.yaml directly to file. 2011-06-15 11:50:32 -07:00
Tommi Virtanen
d157e32393 Move imports to the top. 2011-06-15 11:49:04 -07:00
Josh Durgin
c49f9471f1 Archive teuthology config. 2011-06-14 17:53:19 -07:00
Samuel Just
883991a057 added thrashosds
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-06-13 17:01:02 -07:00
Samuel Just
398a333833 adding radosbench.py to tasks
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-06-13 17:00:43 -07:00
Samuel Just
5cbe10c3bb added testsnaps
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-06-10 14:42:52 -07:00
Josh Durgin
d09ae0b280 With coverage, use SIGTERM to make the daemons exit(0). 2011-06-10 11:24:26 -07:00
Josh Durgin
e52bb0cf07 Put all coverage data in the archive dir. 2011-06-10 11:17:11 -07:00
Tommi Virtanen
798f3cc68c Can now run specific ceph version based on sha1. 2011-06-09 17:17:47 -07:00
Tommi Virtanen
ae77af0847 Simplify ceph sha1 saving. No need to round-trip, store N copies. 2011-06-09 17:17:47 -07:00
Josh Durgin
2533edde83 Save ceph sha1 in coverage dir.
This is needed to postprocess the coverage data.
2011-06-09 17:17:47 -07:00
Tommi Virtanen
c45488c24c Show status message before gcov-style shutdown of daemons. 2011-06-09 17:17:47 -07:00
Tommi Virtanen
7c5eed2f90 Check daemon exit codes, even when using gcov. 2011-06-09 17:17:47 -07:00
Josh Durgin
43f37b8da2 Add coverage support. 2011-06-09 17:17:47 -07:00
Tommi Virtanen
f162f07edb Support ceph tarball "favors", that is different gitbuilders.
Use that for picking the gcov gitbuilder, when told to record code
coverage. Actual coverage support comes in the next commit.

Assuming all the world is a VA.. I mean amd64, for now.
2011-06-09 17:16:06 -07:00
Tommi Virtanen
f3757f76d8 Let ceph task config specify branch or tag to run. 2011-06-09 17:12:54 -07:00
Tommi Virtanen
4903d06a76 Archive everything written to the "archive" directory.
This avoids listing "log", "profiling-logger", etc individually.
Adding new types of archived files should just be a matter of
adding a subdirectory under "archive".
2011-06-09 17:10:11 -07:00
Tommi Virtanen
fcc73e0d1d Class loading no longer needs a temp dir. 2011-06-07 14:51:56 -07:00
Tommi Virtanen
e6ae6bddf3 Archive logs if given --archive=PATH. Clean up after a test run. 2011-06-07 14:47:30 -07:00
Tommi Virtanen
ce10d4f5e0 Add missing trailing commas.
Lists of strings where last item has no comma are just
traps waiting to hurt you when you add a new item at
the end.
2011-06-07 12:58:48 -07:00
Tommi Virtanen
c8ecd12949 Remove mountpoint after shutting down cfuse. 2011-06-06 15:38:20 -07:00
Tommi Virtanen
2b237882d6 First draft of documentation. 2011-06-06 14:22:49 -07:00
Tommi Virtanen
086076923d Remove dead code. 2011-06-03 14:48:09 -07:00
Tommi Virtanen
57f979f177 Refactor for modularity.
New style: run "./virtualenv/bin/teuthology -v interactive.yaml".
2011-06-03 14:47:44 -07:00