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
Zack Cerza
88a3c36b8e
Don't assume Ubuntu; also support MacOS X
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-07 10:49:40 -06:00
Zack Cerza
61177f9241
Drop libmysqlclient-dev
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-07 10:04:41 -06:00
Zack Cerza
78166c01a4
Use os.path.expanduser() instead of /home
...
... for locating downburst executable
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-06 14:43:09 -06:00
Zack Cerza
734580d546
Minor fix for vps-only locks
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-03 15:13:02 -06:00
Zack Cerza
e9b57e1f97
Merge pull request #339 from ceph/wip-9292-wusui
...
Cleaned up documentation.
2014-10-03 12:15:16 -06:00
Warren Usui
9a93bfc2ba
Cleaned up documentation.
...
Removed some Inktank references, mentioned the split of tasks (between
teuthology/task and chef-qa-suite/tasks), fixed some wording, removed
chef reference that no longer applies.
Did not update the teuthology-suite section at the end of this file
because further documentation changes are coming.
Fixes : #9292
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-10-02 19:17:59 -07:00
Zack Cerza
2810096cc9
Use arch in lock_machines()
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-01 17:15:10 -06:00
Zack Cerza
621a766371
Query arch in lock_many()
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-01 17:14:59 -06:00
Zack Cerza
addb3ef73d
Use uname -m instead of uname -p
...
Debian hosts were reporting as 'unknown'
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-01 16:55:55 -06:00
Zack Cerza
cd2860e16c
All BaseExceptions should hit failure codepath
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-10-01 14:58:07 -06:00
Zack Cerza
6608323766
Move VersionNotFoundError to exceptions module
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-30 13:36:36 -06:00
Zack Cerza
05a7944cf2
Move ScheduleFailError to exceptions module
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-30 13:35:13 -06:00
Zack Cerza
0ef1e12960
Use os_type and os_version in lock_machines()
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-30 10:41:29 -06:00
Zack Cerza
86e934ef25
Query os_type and os_version in lock_many()
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-30 10:41:29 -06:00
Zack Cerza
2e9b92a619
Remove default for --os-type
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-30 10:41:29 -06:00
Zack Cerza
a962779b15
Add OS.__repr__() and OS.to_dict()
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-30 10:41:29 -06:00
Zack Cerza
a5917b4be9
Move OS class to its own files
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-30 10:41:29 -06:00
Greg Farnum
56223ce98b
tasks/nfs: sync before unmounting or unexporting nfs clients/servers
...
We have some hope that this will resolve #8576 in the Ceph tracker.
Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2014-09-29 13:15:01 -07:00
Zack Cerza
16aa2f8dad
Bump requests version to >= 2.3.0
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-26 14:46:00 -06:00
Zack Cerza
7781d7f845
Allow mixing of bare-metal machine_types
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-26 12:59:01 -06:00
Zack Cerza
52bf1cf167
Merge pull request #335 from ceph/wip-kernel-downgrade
...
Fix RPM kernel downgrade.
2014-09-26 11:12:59 -06:00
Greg Farnum
a07f79a79d
nfs: more lsof output, on clients too
...
Signed-off-by: Greg Farnum <greg@inktank.com>
2014-09-25 14:44:20 -07:00
Zack Cerza
a5eed69d1a
Revert "Move default os_type to misc.get_distro()"
...
This reverts commit 3675a2e25c
.
2014-09-25 15:22:06 -06:00
Zack Cerza
febc087f44
Revert "Add os_type and os_version args to lock_many()"
...
This reverts commit f39b6958c4
.
2014-09-25 15:22:00 -06:00
Zack Cerza
14be8596de
Merge pull request #337 from ceph/wip-9597
...
lock.py: Log failing os-version if it doesn't validate
2014-09-25 15:02:10 -06:00
Dan Mick
5c83109fbb
lock.py: Log failing os-version if it doesn't validate
...
Fixes : #9597
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2014-09-25 13:56:45 -07:00
Zack Cerza
9e20f1454d
Add 'lsb_release -a' parsing back to remote.OS
...
It can now parse either that or /etc/os-release, and remote.Remote will
attempt the latter first.
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-25 09:46:07 -06:00
Zack Cerza
f39b6958c4
Add os_type and os_version args to lock_many()
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-25 09:46:07 -06:00
Zack Cerza
3675a2e25c
Move default os_type to misc.get_distro()
...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-25 09:46:07 -06:00
Zack Cerza
11a67f691e
Merge pull request #336 from ceph/wip-nfs
...
enable lsof when unmounting nfs clients
2014-09-24 15:24:33 -06:00
Greg Farnum
47cdd70b5e
enable lsof when unmounting nfs clients
...
Because the lsof interface is strange, use the verbose flag so we get
some output even if there is no use, and ignore errors because it will
return 1 if there's no filesystem use.
Signed-off-by: Greg Farnum <greg@inktank.com>
2014-09-24 14:13:05 -07:00
Sandon Van Ness
25d4a22b61
Fix RPM kernel downgrade.
...
Force even if an older version or existing.
Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-09-19 14:58:25 -07:00