Josh Durgin
57bb434def
Fix errors found by pyflakes
...
A bunch of unused imports and variables.
2012-09-21 16:46:24 -07:00
tamil
78b7b02c07
imported subprocess module in nuke script
...
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2012-09-14 15:04:40 -07:00
Josh Durgin
d27806a293
nuke: add missing import
2012-09-13 14:31:46 -07:00
Mike Ryan
7f6591b556
ceph: support tmpfs_journal option to put journal on tmpfs
...
Signed-off-by: Mike Ryan <mike.ryan@inktank.com>
2012-08-16 15:50:10 -07:00
Tommi Virtanen
99ac6b0b3e
Disable asynchronous DNS lookups.
...
Especially on older hosts, we keep triggering errors::
ServerNotFoundError: Unable to find the server at
teuthology.front.sepia.ceph.com: [Errno 3] name does not exist
That comes from libevent's evdns via gevent.dns and httplib2. The rate
of these errors is low enough that they seem to be perhaps timeouts,
or more arbitrary. Busy looping on DNS resolution calls has never
triggered them, so far.
With ``monkey.patch_all(dns=False)``, the teuthology process will
block as a whole whenever doing DNS resolution. This will hopefully be
rare enough that it won't matter.
The only real "fix" seems to be upgrading libraries and hoping for the
best; this commit can be reverted after that is done.
2012-08-13 16:18:33 -07:00
Sage Weil
55847fc298
nuke: log what pid we are killing when we kill it
2012-07-18 11:04:30 -07:00
Sage Weil
9b28948635
nuke: honor 'check-locks: ...' field in targets file
...
If you are nuking a yaml file with check-locks: false, don't check locks.
2012-07-11 14:23:51 -07:00
Sage Weil
9ea22133b7
use sudo to kill teuthology proc
2012-07-06 20:15:55 -07:00
Sage Weil
132dc0066d
nuke: be more careful about kill; simplify
...
If the archive dir is specified, make sure we are killing the right
process.
Also drop the kill_process helper; it's simple enough to open-code.
2012-07-04 14:47:33 -07:00
Sage Weil
6dbf53e298
nuke: nuke based on archive path
...
Use path/config.yaml for targets, path/pid for pid to kill, and
path/owner for job owner.
2012-07-04 14:47:33 -07:00
tamil
f3c2451797
nuke - optionally kill the process hung
...
Added a function kill_process to kill the process hung in the nightly runs.
It takes in pid as an optional argument.
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2012-07-03 12:23:36 -07:00
Josh Durgin
25114bf9a4
nuke: refactor to run in parallel and add unlock option
...
nuke-on-error already did this, but now teuthology-nuke does it
too. Also outputs targets that couldn't be nuked at the end.
2012-04-24 17:52:01 -07:00
Sage Weil
a11b69fd4c
nuke: ignore ntpdate errors
...
We keep seeing a race between ntpd startup and our stop + ntpdate + start
sequence. Ignore errors here.
2012-04-23 09:21:02 -07:00
Sage Weil
952940272b
nuke: don't run umount when no xargs args
...
Gets rid of this noise:
INFO:teuthology.nuke:Unmount any osd data directories...
INFO:teuthology.orchestra.run.err:Usage: umount -h | -V
INFO:teuthology.orchestra.run.err: umount -a [-d] [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
INFO:teuthology.orchestra.run.err: umount [-d] [-f] [-r] [-n] [-v] special | node...
INFO:teuthology.orchestra.run.err:Usage: umount -h | -V
INFO:teuthology.orchestra.run.err: umount -a [-d] [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
INFO:teuthology.orchestra.run.err: umount [-d] [-f] [-r] [-n] [-v] special | node...
...
2012-04-03 15:56:36 -07:00
Sage Weil
2a18c3e1d0
nuke: unmount osd data directories
...
This helps us avoid reboot to clean up osd data directories that are left
mounted.
2012-03-06 09:34:38 -08:00
Sage Weil
50cc60f02d
nuke: nuke testrados too
...
Slightly fewer nuke -r's
2012-02-14 15:23:19 -08:00
Sage Weil
975d73a2bb
nuke: nuke testrados and rados processes, too
...
So that -r is needed slightly less often.
2012-02-13 15:28:24 -08:00
Josh Durgin
0da44591a9
nuke: take config files from -t argument
...
teuthology-lock and teuthology-updatekeys both use -t for this already
2012-01-12 14:48:36 -08:00
Sage Weil
721c0e9720
nuke: don't specify full path
...
/tmp/cephtest/binary may have been removed; kill stray daemons by name
only. we really don't care about false positives here!
2011-11-19 20:56:49 -08:00
Josh Durgin
afa56f16d1
nuke: increase reboot timeout
...
Some sepia nodes are very slow to reboot.
2011-11-09 10:49:37 -08:00
Josh Durgin
5d32bcae50
Add nuke-on-error option.
...
This lets automated jobs nuke and unlock machines after failed
tests. Each machine is nuke individually, so one down machine won't
keep others from being nuked and unlocked.
2011-11-08 16:09:21 -08:00
Josh Durgin
fba220ecaa
nuke: reset syslog configuration after rebooting
...
Previously we removed a file and rebooted without syncing, so the file
was never deleted.
2011-10-17 10:40:19 -07:00
Josh Durgin
ae196028ad
nuke: keep up with renaming cfuse -> ceph-fuse
2011-10-03 09:56:42 -07:00
Sage Weil
afc2dc085a
nuke: killall apache2 and radosgw too
2011-10-03 09:44:58 -07: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
82bb57542c
nuke: synchronize clocks after reboot, and optionally synchronize all clocks
2011-09-01 15:35:50 -07:00
Josh Durgin
eedc1756c4
nuke: remove unused import
2011-09-01 10:44:46 -07:00
Josh Durgin
4d778289d3
nuke: localize again imports so they occur after gevent monkey-patching
...
This is necessary to make ssh work properly.
2011-09-01 10:35:25 -07:00
Josh Durgin
51ac06175c
nuke: reboot if rbd is mounted
2011-08-31 19:46:10 -07:00
Josh Durgin
697f3419d0
nuke: add option to reboot all nodes
2011-08-31 14:37:16 -07:00
Josh Durgin
ec768ba3ca
Fix pyflakes warnings.
2011-08-31 14:36:01 -07:00
Greg Farnum
1ea825c643
teuthology-nuke: split the big main function
...
It was getting a bit big, but now all the functions fit on
one screen each.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-10 16:06:45 -07:00
Greg Farnum
af0d7c5e44
teuthology-nuke: move it into its own file.
...
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-08-10 15:38:57 -07:00