Commit Graph

2800 Commits

Author SHA1 Message Date
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
Zack Cerza
a6ce70d052 Merge pull request #334 from ceph/wip-9519-wusui
Handle list-json downburst failure.
2014-09-19 11:19:27 -06:00
Zack Cerza
dc83719203 Refuse to schedule jobs with 'multi' machine_type
That's not a real machine_type - it's a beanstalkd tube that is used
when a machine_type like 'plana,mira,burnupi' is used.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-19 10:12:59 -06:00
Zack Cerza
98f2e5c8d6 Raise ConnectionLostError when the socket dies
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-19 09:42:36 -06:00
Warren Usui
e37afbb65b Handle list-json downburst failure.
Use check_output instead of Popen and communicate()
Fixes: #9519
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-09-18 16:52:31 -07:00
Zack Cerza
3b241620d3 Improve os-release parsing
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-18 13:43:22 -06:00
Zack Cerza
d6515e2c12 Rewrite teuthology-updatekeys
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-18 12:45:51 -06:00
Zack Cerza
b3bb87cd18 Skip hostname test
Due to the workaround put in place recently

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-17 15:48:56 -06:00
Zack Cerza
12ef43b8d0 Re-implement Distribution as OS
It now uses /etc/os-release instead of lsb_release, like the cool kids
are doing.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-17 15:48:56 -06:00
Zack Cerza
deb5dca8db Merge pull request #328 from ceph/wip-8700-wusui
Use docopts to parse daemon-helper
2014-09-17 10:46:23 -06:00
Zack Cerza
c736a52123 Merge pull request #333 from ceph/wip-9495-wusui
Run chef before operations that need it.
2014-09-17 10:41:56 -06:00
Zack Cerza
d277641333 Merge pull request #331 from ceph/wip-transport-none
orchestra: fix ConnectionLostError path in wait()
2014-09-17 10:31:04 -06:00
Zack Cerza
8d458e1b2f Add a workaround for Remote.hostname
Since 'hostname --fqdn' isn't working reliably

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-17 10:23:08 -06:00
Warren Usui
329f450ec2 Run chef before operations that need it.
Chef, if it is needed, should be run before kernel tasks
and before all other user defined tasks.  It should not be
run by default.

Fixes: 9495
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-09-16 20:23:42 -07:00
Warren Usui
02a7f1ff9f Fix daemon-helper argument parsing.
Fixes: 8700
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-09-16 15:07:35 -07:00
Zack Cerza
378702aae4 Merge pull request #332 from ceph/wip-yaml-path
teuthology-suite: fix handling of extra YAML files
2014-09-16 11:58:51 -06:00
John Spray
a227b5bafe teuthology-suite: fix handling of extra YAML files
Previously these had to be absolute paths, or relative
paths had to be present in the pwd and in ceph-qa-suite.

With this change you can now pass a relative path
like 'debug/mds_client.yaml' to reference a debug
fragment from ceph-qa-suite.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-16 17:57:44 +01:00
John Spray
24699f92c2 orchestra: fix ConnectionLostError path in wait()
Sometimes it would generate AttributeError instead
when it tried to call is_active() on None.

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-16 15:09:32 +01:00
Zack Cerza
5064c9d756 Merge pull request #326 from ceph/wip-9318-wusui
Avoid running chef automatically.
2014-09-15 10:57:59 -06:00
Zack Cerza
6f5296d40c Merge pull request #297 from ceph/wip-8712-wusui
Check os-type and os-version for vps
2014-09-15 10:57:25 -06:00