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>
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>
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>
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>
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>
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>
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>
* 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>
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>
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>
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>
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>
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>