Commit Graph

55 Commits

Author SHA1 Message Date
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
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
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
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
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
Sage Weil
7e603ceb61 adjust ceph.conf from yaml input 2011-07-05 16:47:00 -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
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
Sage Weil
770edc3a0b suite: set each run description to combination of facet names 2011-06-29 12:09:38 -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
57c542b9e8 Archive cores dumped during test, record test as failed if any seen. 2011-06-17 16:00:39 -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
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
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
Josh Durgin
d09ae0b280 With coverage, use SIGTERM to make the daemons exit(0). 2011-06-10 11:24:26 -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