Commit Graph

2851 Commits

Author SHA1 Message Date
Zack Cerza
ac62ea8cbe Fix typo
Signed-off-by: Zack Cerza <zack@cerza.org>
2014-11-04 10:16:05 -07:00
Zack Cerza
c246fd56a6 Drop default watchdog_interval to 120s
Signed-off-by: Zack Cerza <zack@cerza.org>
2014-11-03 16:41:49 -07:00
Zack Cerza
5e97574000 Explicitly pass json header
Signed-off-by: Zack Cerza <zack@cerza.org>
2014-11-03 13:42:35 -07:00
Zack Cerza
c86f73edb9 Allow omitting 'tasks' stanza in job definitions
Signed-off-by: Zack Cerza <zack@cerza.org>
2014-11-03 13:42:35 -07:00
Zack Cerza
a087c6c3b3 Abstract the lab domain (e.g. front.sepia.ceph.com)
This should make usage in other labs easier.

Signed-off-by: Zack Cerza <zack@cerza.org>
2014-11-03 13:42:35 -07:00
Zack Cerza
3e5762c006 If lock_server is not set, check_lock() no-ops
Signed-off-by: Zack Cerza <zack@cerza.org>
2014-11-03 13:42:34 -07:00
Sage Weil
5664326a5a ceph.conf: set mon pg warn max per osd = 10000
Signed-off-by: Sage Weil <sage@redhat.com>
2014-10-31 16:50:35 -07:00
Zack Cerza
e49762ae85 Add libmysqlclient-dev to ubuntu requirements
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-30 16:32:28 -06:00
Zack Cerza
e9e4fd9b3b Revert "Remove MySQL requirements"
This reverts commit c690513670.
2014-10-30 16:32:09 -06:00
Zack Cerza
c690513670 Remove MySQL requirements
These are only needed for teuthology-coverage, which requires a good
amount of extra setup (if it even works).

Signed-off-by: Zack Cerza <zack@cerza.org>
2014-10-29 14:43:20 -06:00
Dan Mick
f4291769b0 Fix for 9871 was wrong: original <= should always have been <
...but now it matters.  lock_list returns exactly the length needed,
and so the 'failure' case is strict less-than.

Suggested-by: Sandon VanNess <svanness@redhat.com>
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2014-10-28 16:46:33 -07:00
Zack Cerza
e13c152536 Merge pull request #348 from ceph/wip-9871
lock.py: update keys for any owned VMs, even if none mentioned on CLI
2014-10-28 13:26:14 -06:00
Dan Mick
fff9626f28 lock.py: update keys for any owned VMs, even if none mentioned on CLI
teuthology-lock to create new VMs followed by "--list-targets" was
returning the old hostkeys.  The code rightly avoids fetching keys
for all hosts; this change makes it update keys owned by the
current querying user.

Fixes: #9871
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2014-10-28 10:00:15 -07:00
Zack Cerza
18c0a9ec74 Merge pull request #349 from ceph/wip-9914
internal.py: report more-accurate info about locked machines
2014-10-28 10:48:18 -06:00
Zack Cerza
99e4470ac3 Update to reflect bootstrap.sh's Fedora support
Signed-off-by: Zack Cerza <zack@cerza.org>
2014-10-28 08:32:23 -06:00
Zack Cerza
0a140eb9c2 Merge pull request #350 from ceph/fedora
support Fedora when using bootstrap
2014-10-28 08:31:10 -06:00
Greg Farnum
eeadd4918f support Fedora when using bootstrap
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2014-10-27 18:08:43 -07:00
Dan Mick
40ed986233 internal.py: report more-accurate info about locked machines
Don't hide the fact that there are reserved machines that may
cause a scheduled lock request to have to wait.

Fixes: 9914
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2014-10-27 15:26:36 -07:00
Zack Cerza
6b10e203b1 Add INSTALL.rst to sources
Signed-off-by: Zack Cerza <zack@cerza.org>
2014-10-24 16:02:08 -06:00
Zack Cerza
53069a5f7f Add 'prep' step that copies docs into docs/source/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-24 16:02:08 -06:00
Zack Cerza
89acc6e855 Abstract source path
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-24 16:02:08 -06:00
Zack Cerza
0b1c75c396 Remove reference to static path
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-24 16:02:08 -06:00
Alfredo Deza
12982830d1 create a tox env for docs
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-10-24 16:02:08 -06:00
Alfredo Deza
5b5adae496 ignore build/ output from docs
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-10-24 16:02:08 -06:00
Alfredo Deza
4610ba431c create the Makefile for sphinx docs generation
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-10-24 16:02:08 -06:00
Alfredo Deza
dc04d4c946 create the source dir for sphinx
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-10-24 16:02:08 -06:00
Zack Cerza
3f389ec752 Add a changelog
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-24 16:02:08 -06:00
Zack Cerza
22728270c4 Remove old install instructions
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-24 16:01:17 -06:00
Zack Cerza
3316851798 Add "Choosing machines for a job" section
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-24 16:01:17 -06:00
Zack Cerza
0f9026dfd8 Add "Provided utilities" section
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-24 16:01:17 -06:00
Zack Cerza
8d2a5be8e0 Rewrite description and overview
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-24 16:01:17 -06:00
Zack Cerza
a6ce62bad1 Add separate install documentation
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-24 16:01:17 -06:00
Zack Cerza
5ed5a8721b Require six >= 1.5.0
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-24 16:00:34 -06:00
Zack Cerza
126b40732a Merge pull request #344 from dachary/wip-9842-deep-merge
display informative error message if schedule fails to deep_merge
2014-10-21 09:45:34 -06:00
Loic Dachary
d0c2b712f9 display informative error message if schedule fails to deep_merge
Display the two yaml structures that fail to merge in case of an
exception. That's a useful hint to find out what's wrong.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-10-21 08:34:01 -07:00
John Spray
4f2957c42d Merge pull request #342 from ceph/wip-5876
task/nfs: stop nfs server after test finishes

Reviewed-by: John Spray <john.spray@redhat.com>
2014-10-20 19:45:14 +01:00
Yan, Zheng
049c6a99d9 task/nfs: stop nfs server after test finishes more thoroughly
In addition to "exportfs -au", we take a sledgehammer to it
by shutting down all the worker threads and flushing out
the client export table.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
Signed-off-by: Greg Farnum <Greg@inktank.com>
2014-10-20 10:55:25 -07:00
Zack Cerza
51ba2ff551 Better error handling in list_locks()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-20 09:58:25 -06:00
Zack Cerza
9796986236 Fix linter errors
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-20 08:33:42 -06:00
Zack Cerza
909f2f2c09 Merge pull request #343 from ceph/wip-dmick
Fixes for #9811 and #9812
2014-10-20 08:31:24 -06:00
Dan Mick
a8e00f2096 task.ssh_keys(): manage authorized_keys, not keys2
See the issue for a description, but authorized_keys2 is dead
on RHEL7 and dying elsewhere.

Fixes: #9812
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2014-10-17 23:27:30 -07:00
Dan Mick
d3ed4f0756 lock.lock_many(): use passed os_{type,version}, not ctx
Affects teuthology --lock with os_{type,version} in the yaml.

Fixes: #9811
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2014-10-17 22:06:51 -07:00
Zack Cerza
80e0a969ee Instead of setting status='pass', set success=True
Keeping this old behavior will mean that any tasks that are not updated
to use set_status() and still simply set success=False will still be
able to properly report their failures.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-16 13:57:29 -06:00
Zack Cerza
04f8fd85bb Use new functions provided by job_status
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-16 13:51:44 -06:00
Zack Cerza
a75a8ea57f Add new job_status module
Provides methods for getting and setting job status. This is necessary
because we used to just use a boolean called 'success'. In order to stop
reporting infrastructure errors as failures, we need more than just a
boolean.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-16 13:51:44 -06:00
Zack Cerza
db9c92965d Remove setting of unused 's3_branch' value
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-15 12:57:04 -06:00
Zack Cerza
6a5ba7fe6c Stop obsuring stderr when installing with yum
Over time, the code that actually used the buffer we stored stderr in
was removed, leaving us holding error messages and never displaying
them.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-14 09:47:56 -06:00
Zack Cerza
58c22bbb00 Properly quote args that are strings
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-13 16:39:13 -06:00
Zack Cerza
83fce375f1 On SSH connection loss, mark jobs as 'dead'
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-13 16:39:13 -06:00
Zack Cerza
4d388a40e5 Remove stray exit statement
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-07 10:52:34 -06:00