Commit Graph

1163 Commits

Author SHA1 Message Date
Sage Weil
70de7d52d3 Revert "Do not spawn a parallel task if dictionary entry does not exist."
This reverts commit dadc9f7d0b6d9c13ccbc4edeb9f7875fc0ae0cac.
2014-03-06 16:56:14 -08:00
Zack Cerza
c3c0b080f6 Add a 6h timeout to workunits
The timeout is configurable, but defaults to six hours. It's implemented
by using the 'timeout' command on the remote host.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-05 11:17:13 -06:00
Loic Dachary
7889acbf65 ceph-manager: fix ec_pool parameters
* the crush ruleset and the pool create parameters must be identicals
  k=2 m= 1
* the --property argument is invalid
* the failure domain is ignored on pool create

Signed-off-by: Loic Dachary <loic@dachary.org>
2014-03-02 00:41:21 +01:00
Sandon Van Ness
fd507ed35a Allow setting kdb to fail.
Some kernels (primarily Debian distro kernels) do not support
setting kdb. Rather than having the entire test fail.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-02-28 14:16:32 -08:00
John Spray
8dfcfa4a7e mds_thrash: Fix a potential getitem on None
get_mds_status returns None for things it can't see,
so have to check for Noneness on all its outputs.

Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-27 18:39:45 +00:00
John Spray
22825c25a5 mds_thrash: Refactor gevent usage + get traceback
This simplifies the code to make MdsTrash be a greenlet
(as it logically is) rather than encapsulating one that
gets started in __init__ (spawning threads in constructors
is evil).

With this done, do_thrash is called from _run inside an
exception handler that will give us full tracebacks
if something bad happens.

Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-27 18:39:45 +00:00
John Spray
f12426c3ec mds_thrash: PEP8-ize whitespace
...so that I can edit the code in a python IDE without
it lighting up like a christmas tree!

Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-27 14:25:13 +00:00
John Spray
7cc93751e7 task: Add mds_creation_failure
This is test code to accompany CephFS fix #7485.

Also fix DaemonState.wait_for_exit to clear up its 'proc'
attribute even if it fails, so that subsequent calls to 'restart'
happen properly.

Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-26 13:03:15 +00:00
Alfredo Deza
084c6aed3f Merge pull request #203 from ceph/wip-devstack
Add devstack task
2014-02-21 13:20:18 -05:00
Zack Cerza
ca600a2e04 Add unit test for task.devstack.parse_os_table()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-21 11:23:31 -06:00
Zack Cerza
05842e9f84 Add explanations to asserts
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-21 09:57:29 -06:00
Warren Usui
dadc9f7d0b Do not spawn a parallel task if dictionary entry does not exist.
Fixes: 7397
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-02-20 20:18:28 -08:00
Zack Cerza
b92578e507 Remove unused import
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:51:36 -06:00
Zack Cerza
b638dc410c Don't run the exercise subtask by default
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:09 -06:00
Zack Cerza
741b4de337 Add a retry to the rbd volume verification
This was running into an auth problem intermittently that Josh Durgin
said is likely not a real problem. Still, try the original call first
and fall back to a different one if it fails.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:09 -06:00
Zack Cerza
830748a64a Move external docs URLs
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:09 -06:00
Zack Cerza
f7b1d92267 Wait 30s for Keystone to start
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:09 -06:00
Zack Cerza
11b60fef81 Change usages of StringIO.read() to getvalue()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:09 -06:00
Zack Cerza
fdaaee57da Source openrc before creating volume
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:09 -06:00
Zack Cerza
f53028f9d5 Add a new subtask: smoke()
Currently it creates a volume, then verifies that the volume exists in
Ceph - as opposed to some other place. This is intended to verify that
we've configured DevStack at least somewhat correctly.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
7c5712740e Forget about saving the exercise.sh log, for now
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
85e63dd904 Allow using different devstack branches
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
5c12d36001 Add devstack.exercise subtask
The subtask runs devstack/exercise.sh

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
61e9ac4db5 Move reboot() to teuthology.misc
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
1228ac888e Add documentation to reboot()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
3dcde65c23 Add note about memory requirements
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
27bad445a1 Move restart_apache() to after the reboot
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:08 -06:00
Zack Cerza
e73df9c853 Make rejoin-stack.sh start screen in detached mode
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
a4bf1f8f85 Actually call Remote.reconnect()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
a1ed3d491f Add logging calls to each helper function
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
fe0aedf76c Set apache ServerName, reboot, restart devstack
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
2289496952 Use new init parameters for Remote
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
69beebc935 get_file() returns a str, not a StringIO...
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:07 -06:00
Zack Cerza
375d7ddd46 Use ConfigParser.set() instead of update()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
a55c22aaf6 Work around a bug in ConfigParser
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
119b438fec Call seek(0) on StringIO objects before reading
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
b474d2827b Fix typoed virsh call
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
f500634896 Don't pass owner to copy_key()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
b33686f490 Use get_file() and sudo_write_file()
... instead of copy_file()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
cedd12831a Split out key generation
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
76588e9742 Add update_devstack_config_files()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
b40f5f74ab Add set_libvirt_secret() and split out other steps
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
c6b5c01a16 Split out devstack-ceph configuration
This is starting to get long, so create configure_devstack_and_ceph()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
b674048026 Copy ceph auth keys over to devstack node
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:06 -06:00
Zack Cerza
10e12c2d5c Add skeleton devstack task
Currently only installs devstack on one node, and creates some pools on
the ceph cluster.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-02-20 17:46:05 -06:00
Warren Usui
b4ce61cc3d Add back in print in ceph_manager that the last checkin accidentally removed 2014-02-20 14:51:23 -08:00
Warren Usui
30f8938ea3 Fix formatting and add docstrings to ceph_manager.py
Fixes: 6531
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-02-20 14:51:23 -08:00
Alfredo Deza
31c27e139f Merge pull request #186 from ceph/wip-7369
Fix #7369: "sed expression must be raw string"
2014-02-19 16:40:17 -05:00
Zack Cerza
a70e93fcab Merge pull request #199 from ceph/wip-6540-wusui
Add docstrings.  Fix formatting issues for rgw.py
2014-02-19 15:26:31 -06:00
Zack Cerza
cc3d013e96 Merge pull request #196 from ceph/wip-6541-wusui
Fix docstrings in radosgw-admin-rest.py
2014-02-19 15:26:14 -06:00