Commit Graph

1459 Commits

Author SHA1 Message Date
Zack Cerza
25defd40cc Indent wrapped exceptions. 2013-08-28 11:12:10 -05:00
Zack Cerza
6afb238aba Time is an integer, in seconds. 2013-08-27 17:26:46 -05:00
Zack Cerza
dfdac24f27 Make email formatting way, way nicer. 2013-08-27 17:22:27 -05:00
Zack Cerza
eb585d19a7 Move job listing logic to get_jobs() 2013-08-27 14:51:27 -05:00
Zack Cerza
81709ed13d Avoid double slashes in sentry event URL 2013-08-26 18:12:20 -05:00
Zack Cerza
a1a261a886 Add tags! Task name and owner to start. 2013-08-26 17:38:23 -05:00
Zack Cerza
0503803111 Add sentry events to suite email. 2013-08-26 17:21:48 -05:00
Zack Cerza
489c1660f2 Also leave a list of sentry events in the summary 2013-08-26 17:11:51 -05:00
Zack Cerza
4007173278 Add URL to Sentry event to traceback output. 2013-08-26 16:33:04 -05:00
Zack Cerza
6f00939053 Use os.path.join, not urlparse.urljoin 2013-08-26 16:17:31 -05:00
Zack Cerza
300374bb07 For failures, add http links to log directories. 2013-08-26 16:17:31 -05:00
Zack Cerza
fedc91c07f Add a catch-all __getattr__(); add comments 2013-08-26 16:17:31 -05:00
Zack Cerza
12cb686070 Rewrite email-generating code. 2013-08-26 16:17:31 -05:00
Zack Cerza
6c486ab067 Tweak logging 2013-08-26 16:17:31 -05:00
Zack Cerza
7930f661a3 Update call to get_sentry_client() 2013-08-23 11:40:44 -05:00
Zack Cerza
609086366d Use teuthology.config 2013-08-23 11:40:22 -05:00
Zack Cerza
d8d2ef931c Add teuthology.config, the start of a better system 2013-08-23 11:39:02 -05:00
Zack Cerza
eafd591ab1 Move git stuff to fetch_teuthology_branch() 2013-08-23 10:08:01 -05:00
Zack Cerza
307284c2ed Rewrite branch fetching. 2013-08-23 09:59:48 -05:00
Sage Weil
22fc733770 queue: fetch origin, not branch
Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-22 22:20:26 -07:00
Sage Weil
f8f4c2d0e4 suite: only skip on non-vps if os-type is actually defined
If it's not defined, as it is (not) with most of the nightlies,
proceed!

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-22 22:18:55 -07:00
Sage Weil
c39ec60d48 queue: only bootstrap new checkouts
Until we figure out why bootstrap is getting stuck like this:

 9851 pts/7    S      0:03 /home/teuthworker/teuthology-master/virtualenv/bin/python ./teuthology-master/virtualenv/bin/teuthology-worker -v --archive-dir /var/lib/teuthworker/archive --tube plana --log-dir /var/lib/teuthworker/archive/worker_logs
 2075 pts/7    Z      0:00  \_ [git] <defunct>
 2112 pts/7    Z      0:00  \_ [git] <defunct>
 2138 pts/7    Z      0:00  \_ [bootstrap] <defunct>
 9852 pts/7    S      0:03 /home/teuthworker/teuthology-master/virtualenv/bin/python ./teuthology-master/virtualenv/bin/teuthology-worker -v --archive-dir /var/lib/teuthworker/archive --tube plana --log-dir /var/lib/teuthworker/archive/worker_logs
 2153 pts/7    Z      0:00  \_ [git] <defunct>
 2177 pts/7    Z      0:00  \_ [git] <defunct>
 2264 pts/7    Z      0:00  \_ [bootstrap] <defunct>
 9853 pts/7    S      0:03 /home/teuthworker/teuthology-master/virtualenv/bin/python ./teuthology-master/virtualenv/bin/teuthology-worker -v --archive-dir /var/lib/teuthworker/archive --tube plana --log-dir /var/lib/teuthworker/archive/worker_logs
 2141 pts/7    Z      0:00  \_ [git] <defunct>
 2276 pts/7    Z      0:00  \_ [git] <defunct>
 2305 pts/7    Z      0:00  \_ [bootstrap] <defunct>
 9854 pts/7    S      0:03 /home/teuthworker/teuthology-master/virtualenv/bin/python ./teuthology-master/virtualenv/bin/teuthology-worker -v --archive-dir /var/lib/teuthworker/archive --tube plana --log-dir /var/lib/teuthworker/archive/worker_logs
 7448 pts/7    Z      0:00  \_ [git] <defunct>
 7449 pts/7    Z      0:00  \_ [git] <defunct>
 7450 pts/7    Z      0:00  \_ [bootstrap] <defunct>
 7452 pts/7    Z      0:00  \_ [teuthology-resu] <defunct>
 9855 pts/7    S      0:01 /home/teuthworker/teuthology-master/virtualenv/bin/python ./teuthology-master/virtualenv/bin/teuthology-worker -v --archive-dir /var/lib/teuthworker/archive --tube plana --log-dir /var/lib/teuthworker/archive/worker_logs
 7712 pts/7    Z      0:00  \_ [git] <defunct>
 7713 pts/7    Z      0:00  \_ [git] <defunct>
 7714 pts/7    Z      0:00  \_ [bootstrap] <defunct>
 7716 pts/7    Z      0:00  \_ [teuthology-resu] <defunct>
 9856 pts/7    S      0:03 /home/teuthworker/teuthology-master/virtualenv/bin/python ./teuthology-master/virtualenv/bin/teuthology-worker -v --archive-dir /var/lib/teuthworker/archive --tube plana --log-dir /var/lib/teuthworker/archive/worker_logs
 2316 pts/7    Z      0:00  \_ [bootstrap] <defunct>
 9857 pts/7    S      0:03 /home/teuthworker/teuthology-master/virtualenv/bin/python ./teuthology-master/virtualenv/bin/teuthology-worker -v --archive-dir /var/lib/teuthworker/archive --tube plana --log-dir /var/lib/teuthworker/archive/worker_logs
 2340 pts/7    Z      0:00  \_ [bootstrap] <defunct>
 9858 pts/7    S      0:01 /home/teuthworker/teuthology-master/virtualenv/bin/python ./teuthology-master/virtualenv/bin/teuthology-worker -v --archive-dir /var/lib/teuthworker/archive --tube plana --log-dir /var/lib/teuthworker/archive/worker_logs
23188 pts/7    Z      0:00  \_ [bootstrap] <defunct>
 9859 pts/7    S      0:03 /home/teuthworker/teuthology-master/virtualenv/bin/python ./teuthology-master/virtualenv/bin/teuthology-worker -v --archive-dir /var/lib/teuthworker/archive --tube plana --log-dir /var/lib/teuthworker/archive/worker_logs

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-22 22:14:41 -07:00
Sandon Van Ness
dad8d1aa3a Do not run multiple tests (for distros) on baremetal.
Teuthology doesnt care about os_type for baremetal (ATM). This
change makes it so you can run tests that have been switched over
to run on multiple distros (on vms) on baremetal as well as all
non-ubuntu tests will be skiped (to avoid running the same test
multiple times on baremetal.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2013-08-22 19:36:46 -07:00
Sandon Van Ness
2ea841cdd3 Allow exclude_arch and exclude_os_type in qa-suite yamls
Adding the option:

exclude_arch:

or

exclude_os_type:

in the ceph-qa-suite yaml allows tests to be skipped for certain
types of hardware or distros.

Example:

exclude_arch: armv7l

This will make said test not run on arm machines.

exclude_os_type: rhel

Would make multi-distro tests skip a specific test on RHEL.
2013-08-22 19:36:37 -07:00
Zack Cerza
98160c5c99 Fix SyntaxError 2013-08-22 18:31:18 -05:00
Sage Weil
f93b26b983 Merge pull request #47 from ceph/sentry
Make the worker obtain the correct teuthology branch
2013-08-22 16:09:14 -07:00
Zack Cerza
a9df6c2a6a Worker shouldn't attempt to rebuild an existing virtualenv 2013-08-22 18:02:22 -05:00
Zack Cerza
c773060914 Use the ceph.com git mirror. 2013-08-22 15:51:39 -05:00
Zack Cerza
73de8b7734 Use fetch and reset --hard, not checkout and pull 2013-08-22 15:30:31 -05:00
Zack Cerza
c6293a4ee4 Make the worker obtain the correct teuthology branch 2013-08-22 14:47:18 -05:00
Alfredo Deza
10b1567811 Merge pull request #45 from ceph/wip-6084
Fix upgrading edge-ish case
2013-08-22 08:24:52 -07:00
Zack Cerza
0e872533f2 Fix upgrading edge-ish case 2013-08-22 09:49:53 -05:00
Sage Weil
de270b080b install: use get() in _get_config_value_for_remote
Fixes: #6080
Signed-off-by: Sage Weil <sage@inktank.com>
Tested-by: Tamil Muthamizhan <tamil.muthamizhan@inktank.com>
2013-08-21 16:45:46 -07:00
Alfredo Deza
ab16813ea9 Merge pull request #44 from ceph/sentry
Add initial support for sentry
2013-08-21 14:28:37 -07:00
Joe Buck
520a9384c5 radosgw-admin: use check_status for task success
Alter the code to use the 'check_status=True'
option in rgwadmin() rather than following the
call with 'assert not err'. Should make the
tests a bit more clear and result in a more
useful error (throw the call stack rather than
just 'assert new err failed').

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-08-21 12:38:53 -07:00
Joe Buck
ff2a209f8d radosgw-admin: adding radosgw-admin tests
Adding tests for syncing buckets between
RGWs. Fulfills ticket #5605.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-08-21 12:38:44 -07:00
Zack Cerza
df8ae0415f Make client a global variable 2013-08-21 10:27:51 -05:00
Zack Cerza
0af6a8a6f2 Beginnings of support for Sentry. 2013-08-21 10:07:12 -05:00
Joe Buck
549bac3ede radosgw-admin: use dynamic ports for testing
The rgw.py task was extended to  dynamically
assign port numbers to radosgateways.
This patch extends the radosgw-admin task
to use those ports rather than making out-dated
assumptions of port numbering.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
2013-08-20 21:21:17 -07:00
tmuthamizhan
98896ced4e Merge pull request #43 from ceph/no-hardcoding
Default to using the ubuntu user, while still moving away from hardcoding it
2013-08-20 15:14:43 -07:00
Zack Cerza
71a77f2908 Add get_test_user(), because hardcoding is bad 2013-08-20 16:25:25 -05:00
Alfredo Deza
0a8a1c98b0 Merge pull request #41 from ceph/wip-3791
Various usability and documentation fixes
2013-08-19 14:10:18 -07:00
Zack Cerza
22abe02911 Whoops! Make 'MacOS X' a header again. 2013-08-19 13:51:07 -05:00
Zack Cerza
3f42335a55 And, more formatting tweaks. 2013-08-19 13:49:42 -05:00
Zack Cerza
adc3f62ea5 Mo' betta consistency. 2013-08-19 13:46:31 -05:00
Zack Cerza
59e01a41de Don't necessarily need to manually link libvirt. Also, remove $'s. 2013-08-19 13:35:52 -05:00
Zack Cerza
6f9c759adf Remove false note about default value. 2013-08-19 10:01:48 -05:00
Zack Cerza
39879eca9d Slightly tweak path. 2013-08-19 10:01:05 -05:00
Zack Cerza
5bd7f620b8 Add comment about portability to get_testdir_base() 2013-08-19 09:59:54 -05:00
Zack Cerza
7a2cca1d3c Update base_test_dir default to reflect reality 2013-08-19 09:49:45 -05:00