Commit Graph

2136 Commits

Author SHA1 Message Date
Warren Usui
6810610291 Add docstrings to internal.py
Fixes: 6534
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-02-13 22:37:51 -08:00
Warren Usui
5c36a5cebd Add doc strings to Swift tests
Fixes: 6538
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-02-13 21:11:34 -08:00
Warren Usui
567961b727 Readjust the indentation of mon_clock_skew_check.py and mon_thrash.py.
Added docstrings.

Fixes: 6537
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-02-13 20:36:08 -08:00
Dan Mick
12b79044f4 Review: Rename calamari_testdir/ to calamari/ 2014-02-13 20:00:50 -08:00
Warren Usui
bee587c33d Added some docstrings.
Fixes: 7002
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-02-13 17:40:25 -08:00
Dan Mick
f06551097e Fix flake8 failures
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2014-02-12 13:25:54 -08:00
John Spray
d53a5b65c9 Spelling
Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-12 17:29:09 +00:00
John Spray
d39dd8cb4c Log correct name of context during errors
(instead of GeneratorContextManager)

Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-12 17:29:09 +00:00
John Spray
ab2a01ff01 Catch a case where we weren't getting tracebacks
Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-12 17:29:09 +00:00
John Spray
ca83b7b23b Timestamp stdout log output
Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-12 17:29:09 +00:00
John Spray
896412f287 Remove spurious print
This was causing junk output like <type 'exceptions.StopIteration'>

Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-12 17:29:09 +00:00
John Spray
d0a4349231 Capture stderr and include in CommandFailedError
Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-12 17:29:09 +00:00
Zack Cerza
2b9a6bc035 Merge pull request #182 from ceph/wip-imports
Make libvirt import optional (OS X)
2014-02-12 10:46:35 -06:00
John Spray
eafeece243 Show hostname instead of IP in errors
Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-12 16:42:52 +00:00
Alfredo Deza
d728b7ab6a Merge pull request #189 from ceph/wip-6536-wusui
Add docstrings to s3 related tasks.
2014-02-12 10:12:35 -05:00
Warren Usui
cee713ff6a Add docstrings to s3 related tasks.
Fixes: 6536
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-02-11 20:21:06 -08:00
Dan Mick
e26bb35649 Add calamari setup/test tasks
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2014-02-11 13:34:31 -08:00
Zack Cerza
51957433db Merge pull request #184 from ceph/wip-pg-scrub-from-ceph-wusui
Scrub osds when ceph task finishes
2014-02-10 18:25:14 -06:00
Zack Cerza
ad6d412ee8 Fix #7369: "sed expression must be raw string"
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-10 15:40:44 -06:00
Warren Usui
ceffee40d4 Make sure osd_scrub_pgs gets called if healthy call fails.
Fixes: 7198
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-02-10 09:28:39 -08:00
Warren Usui
69f29d17f0 Move osd_scrub_pgs call to finally block of ceph main task.
Fixes: 7198
Signed-off-bye: Warren Usui <warren.usui@inktank.com>
2014-02-07 14:54:23 -08:00
Sage Weil
330612dc87 schedule_suite: be slightly more verbose
Signed-off-by: Sage Weil <sage@inktank.com>
2014-02-05 15:20:15 -08:00
Alfredo Deza
0d2cbe64f4 Merge pull request #185 from ceph/wip-7342
Enable killing runs that haven't even started yet
2014-02-05 14:46:14 -05:00
Zack Cerza
7759473e3e Enable killing runs that haven't even started yet
This requires passing --machine-type.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-05 13:43:34 -06:00
Sage Weil
c2bd8464d8 valgrind: fix msync suppression
Signed-off-by: Sage Weil <sage@inktank.com>
2014-02-05 11:26:41 -08:00
Warren Usui
2bcc60061c Implement the rest of the checks for automatic pg scrubbing.
osd_scrub_pgs now:
1.) Insures that all pgs are clean and active.
2.) Performs the scrub of all OSDs.
3.) Waits until all pgs have been scrubbed or no progress in scrubbing has
    been made for two minutes.

These changes have been made on top of a previous check-in that was incomplete

Fixes: 7198
Signed-off-bye: Warren Usui <warren.usui@inktank.com>
2014-02-03 22:18:38 -08:00
Dan Mick
9b2b2c28f1 misc.py: helper roles_to_remotes for generic use
roles_to_remotes will take a config key, 'roles' by default,
and search cluster.remotes for those roles, returning a list
of remotes that hold it.  The list is uniquified by default,
but that can be overridden.  So you can have a task that
should run on specific roles, configure it with
"roles: [mon.0 server.0 osd.2]", and call this to get a list
of remotes that contain those roles.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2014-02-03 19:37:59 -08:00
Sage Weil
be3ea71cdb valgrind: another tcmalloc suppression
With this I can run a simple job with a normal build (not
notcmalloc) and valgrind does not complain.  Fingers crossed!

Signed-off-by: Sage Weil <sage@inktank.com>
2014-02-01 22:05:14 -08:00
Warren Usui
e8717163a6 Scrub osds when ceph task finishes
Fixes: 7198
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-01-31 15:29:02 -08:00
Zack Cerza
c1bc7fcc7f Merge pull request #180 from ceph/wip-7278
install.py: look for 'local' in config directly, don't warn if not found
2014-01-31 13:41:56 -08:00
Zack Cerza
8213ebbdca Merge pull request #183 from ceph/wip-enhance
Wip enhance
2014-01-31 13:41:21 -08:00
Dan Mick
a321b6e79c README.rst: describe new pp object and unlock_on_failure option.
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2014-01-31 13:30:08 -08:00
Zack Cerza
915cb5d4f1 Merge pull request #181 from ceph/wip-thrash-exception
Fix MDS wait when get_mds_status returns None
2014-01-31 13:12:43 -08:00
Dan Mick
1845a5ab68 interactive.py: add handy "pp" for prettyprinting at the prompt
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2014-01-31 13:07:51 -08:00
Dan Mick
77ec431105 internal.py: add global config key 'unlock_on_failure'
When testing new tasks, it's a drag to have to keep manually unlocking
the targets.  Default behavior is to keep them locked for any failure;
this allows overriding that choice for the case where the failure is
in debugging the task, where the state of the targets isn't important.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2014-01-31 13:07:45 -08:00
John Spray
b80e510257 Make libvirt import optional (OS X) 2014-01-31 20:53:45 +00:00
John Spray
aaf9b51c60 Fix MDS wait when get_mds_status returns None 2014-01-31 20:49:13 +00:00
Dan Mick
c489e4408b install.py: look for 'local' in config directly, don't warn if not found
Fixes: #7278
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2014-01-30 23:47:03 -08:00
Zack Cerza
de771ddd7a Update README.rst to reflect changes in libvirt
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-01-30 14:54:23 -06:00
Alfredo Deza
cc3956adf4 fix indentation level for task
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
(cherry picked from commit 1397d29963b2135998ccaaa9a89c83e0bb9710f4)
2014-01-28 16:04:46 -05:00
Alfredo Deza
bdafbc0c56 make sure we are using a dict
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
(cherry picked from commit fe4c97dc4f5f893df526f8694d4b9fafb064f9d3)
2014-01-28 16:04:25 -05:00
Zack Cerza
81d1405a15 Attempt to fix #7241
This involves moving everything in build_ceph_cluster() inside the try:
block, so if an exception fails the cleanup in the finally: block will
actually be executed.
2014-01-28 10:05:03 -06:00
Zack Cerza
427bf93c88 Fix PEP-8 linter complaints
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-01-28 09:54:54 -06:00
Sage Weil
4c98d67639 Merge pull request #175 from ceph/wip-tcmalloc
valgrind: ignore tcmalloc uninitialized memory
2014-01-27 21:14:17 -08:00
Zack Cerza
e424d78c6b Be more verbose about log file locations
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-01-27 12:28:53 -06:00
Zack Cerza
50722a7d9c Symlink worker logs into job archive dir
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-01-24 10:19:43 -06:00
Alfredo Deza
60da6e0c6f Merge pull request #177 from ceph/wip-7213
use create-initial for deploying monitors
2014-01-24 05:54:37 -08:00
Alfredo Deza
cf250a8f4a use create-initial for deploying monitors
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-01-23 16:41:49 -05:00
Zack Cerza
e8bb1654b2 call wait() on the teuthology-results Popen object
This ought to fix the issue where zombie teuthology-results processes
stick around.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-01-17 10:05:21 -06:00
Alfredo Deza
1ddc3fdb6a Merge pull request #176 from ceph/wip-7164
lock.py: request only rsa keys from ssh-keyscan
2014-01-16 13:00:37 -08:00