files respectively, otherwise use `main`.
-m <type>, --machine-type <type>
Machine type [default: {default_machine_type}]
- -d <distro>, --distro <distro>
- Distribution to run against
- -D <distroversion>, --distro-version <distroversion>
- Distro version to run against
--ceph-repo <ceph_repo> Query this repository for Ceph branch and SHA1
values [default: {default_ceph_repo}]
--suite-repo <suite_repo> Use tasks and suite definition in this repository
req_obj['project'] = self.project
req_obj['flavor'] = flavor
arch = "noarch" if self.force_noarch else self.arch
- req_obj['distros'] = '%s/%s' % (self.distro, arch)
+ # req_obj['distros'] = '%s/%s' % (self.distro, arch)
ref_name, ref_val = list(self._choose_reference().items())[0]
if ref_name == 'tag':
req_obj['sha1'] = self._sha1 = self._tag_to_sha1()
teuthology_branch, teuthology_sha1 = self.choose_teuthology_branch()
- if self.args.distro_version:
- self.args.distro_version, _ = \
- OS.version_codename(self.args.distro, self.args.distro_version)
self.config_input = dict(
suite=self.args.suite,
suite_branch=suite_branch,
return self.build_base_config()
def choose_os(self):
- os_type = self.args.distro
- os_version = self.args.distro_version
- if not (os_type and os_version):
- os_ = util.get_distro_defaults(
- self.args.distro, self.args.machine_type)[2]
- else:
- os_ = OS(os_type, os_version)
+ os_ = util.get_distro_defaults(
+ None, self.args.machine_type)[2]
return os_
def choose_kernel(self):
else:
kernel_hash = util.get_gitbuilder_hash(
'kernel', self.args.kernel_branch, 'default',
- self.args.machine_type, self.args.distro,
- self.args.distro_version,
+ self.args.machine_type, None,
+ None,
)
if not kernel_hash:
util.schedule_fail(
# don't bother if newest; we'll search for an older one
# Get the ceph package version
ceph_version = util.package_version_for_hash(
- ceph_hash, self.args.flavor, self.os.name,
- self.os.version, self.args.machine_type,
+ ceph_hash, self.args.flavor, None,
+ None, self.args.machine_type,
)
if not ceph_version:
- msg = f"Packages for os_type '{self.os.name}', flavor " \
+ msg = f"Packages for flavor " \
f"{self.args.flavor} and ceph hash '{ceph_hash}' not found"
util.schedule_fail(msg, self.name, dry_run=self.args.dry_run)
log.info("ceph version: {ver}".format(ver=ceph_version))