Commit Graph

2769 Commits

Author SHA1 Message Date
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
Zack Cerza
3d564e05c1 Make push_inventory() a regular function
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-12 10:01:05 -06:00
Warren Usui
48244fc13a Avoid running chef automatically
teuthology --lock formerly automatically ran chef on startup of
virtual machines. This covered up a bug where ceph-deploy would
not install properly. These changes remove the automatic running
of chef, and fixed some related issues when setting up keys on
virtual machines.

Fixes 9318:
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-09-11 17:34:54 -07:00
Zack Cerza
e0594ee69a Use teuthology.task.internal.push_inventory
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-11 15:12:52 -06:00
Zack Cerza
7806c6ae21 Add push_inventory() subtask
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-11 15:12:52 -06:00
Zack Cerza
33f8f08ef1 Add lock.update_inventory()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-11 15:12:52 -06:00
Zack Cerza
4351173d08 Add Remote.inventory_info
A property that returns a dict of attributes in the format that the
paddles lock server likes.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-11 15:12:52 -06:00
Zack Cerza
58cbb236e4 Add Remote.host_key
Turns out we can easily grab the ssh key from paramiko once a connection
is established.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-11 15:12:52 -06:00
Zack Cerza
83e93422a8 Set Remote.hostname by asking the host itself
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-11 15:12:52 -06:00
Zack Cerza
d0630f7651 Add Remote.arch
Returns the result of 'uname -p'

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-11 15:12:52 -06:00
Zack Cerza
9593534155 Add caching lsb_release parser
In far too many places do we remotely exec lsb_release in some form,
then parse the output. In shifting to a more stable interface between
teuthology and its tasks, this seemed important to me.

Remote objects now have a 'distro' property that, when first accessed,
calls 'lsb_release -a' remotely and parses the results.

I've included tests and documentation.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-11 15:12:51 -06:00
Warren Usui
50e13e0403 Check os-type and os-version for vps
Fixes: 8712
Signed-off-by: Warren Usui warren.usui@inktank.com
2014-09-10 11:00:09 -07:00
Alfredo Deza
c5664033ca Merge pull request #327 from dachary/wip-exec-documentation
documentation: updates to the exec tasks
2014-09-10 08:44:58 -04:00
Loic Dachary
90736bbe6c documentation: updates to the exec tasks
* Quoting is important
* Behavior on error

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-09-10 12:19:50 +02:00
Zack Cerza
dc6020b213 In Remote.run(), attempt to reconnect if necessary
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-09 17:56:44 -06:00
Zack Cerza
3df89f18b3 Move more exceptions
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-09 17:56:44 -06:00
Sage Weil
af6bd0b194 valgrind: suppress tcmalloc crap for centos 6.5
Fixes: #9336
Signed-off-by: Sage Weil <sage@redhat.com>
2014-09-09 16:28:12 -07:00
Zack Cerza
01d35c1b64 Remove unnecessary filter in do_update_keys()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-08 14:53:07 -06:00
Zack Cerza
23add3a09f Don't explode if get_status fails
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-09-08 13:15:04 -06:00
Zack Cerza
590121c3ef Merge pull request #325 from ceph/wip-valgrind
valgrind: use --time-stamp=yes
2014-09-02 08:45:01 -06:00
Sage Weil
cb06df6719 valgrind: adjust suppressions for wheezy
Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-30 09:22:42 -07:00
Sage Weil
2d60c2b1c3 valgrind: use --time-stamp=yes
This doesn't help on the precise version, but maybe it will on
future versions... because if so, it would be really helpful
it matching valgrind errors to daemon logs!

In any case, though, I verified it is at worse harmless.

Signed-off-by: Sage Weil <sage@redhat.com>
2014-08-29 18:58:16 -07:00
Sandon Van Ness
71d989763f Update downburst docs.
Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-08-29 10:37:30 -07:00
Zack Cerza
9497728da1 Merge pull request #324 from ceph/wip-hadoop-nuke
nuke: kill hadoop processes
2014-08-29 11:19:09 -06:00
John Spray
6eea314df8 nuke: kill hadoop processes
Signed-off-by: John Spray <john.spray@redhat.com>
2014-08-29 17:40:48 +01:00
Zack Cerza
b9e9a6cab0 Drop --allow-hosts None
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-28 19:19:07 -06:00
Zack Cerza
7e3c6b0735 Use setuptools, not distribute
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-28 19:13:37 -06:00
Sage Weil
ed536a8f7d Merge pull request #323 from ceph/pypi
Prepare for PyPI

Reviewed-by: Sage Weil <sage@redhat.com>
2014-08-28 15:53:19 -07:00
Zack Cerza
f9d1917b0a Add install_requires and tests_require
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-28 16:46:52 -06:00
Zack Cerza
b52e675447 Add MANIFEST.in
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-28 16:46:48 -06:00
Zack Cerza
e991a6d76c Add LICENSE
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-08-28 16:46:46 -06:00
Zack Cerza
66c8af3cde Merge pull request #308 from ceph/wip-6146-wusui
Add ability to update with ceph-deploy
2014-08-28 08:40:59 -06:00