Move the calculation of active MDS count out
of the generic service setup and into the
filesystem setup.
Fixes: #8750
Signed-off-by: John Spray <john.spray@redhat.com>
The hardcoded arguments are deprecated for the profile name. Create a
profile that matches the previous default arguments. Read the config to
allow the caller to override the defaults from the yaml file.
Signed-off-by: Loic Dachary <loic@dachary.org>
Instead of being hard coded, the erasure code profile is read from yaml
as:
erasure_code_profile:
name: teuthologyprofile
k: 2
m: 1
ruleset-failure-domain: osd
Which translates into
ceph osd erasure-code-profile set teuthologyprofile \
k=2 m=1 ruleset-failure-domain=osd
The semantic of k/m etc. depends on the erasure code plugin, but it is
common to use k as the dividing factor for each object and m as the
number of coding chunks.
Using a different set of parameters or a different plugin can
be done without modifying the teuthology code:
erasure_code_profile:
name: LRCprofile
plugin: LRC
mapping: __DD__DD
layers: [[ "_cDD_cDD", "" ], [ "cDDD____", "" ], [ "____cDDD", ""]]
For backward compatibility, the default erasure code profile is set to
k: 2
m: 1
ruleset-failure-domain: osd
which matches the previously hardcoded default of the corresponding
functions.
Signed-off-by: Loic Dachary <loic@dachary.org>
This is a contextmanager task that will run some command in the background
for the duration of any subsequent tasks, and kill it in the cleanup
phase.
Signed-off-by: Sage Weil <sage@inktank.com>
New ceph versions will no longer create the
CephFS pools and will not enable the filesystem
by default. This change adds an explicit step
to the cluster initialization to create the
filesystem if it doesn't already exist.
Signed-off-by: John Spray <john.spray@inktank.com>
For the future help keep in sync with test/osd/TestRados.cc by listing
in order of op_types in that code.
Signed-off-by: David Zafman <david.zafman@inktank.com>
Invoke run_xfstests.sh through a wrapper, which supplies an exclusion
list, in order to skip tests we don't want to run.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
This is for testing the changes to CephFS
journal format, especially the migration
of journals from old to new format.
This is a teuthology task rather than being
a workunit script, because it involves
manipulating services and config during the
procedure.
Signed-off-by: John Spray <john.spray@inktank.com>
Python modules are not allowed to contain hyphens
in the name. Using hyphens only works here because
we're using low level __import__.
Change run_tasks to replace '-' with '_' when reading
configs, and rename the task modules to have valid
python module names.
Aside from general hygiene, the motivation to do this
is to allow one task to build on code in another
task by importing it.
Signed-off-by: John Spray <john.spray@inktank.com>