Commit Graph

920 Commits

Author SHA1 Message Date
Warren Usui
3ebabb346f Add timer.py and display summary info in run.py.
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-02-25 19:15:15 -08:00
caleb miles
b744f42361 radosgw-admin: Bug fixes for issue 4251.
Fixes errors introduced by d44fb14762.

Signed-off-by caleb.miles <caleb.miles@inktank.com>
2013-02-25 19:14:21 -08:00
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
d7337364a3 exec, pexec: set TESTDIR
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-25 15:12:56 -06:00
Sage Weil
31ef4a1276 ceph.conf: debug ms = 1 for monitors
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
d8021a1aa0 nuke: sudo for killall
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-22 10:51:51 -08:00
Joao Eduardo Luis
045a86680d task: ceph: create monitor data directories prior to --mkfs
The new monitor store does not create the data directory on --mkfs. We
must create it instead, much like what happens with the osds.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-02-22 01:04:06 +00:00
Joao Eduardo Luis
c1b75c6b0c task: mon_thrash: Thrash multiple monitors and 'maintain-quorum' option
We now add a new option 'thrash-many' that by being set to true will break
the default behaviour of killing only one monitor at a time.  Instead,
this option will select up to the maximum number of killable monitors to
kill in each round.

We also add a new 'maintain-quorum' option that will limit the amount of
monitors that can be killed in each thrashing round.  If set to true, this
option will limit the amount of killable monitors up to (n/2-1).  This
means that if we are running a configuration that only has up to two
configured monitors, if 'maintain-quorum' is set to true, this task won't
run as there are no killable monitors -- in such a scenario, this option
should be set to false.

Furthermore, if 'store-thrash' is set to true, then 'maintain-quorum' must
also be set to true, as we cannot let the task to thrash all the monitor
stores, or we wouldn't be able to sync from other monitors, nor can we
let quorum be dropped, or we won't be able to resync our way into quorum.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-02-22 00:44:49 +00:00
Joao Eduardo Luis
d28bb05a65 task: mon_thrash: Add 'seed' and 'store-thrash' options
This patch introduces an option to thrash a monitor store when we thrash
the monitors, as well as a 'store-thrash-probability' option (defaulting
to 50%).

We also took this opportunity to introduce a new 'seed' option, that ought
to allow a given run of this task to be reproducible.  This might come in
hand when attempting to reproduce a given behavior that would otherwise
be randomly triggered.

You should note that while the 'seed' option will indeed mimic past
behaviors, this only applies to a past behavior of this task: other tasks
are not affected by this value, nor are any workunits or even ceph daemons.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
2013-02-22 00:44:25 +00:00
Sage Weil
278be217b6 ceph.conf: log file, not log dir
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-21 16:21:33 -08:00
Sage Weil
c85ba56397 install: ignore apt-get update failures on package removal
At that point we don't really care.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-21 15:08:22 -08:00
Sage Weil
17be13b2b4 ceph: fix log, /var/run/ceph stupid
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-21 15:08:14 -08:00
Josh Durgin
a862d8bf77 Fix unused vars, unused imports, and aliasing
Found by pyflakes

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-02-21 14:47:00 -08:00
Josh Durgin
23669be9af radosgw-admin: fix errors found by pyflakes
Using the wrong variable, and true/false are capitalized in python.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-02-21 14:37:46 -08:00
Sage Weil
8b0eef29c5 ceph_manager: fix asok string formatting
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-21 12:52:30 -08:00
Sage Weil
5c0a2f40de ceph: make /var/run/ceph writeable by non-root too
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-21 12:45:26 -08:00
Sage Weil
1d62baf107 ceph: fix /var/log/ceph chown/cmod typo
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-21 12:35:55 -08:00
Sage Weil
e1573ea181 ceph.conf: use default locations for admin socket; fix client log file
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-21 11:35:36 -08:00
Sage Weil
2574d87562 make /var/log/ceph writeable by non-root; make clients log to it
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-21 11:05:30 -08:00
Sage Weil
4431e1efab install: be slightly more efficient
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-20 21:49:22 -08:00
Sage Weil
00986ce080 install: be more careful about package removal
- call apt separately for each package; it will error out annoyingly if
there is one in the list not in the APT sources.
- use dpkg with appropriate force to clean up broken half-installs.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-20 21:46:37 -08:00
Sage Weil
7d8a72a379 ceph-fuse: install -dbg package, too
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-20 21:36:47 -08:00
Sage Weil
c64cd20103 radosgw-admin: fix sleep syntax error
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-20 21:02:16 -08:00
Sage Weil
ecb563b221 install: install libcephfs1[-dbg]
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-20 16:27:52 -08:00
Sage Weil
28f11d037f ceph_manager: drop extra line
Ooops, from 0c990f3add.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-20 16:21:42 -08:00
Sage Weil
9996bdbe6e run: print pass/FAIL as final line
Makes it easy to tell at a glance if your last test passed or not.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-20 15:27:23 -08:00
Yehuda Sadeh
6c2f4a2bbe Merge remote-tracking branch 'origin/wip-3634' 2013-02-20 14:10:50 -08:00
Sage Weil
0c990f3add ceph_manager: eventually time out while waiting for admin socket
Otherwise we get stuck in a loop if an osd crashes unexpectedly, the
task never fails, and we don't collect all the evidence.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-19 22:24:27 -08:00
Sage Weil
3de89969db schedule_suite.sh: drop obligatory install task
Added these to ceph-qa-suite.git instead.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-19 22:15:18 -08:00
Sage Weil
9617dcc6b2 Merge branch 'unstable'
Conflicts:
	teuthology/task/workunit.py
2013-02-19 21:04:24 -08:00
Sage Weil
1a0e201d65 ceph: fix valgrind log check
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 16:43:04 -08:00
Sage Weil
50331e0478 cleanup-run.sh: figure out owner
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 16:24:00 -08:00
Sage Weil
2653b5a07b install: clean up flavor, distro, arch detection
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 15:40:43 -08:00
Sage Weil
60fee7a97e schedule_suite.sh: include install task in all jobs
This is probably temporary.  It's simpler than adding the task to every
job in the suite.  We'll want to do that later when we want to test
alternative install methods (like ceph-deploy's install function).

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 15:40:43 -08:00
Joe Buck
84d7f37fdb testing: export TESTDIR in workunit task.
Some command-line tools need to reference the path
to the test directory, which is created at run-time.
We export this as TESTDIR

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by:  Sam Lang <sam.lang@inktank.com>
2013-02-18 15:22:52 -08:00
Sage Weil
3f7c9bcaa4 move the install to a separate task.
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 15:06:52 -08:00
Sage Weil
176a3408c9 testrados -> ceph_test_rados
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:20 -08:00
Sage Weil
bf6e846d89 cleanup-run.sh: <owner> <run name>
Sloppy... this assumes the run is in the description as the archive dir.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:06 -08:00
Sage Weil
4869b494c9 lock: allow filtering by description, description substring
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:06 -08:00
Sage Weil
2a344c1079 rgw: sudo
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:06 -08:00
Sage Weil
ed82d87566 fix a few archive/log stragglers
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:06 -08:00
Sage Weil
38b30c646f ceph: make gitbuilder host configurable
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:06 -08:00
Sage Weil
b1c9864a7a ceph: install -dbg packages, too
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:06 -08:00
Sage Weil
d8b6bf94ec ceph: create /var/run/ceph
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:05 -08:00
Sage Weil
969a6def3b ceph-fuse: sudo
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:05 -08:00
Sage Weil
4eb047b4ea sudo for admin socket commands
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:05 -08:00
Sage Weil
0ad55b3604 cfuse -> ceph-fuse 2013-02-18 13:39:05 -08:00
Sage Weil
88ebc27f16 ceph: store logs in normal location
We need to switch around how these are compressed and pulled, since they
aren't in the regular archive dir anymore.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:05 -08:00
Sage Weil
d1d36241b7 ceph: use default data, keyring locations
This required reordering the cluster setup so that we do the ceph-osd
--mkfs --mkkey prior to gathering keys and initializing the monitors.

Also, run daemons as root.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 13:39:05 -08:00