specified in ``$HOME/.teuthology.yaml``::
test_path: <directory>
+
+Shaman options
+==============
+
+Shaman is a helper class which could be used to build the uri for specified
+packages based the 'shaman_host': 'shaman.ceph.com'.
+
+Options::
+
+ use_shaman: True # Enable to use Shaman, False as default
+ shaman:
+ force_noarch: True # Force to use "noarch" to build the uri
super(ShamanProject, self).__init__(project, job_config, ctx, remote)
self.query_url = 'https://%s/api/' % config.shaman_host
+ # Force to use the "noarch" instead to build the uri.
+ self.force_noarch = self.job_config.get("shaman", {}).get("force_noarch", False)
+
def _get_base_url(self):
self.assert_result()
return self._result.json()[0]['url']
req_obj['status'] = 'ready'
req_obj['project'] = self.project
req_obj['flavor'] = flavor
- req_obj['distros'] = '%s/%s' % (self.distro, self.arch)
+ arch = "noarch" if self.force_noarch else self.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()