]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
suite: kernel_flavor >> flavor
authorDeepika Upadhyay <dupadhya@redhat.com>
Fri, 23 Jul 2021 14:21:49 +0000 (14:21 +0000)
committerDeepika Upadhyay <dupadhya@redhat.com>
Tue, 12 Oct 2021 15:01:11 +0000 (20:31 +0530)
since addressing comment:
FIXME: ceph flavor and kernel flavor are separate things
remove basic -> default(flavor) mapping & update s/basic/default in docs

Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
docs/README.rst
teuthology/packaging.py
teuthology/suite/__init__.py
teuthology/suite/run.py
teuthology/suite/test/test_run_.py
teuthology/suite/util.py
teuthology/task/hadoop.py
teuthology/test/integration/test_suite.py

index 33e64d5adf01f47e518752434247fb5ee1373600..1b8239db66d2b3dedc32aa63814aba48c85e21df 100644 (file)
@@ -102,10 +102,10 @@ where:
 
 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``.
index 37b1147159bde09d608ef6b620ab3917a698ef3d..7700b6e3351e638b4156a43d0bb33388b0953555 100644 (file)
@@ -879,8 +879,6 @@ class ShamanProject(GitbuilderProject):
     @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
index a4850b8c992761ea3b7d6a5c159d60924a16df70..39dcbc181cb2fed384ee91311e1ccc541a7ccacb 100644 (file)
@@ -43,8 +43,6 @@ def process_args(args):
         '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',
     }
index 6f51b98d7452296996c800f1eb2f3b37bb51aca3..e87ab318095d38fb3fade33c49515327de3b7677 100644 (file)
@@ -74,7 +74,7 @@ class Run(object):
                 self.args.suite,
                 self.args.ceph_branch,
                 self.args.kernel_branch or '-',
-                self.args.kernel_flavor, worker
+                self.args.flavor, worker
             ]
         ).replace('/', ':')
 
@@ -135,7 +135,7 @@ class Run(object):
             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,
             )
@@ -148,7 +148,7 @@ class Run(object):
             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
@@ -191,7 +191,7 @@ class Run(object):
             # 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:
index bee67a6de3b448acb4ba7625482fd36a0b66d279..c47b15ed8e815c5d625a070f3f0699388aa484d1 100644 (file)
@@ -33,7 +33,7 @@ class TestRun(object):
             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(),
@@ -164,7 +164,7 @@ class TestRun(object):
             'base_yaml_paths': [],
             'ceph_branch': 'master',
             'machine_type': 'smithi',
-            'kernel_flavor': 'basic',
+            'flavor': 'basic',
             'kernel_branch': 'testing',
             'suite': 'krbd',
         }
@@ -197,7 +197,7 @@ class TestScheduleSuite(object):
             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',
index 5b9cb29f7de9489b67a36ab7f5c752ad15c3dd94..e1f4d031d72b9f3b48e30d898875a344d8b8f73d 100644 (file)
@@ -254,7 +254,7 @@ def get_branch_info(project, branch, project_owner='ceph'):
         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.
@@ -267,7 +267,7 @@ def package_version_for_hash(hash, kernel_flavor='basic', distro='rhel',
     bp = get_builder_project()(
         'ceph',
         dict(
-            flavor=kernel_flavor,
+            flavor=flavor,
             os_type=distro,
             os_version=distro_version,
             arch=arch,
@@ -404,14 +404,14 @@ def has_packages_for_distro(sha1, os_type, os_version, flavor,
                             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.
index 1c0ef0349d077bcf96cbfa802df2f9e192c23fba..6e78bf671d1a0c7a17b5b510e3506f44dbf256dc 100644 (file)
@@ -259,7 +259,7 @@ def install_hadoop(ctx, config):
                 format = "jar",
                 dist = "precise",
                 arch = "x86_64",
-                flavor = "basic",
+                flavor = "default",
                 branch = "master")
 
         run.wait(
index 012dbc5f3077fecdb06ac245c329308d930f1131..264400719ea34f62809af7359a6572f87cffce3c 100644 (file)
@@ -37,12 +37,12 @@ class TestSuiteOnline(object):
             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