Commit Graph

1194 Commits

Author SHA1 Message Date
Samuel Just
2b90be2b2b ceph_manager: default to 16 initial pgs per pool
1 is really too few for anything to happen at a
reasonable rate.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-03-17 16:11:39 -07:00
Samuel Just
847462b4b1 ceph_manager::wait_for_clean: reset timeout if we make progress
Fixes: #7748
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-03-17 16:11:36 -07:00
Josh Durgin
a4261af71b Merge pull request #227 from ceph/wip-7749
Pass '--object-sync-timeout 30' to radosgw-agent

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-03-17 12:10:27 -07:00
Zack Cerza
ef2edcd3a9 Pass '--object-sync-timeout 30' to radosgw-agent
http://tracker.ceph.com/issues/7749

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-17 14:00:08 -05:00
Alfredo Deza
57c8fd9687 prevent undefined values in finally block
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
2014-03-17 10:49:31 -04:00
Sandon Van Ness
d3c294d206 Make distro kernels work on Trusty.
Some grub changes and package names caused them to fail on trusty.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-03-17 09:42:11 -05:00
Sage Weil
d72335fe9a Merge remote-tracking branch 'gh/firefly' 2014-03-13 13:15:04 -07:00
Sandon Van Ness
b455846d9f Handle newer btrfstools.
Newer btfs userland tools needs a -f like xfs instead of a prompt
for yes. Trusty needs this change.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-03-11 18:54:02 -07:00
wusui
e5b65b4578 Merge pull request #222 from ceph/wip-trusty
Handle newer btrfstools.
2014-03-11 18:48:13 -07:00
Sandon Van Ness
a5a94ae310 Handle newer btrfstools.
Newer btfs userland tools needs a -f like xfs instead of a prompt
for yes. Trusty needs this change.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
2014-03-11 18:15:12 -07:00
Samuel Just
1c611330cd radosbench: cleanup will probably take longer than writing the objects
With thrashing, cleanup will require recovering the degraded objects
first, while the initial write out doesn't since they they are new
objects.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-03-11 13:55:32 -07:00
Yuri Weinstein
ed6a200104 Add print task.
Made a task that simply prints the output that is given to it as
an argument. Can be used like any other task (under sequential,
etc...)

IE:

tasks:
- print: "String"
- chef: null
- print: "Another String"

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
Signed-off-by: Yuri Weinstein <yuri.weinstein@inktank.com>
2014-03-10 16:45:03 -07:00
Josh Durgin
7cb750c4cc radosgw-admin: test data sync with more than max-entries objects
For now hard code the max-entries for the radosgw-agent, since
this is the only test that is affected by it.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-03-10 00:29:50 -07:00
Josh Durgin
dcad92eb85 radosgw-admin: check that data deletions work as well
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-03-10 00:29:50 -07:00
Josh Durgin
1143539f33 radosgw-admin: fix typo in data sync test
re-indent and set k.key instead of k.Key

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-03-10 00:29:50 -07:00
Josh Durgin
a74cf33089 radosgw-admin: ignore 301 test against the same src and dest regions
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-03-10 00:29:50 -07:00
Josh Durgin
55fad94ab1 rgw: create clients in all zones when regions are used
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-03-10 00:29:50 -07:00
Josh Durgin
8ba02bfccf radosgw-agent: add logging to radosgw-admin task tests
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-03-10 00:29:50 -07:00
Josh Durgin
871fe02027 rgw: set placement targets for zones
This lets zones use different pools for actual object data.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-03-10 00:29:50 -07:00
Josh Durgin
93f5d607dd radosgw-admin: don't compare pools for different zones
The actual data locations will be different if they are in the same
cluster.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-03-10 00:29:50 -07:00
Christophe Courtaut
4d3c1a1997 Adds radosgw-agent small file sync test
Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>
2014-03-10 00:29:50 -07:00
Sage Weil
a4dfbc88f3 workunit: change timeout 1h -> 3h
Signed-off-by: Sage Weil <sage@inktank.com>
2014-03-09 10:29:37 -07:00
Zack Cerza
eb667673e4 Pass timeout to _spawn_on_all_clients()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-08 14:16:07 -06:00
Zack Cerza
4e01884e14 Log correct action in CephManager.remove_pool()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-08 08:18:53 -06:00
Zack Cerza
72c63f13fa Log timeout value
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-08 08:01:00 -06:00
Zack Cerza
204b3ac710 Change default workunit timeout to 1h
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-07 15:14:50 -06:00
Zack Cerza
1778d35847 Use a timeout of config.get('time') * 2
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-07 11:36:45 -06:00
Zack Cerza
0be5f1f015 Introduce a timeout to radosbench's join phase
Set to 15min right now.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-07 11:21:31 -06:00
Josh Durgin
57259b54be rados: use backwards compatible args
For ops that default to 0, only add arguments for them if they are
specified in the task config. This lets us use the same task across
ceph versions, even if the older version does not support new op
types, like append on dumpling.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-03-06 17:32:10 -08:00
Sage Weil
95d445daea Merge remote-tracking branch 'gh/firefly' 2014-03-06 16:57:45 -08:00
Sage Weil
70de7d52d3 Revert "Do not spawn a parallel task if dictionary entry does not exist."
This reverts commit dadc9f7d0b.
2014-03-06 16:56:14 -08:00
Samuel Just
e6698af818 ceph_manager: fix erasure coding m, k values
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-03-05 12:38:51 -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