From: Zack Cerza Date: Tue, 26 May 2015 20:09:06 +0000 (-0600) Subject: Treat RHEL as CentOS when scheduling X-Git-Tag: 1.1.0~934^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f2ce5e1ed3d4538db7782cc0559711443aca4886;p=teuthology.git Treat RHEL as CentOS when scheduling http://tracker.ceph.com/issues/11772 Signed-off-by: Zack Cerza --- diff --git a/teuthology/suite.py b/teuthology/suite.py index ad33ba88c4..466edf5ad7 100644 --- a/teuthology/suite.py +++ b/teuthology/suite.py @@ -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' diff --git a/teuthology/test/test_suite.py b/teuthology/test/test_suite.py index b7e03edbf9..c12b249bb1 100644 --- a/teuthology/test/test_suite.py +++ b/teuthology/test/test_suite.py @@ -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')