For example, consider::
- teuthology-suite -s rbd -c wip-fix -k distro -e bob.smith@foo.com -f basic -t jewel -m mira
+ teuthology-suite -s rbd -c wip-fix -k distro -e bob.smith@foo.com -f default -t jewel -m mira
The above command runs the rbd suite using the wip-fix branch of ceph, the
-jewel kernel, with a 'basic' kernel flavor, and the teuthology jewel branch
+jewel kernel, with a 'default' ceph shaman build packages flavor, and the teuthology jewel branch
will be used. It will run on mira machines and send an email to
bob.smith@foo.com when it's completed. For more details on
``teuthology-suite``, please consult the output of ``teuthology-suite --help``.
@property
def _search_uri(self):
flavor = self.flavor
- if flavor == 'basic':
- flavor = 'default'
req_obj = OrderedDict()
req_obj['status'] = 'ready'
req_obj['project'] = self.project
'ceph': 'ceph_branch',
'sha1': 'ceph_sha1',
'kernel': 'kernel_branch',
- # FIXME: ceph flavor and kernel flavor are separate things
- 'flavor': 'kernel_flavor',
'<config_yaml>': 'base_yaml_paths',
'filter': 'filter_in',
}
self.args.suite,
self.args.ceph_branch,
self.args.kernel_branch or '-',
- self.args.kernel_flavor, worker
+ self.args.flavor, worker
]
).replace('/', ':')
kernel_hash = None
else:
kernel_hash = util.get_gitbuilder_hash(
- 'kernel', self.args.kernel_branch, self.args.kernel_flavor,
+ 'kernel', self.args.kernel_branch, self.args.flavor,
self.args.machine_type, self.args.distro,
self.args.distro_version,
)
log.info("kernel sha1: {hash}".format(hash=kernel_hash))
kernel_dict = dict(kernel=dict(kdb=True, sha1=kernel_hash))
if kernel_hash != 'distro':
- kernel_dict['kernel']['flavor'] = self.args.kernel_flavor
+ kernel_dict['kernel']['flavor'] = self.args.flavor
else:
kernel_dict = dict()
return kernel_dict
# Get the ceph package version
try:
ceph_version = util.package_version_for_hash(
- ceph_hash, self.args.kernel_flavor, self.args.distro,
+ ceph_hash, self.args.flavor, self.args.distro,
self.args.distro_version, self.args.machine_type,
)
except Exception as exc:
email='address@example.com',
teuthology_branch='teuthology_branch',
kernel_branch=None,
- kernel_flavor='kernel_flavor',
+ flavor='flavor',
distro='ubuntu',
machine_type='machine_type',
base_yaml_paths=list(),
'base_yaml_paths': [],
'ceph_branch': 'master',
'machine_type': 'smithi',
- 'kernel_flavor': 'basic',
+ 'flavor': 'basic',
'kernel_branch': 'testing',
'suite': 'krbd',
}
ceph_sha1='ceph_sha1',
teuthology_branch='master',
kernel_branch=None,
- kernel_flavor='kernel_flavor',
+ flavor='flavor',
distro='ubuntu',
distro_version='14.04',
machine_type='machine_type',
return resp.json()
-def package_version_for_hash(hash, kernel_flavor='basic', distro='rhel',
+def package_version_for_hash(hash, flavor='basic', distro='rhel',
distro_version='8.0', machine_type='smithi'):
"""
Does what it says on the tin. Uses gitbuilder repos.
bp = get_builder_project()(
'ceph',
dict(
- flavor=kernel_flavor,
+ flavor=flavor,
os_type=distro,
os_version=distro_version,
arch=arch,
package_versions=None):
"""
Checks to see if gitbuilder has packages for the given sha1, os_type and
- kernel_flavor.
+ flavor.
See above for package_versions description.
:param sha1: The sha1 hash of the ceph version.
:param os_type: The distro we want to get packages for, given
the ceph sha1. Ex. 'ubuntu', 'rhel', etc.
- :param kernel_flavor: The kernel flavor
+ :param flavor: The distro flavor
:param package_versions: Use this optionally to use cached results of
previous calls to gitbuilder.
:returns: True, if packages are found. False otherwise.
format = "jar",
dist = "precise",
arch = "x86_64",
- flavor = "basic",
+ flavor = "default",
branch = "master")
run.wait(
suite.create_initial_config('s', None, 'master', 't',
'bogus_kernel_branch', 'f', 'd', 'm')
- def test_config_bogus_kernel_flavor(self):
+ def test_config_bogus_flavor(self):
# Don't attempt to send email
config.results_email = None
with raises(suite.ScheduleFailError):
suite.create_initial_config('s', None, 'master', 't', 'k',
- 'bogus_kernel_flavor', 'd', 'm')
+ 'bogus_flavor', 'd', 'm')
def test_config_bogus_ceph_branch(self):
# Don't attempt to send email