]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Treat RHEL as CentOS when scheduling
authorZack Cerza <zack@redhat.com>
Tue, 26 May 2015 20:09:06 +0000 (14:09 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 26 May 2015 22:35:06 +0000 (16:35 -0600)
http://tracker.ceph.com/issues/11772

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/suite.py
teuthology/test/test_suite.py

index ad33ba88c4d0377fea7530dbee83542fd0212870..466edf5ad740157e7c0c6a13e73ebdd90a0394a2 100644 (file)
@@ -380,12 +380,11 @@ def get_distro_defaults(distro, machine_type):
     ('armv7l', 'saucy', 'deb') when passed 'ubuntu' and 'saya'
     ('x86_64', 'wheezy', 'deb') when passed 'debian'
     ('x86_64', 'fedora20', 'rpm') when passed 'fedora'
-    ('x86_64', 'centos6', 'rpm') when passed 'centos'
-    And ('x86_64', 'rhel7_0', 'rpm') when passed anything else
+    And ('x86_64', 'centos7', 'rpm') when passed anything else
     """
     arch = 'x86_64'
-    if distro in (None, 'None', 'rhel'):
-        release = 'rhel7_0'
+    if distro in (None, 'None', 'rhel', 'centos'):
+        release = 'centos7'
         pkg_type = 'rpm'
     elif distro == 'ubuntu':
         pkg_type = 'deb'
@@ -397,9 +396,6 @@ def get_distro_defaults(distro, machine_type):
     elif distro == 'debian':
         release = 'wheezy'
         pkg_type = 'deb'
-    elif distro == 'centos':
-        release = 'centos6'
-        pkg_type = 'rpm'
     elif distro == 'fedora':
         release = 'fedora20'
         pkg_type = 'rpm'
index b7e03edbf95ee0a225aab071928a4944b4673bd9..c12b249bb1bcd9620f1a9e56475f15dfba2dfb41 100644 (file)
@@ -293,7 +293,7 @@ class TestDistroDefaults(object):
 
     def test_distro_defaults_centos(self):
         assert suite.get_distro_defaults('centos', 'magna') == ('x86_64',
-                                                                'centos6',
+                                                                'centos7',
                                                                 'rpm')
 
     def test_distro_defaults_fedora(self):
@@ -303,7 +303,7 @@ class TestDistroDefaults(object):
 
     def test_distro_defaults_default(self):
         assert suite.get_distro_defaults('rhel', 'magna') == ('x86_64',
-                                                              'rhel7_0',
+                                                              'centos7',
                                                               'rpm')