mirror of
https://github.com/ceph/ceph
synced 2025-02-15 14:58:01 +00:00
Merge pull request #356 from ceph/wip-default-machine-type
Allow setting default machine_type per-lab
This commit is contained in:
commit
927c33c3cd
@ -1,6 +1,7 @@
|
||||
import docopt
|
||||
|
||||
import teuthology.suite
|
||||
from teuthology.config import config
|
||||
|
||||
doc = """
|
||||
usage: teuthology-suite --help
|
||||
@ -37,7 +38,7 @@ Standard arguments:
|
||||
The teuthology branch to run against.
|
||||
[default: master]
|
||||
-m <type>, --machine-type <type>
|
||||
Machine type [default: plana,mira,burnupi]
|
||||
Machine type [default: {default_machine_type}]
|
||||
-d <distro>, --distro <distro>
|
||||
Distribution to run against
|
||||
[default: ubuntu]
|
||||
@ -71,7 +72,7 @@ Scheduler arguments:
|
||||
--filter-out KEYWORDS Do not run jobs whose name contains any of
|
||||
the keywords in the comma separated keyword
|
||||
string specified.
|
||||
"""
|
||||
""".format(default_machine_type=config.default_machine_type)
|
||||
|
||||
|
||||
def main():
|
||||
|
@ -38,7 +38,9 @@ def main(args):
|
||||
kernel_flavor = args['--flavor']
|
||||
teuthology_branch = args['--teuthology-branch']
|
||||
machine_type = args['--machine-type']
|
||||
if 'multi' in machine_type:
|
||||
if not machine_type or machine_type == 'None':
|
||||
schedule_fail("Must specify a machine_type")
|
||||
elif 'multi' in machine_type:
|
||||
schedule_fail("'multi' is not a valid machine_type. " +
|
||||
"Maybe you want 'plana,mira,burnupi' or similar")
|
||||
distro = args['--distro']
|
||||
@ -469,7 +471,7 @@ def schedule_suite(job_config,
|
||||
all_filt_val = True
|
||||
continue
|
||||
if all_filt_val:
|
||||
continue
|
||||
continue
|
||||
|
||||
raw_yaml = '\n'.join([file(a, 'r').read() for a in fragment_paths])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user