Zack Cerza
b301a741f0
Make teuthology.locker a module
2013-09-26 14:00:01 -05:00
Zack Cerza
e30f1fa745
Merge pull request #110 from ceph/wip-nuke-import-os
...
nuke: add missing import os
2013-09-25 13:49:23 -07:00
Sage Weil
25bc62dec1
nuke: add missing import os
...
$ teuthology-nuke -a . -r -u
Traceback (most recent call last):
File "/home/ubuntu/bin/teuthology-nuke", line 9, in <module>
load_entry_point('teuthology==0.0.1', 'console_scripts', 'teuthology-nuke')()
File "/home/ubuntu/teuthology/teuthology/nuke.py", line 343, in main
ifn = os.path.join(ctx.archive, 'info.yaml')
UnboundLocalError: local variable 'os' referenced before assignment
Signed-off-by: Sage Weil <sage@inktank.com>
2013-09-25 13:42:03 -07:00
Alfredo Deza
80dcab7fe4
only use host_key if it is not None
...
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2013-09-25 09:25:35 -04:00
Sage Weil
2870ec5086
rbd: move xfstest TESTDIR=... bit to front of command
...
2013-09-24T11:32:49.169 DEBUG:teuthology.orchestra.run:Running [10.214.132.4]: "/usr/bin/sudo adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage TESTDIR=/home/ubuntu/cephtest /bin/bash /home/ubuntu/cephtest/run_xfstests.sh -c 1 -f xfs -t /dev/rbd1 -s /dev/rbd2 '1-9 11-15 17 19-21 26-29 31-34 41 46-
54 56 61 63-67 69-70 74-76 78-79 84-89 91'"
2013-09-24T11:32:49.211 INFO:teuthology.task.rbd.client.1.err:[10.214.131.22]: /usr/bin/ceph-coverage: 25: exec: TESTDIR=/home/ubuntu/cephtest: not found
Signed-off-by: Sage Weil <sage@inktank.com>
2013-09-24 16:50:07 -07:00
Zack Cerza
218776b219
Fix namespace collision
2013-09-24 15:04:39 -05:00
Sage Weil
f1aac6678e
ceph.conf: fix typo
...
Signed-off-by: Sage Weil <sage@inktank.com>
2013-09-24 15:04:39 -05:00
Zack Cerza
3955666e8e
Add config option 'verify_host_keys'
...
Defaults to True, meaning no change in behavior. If False, don't have
paramiko verify ssh host keys.
2013-09-24 15:04:39 -05:00
Alfredo Deza
3e75cf3b89
fix an undefined name buy importing config
...
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2013-09-24 12:39:43 -04:00
Sage Weil
ed6c2c087e
ceph.conf: reduce min pg per osd
...
Signed-off-by: Sage Weil <sage@inktank.com>
2013-09-24 08:49:32 -07:00
Alfredo Deza
8f4b1974b0
Merge pull request #106 from ceph/wip-mirror
...
Remove lots of ceph.com hardcoding; default to upstream sources
2013-09-24 08:17:22 -07:00
Zack Cerza
4043c7d72c
Split test into two
2013-09-24 10:09:04 -05:00
Zack Cerza
0ce627874f
Don't hardcode the git://ceph.com/git/ mirror
...
Default to https://github.com/ceph/ but add a ~/teuthology.yaml option
2013-09-20 15:53:58 -05:00
Zack Cerza
e6040f7887
Don't hardcode ceph.com mirror for linux-firmware
2013-09-20 15:53:00 -05:00
Zack Cerza
d1deb6d579
Don't hardcode teuthology's git repo URL
2013-09-20 15:24:11 -05:00
Zack Cerza
9de95d174f
Add a basic test for teuthology.config
2013-09-20 15:11:13 -05:00
Sage Weil
bfb276091c
rados: only pass --op copy_from if non-zero
...
Among other things, this does not work with older ceph_test_rados binaries.
Backport: next
Signed-off-by: Sage Weil <sage@inktank.com>
2013-09-20 12:56:45 -07:00
Zack Cerza
1600785d2d
Add config.ceph_git_base_url
2013-09-20 14:38:01 -05:00
Zack Cerza
db1231b467
Use config.lock_server
2013-09-20 14:34:53 -05:00
Zack Cerza
7153c2be45
Add doc noting Inktank's lockserver URL
...
Since I just removed it from lockstatus.py.
2013-09-20 14:01:07 -05:00
Zack Cerza
e93c8ef275
Use teuthology.config.
...
Also use os.path.join()
2013-09-20 14:00:46 -05:00
Zack Cerza
eeb78b6b04
Update test_connect() to reflect API changes
...
Looks like paramiko changed a bit internally. All unit tests pass now!
2013-09-20 08:39:36 -05:00
Zack Cerza
b993ecac9b
Update many unit tests to reflect 2yrs of changes
...
These tests hadn't been updated in over two years. Only one is left
failing.
2013-09-19 19:29:06 -05:00
Zack Cerza
974aa6ae36
Put helper scripts in /usr/bin
2013-09-19 16:06:40 -05:00
Zack Cerza
9ae29fa3bd
Port to py.test
2013-09-19 15:55:38 -05:00
Zack Cerza
40907535fc
Add test for teuthology.suite.build_email_body()
2013-09-19 15:36:33 -05:00
Zack Cerza
1685de6741
Fix typo
2013-09-18 22:57:20 -05:00
Zack Cerza
d83912e0bf
If duration is missing from summary.yaml, use 0
2013-09-18 14:08:23 -05:00
Zack Cerza
aaa3cf9baa
Fix logs URL on Sentry pages.
2013-09-18 10:30:26 -05:00
Zack Cerza
bbda7522c6
Make sed expressions safe to run multiple times
...
Also, make them ignore commented lines.
2013-09-17 18:04:04 -05:00
Zack Cerza
61ddeb6a03
Revert "suite: don't schedule follow-on summary job for an empty run"
...
This reverts commit a2b7c72896
.
2013-09-17 13:47:42 -05:00
Sage Weil
4520c5f6f5
suite: do not calculate product on an empty list (take 2)
...
The original attempt to fix this with dda7954090
failed because I screwed up the indentation for the out.append(...) line.
Signed-off-by: Sage Weil <sage@inktank.com>
2013-09-16 20:22:09 -07:00
Zack Cerza
e65d6e2a00
Revert "suite: do not calculate product on an empty list"
...
This reverts commit dda7954090
.
This commit was causing the number of jobs scheduled per suite to be
multiplied by anywhere from 2 to 7 or more.
2013-09-16 18:33:21 -05:00
SandonV
a8e77738af
Merge pull request #94 from ceph/wip-fix-sudoers
...
Use teuthology-specific backup for /etc/sudoers
2013-09-16 13:49:39 -07:00
Zack Cerza
8b63396ef6
Use teuthology-specific backup for /etc/sudoers
2013-09-16 15:25:16 -05:00
Alfredo Deza
5ca6bc3974
Merge pull request #93 from ceph/wip-runfix
...
Make run_job merge job_config['config'] if needed
2013-09-16 11:50:39 -07:00
Zack Cerza
4d2e3c2736
Make run_job merge job_config['config'] if needed
2013-09-16 13:14:52 -05:00
Zack Cerza
fad71073e2
Be less picky about trailing slashes.
2013-09-16 12:35:30 -05:00
Alfredo Deza
568eccf86e
Merge pull request #91 from ceph/wip-suite
...
suite: do not calculate product on an empty list
2013-09-13 08:41:35 -07:00
Sage Weil
a2b7c72896
suite: don't schedule follow-on summary job for an empty run
...
Signed-off-by: Sage Weil <sage@inktank.com>
2013-09-13 08:39:30 -07:00
Sage Weil
5a083894e0
suite: be verbose about how many jobs we generate
...
Signed-off-by: Sage Weil <sage@inktank.com>
2013-09-13 08:39:13 -07:00
Sage Weil
dda7954090
suite: do not calculate product on an empty list
...
This fixes a bug where a directory with just % generates a
bogus job item with no actual content. (e.g.,
$ find basic
basic
basic/%
$ teuthology-suite --dry-run --base . --collections basic --name foo
INFO:teuthology.suite:Collection basic in ./basic
INFO:teuthology.suite:configs [('basic/{}', [])]
...which then blows up because the job yaml is empty. With
the fix, there are no generated jobs:
$ teuthology-suite --dry-run --base . --collections basic --name foo
INFO:teuthology.suite:Collection basic in ./basic
INFO:teuthology.suite:configs []
(The configs print was temporarily added for debugging
purposes.)
Signed-off-by: Sage Weil <sage@inktank.com>
2013-09-13 08:22:12 -07:00
Zack Cerza
42c2b704b6
Merge pull request #90 from ceph/sentry
...
Fix get_http_log_path(), update callers, add tests
2013-09-12 15:56:06 -07:00
Zack Cerza
31f0f7ad7e
Fix get_http_log_path(), update callers, add tests
2013-09-12 17:28:50 -05:00
tamil
9de651a945
Merge branch 'master' of github.com:ceph/teuthology
2013-09-12 15:07:32 -07:00
tamil
eb4c575f54
made help more readable
...
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-09-12 15:03:10 -07:00
Zack Cerza
2db2ba781a
Fix TypeError
...
(cherry picked from commit c4591a16e1781f8da3502b38e3dc72f629478312)
2013-09-12 16:42:59 -05:00
Zack Cerza
e83b5defe8
Use check_output() and log.exception()
...
This should help us figure out why our checkouts keep getting deleted.
2013-09-12 11:14:08 -05:00
tamil
40d6c60f13
feature # 5942. Added examples to teuthology binaries help page
...
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-09-11 17:13:22 -07:00
Alfredo Deza
06be66b33f
Merge pull request #87 from ceph/sentry
...
Add logs URL to sentry reports
2013-09-11 14:06:24 -07:00