]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add ceph-selinux to pkg list for 1.3.2 builds
authorVasu Kulkarni <vasu@redhat.com>
Thu, 17 Mar 2016 21:33:08 +0000 (17:33 -0400)
committerVasu Kulkarni <vasu@redhat.com>
Thu, 17 Mar 2016 21:33:08 +0000 (17:33 -0400)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
teuthology/task/install.py

index ebdea14547f3cf1a1a1ed7f726895322483d0225..f92aeb60ca942d8bdbd5f2d449012a653f25ff4a 100644 (file)
@@ -732,12 +732,14 @@ def rh_install_pkgs(ctx, remote, installed_version):
     :param remote: the teuthology.orchestra.remote.Remote object
     """
     pkgs = ['ceph-deploy']
+    if (installed_version == '1.3.2'):
+        pkgs.append('ceph-selinux')
     rh_version_check = {'0.94.1': '1.3.0', '0.94.3': '1.3.1',
                         '0.94.5': '1.3.2', '10.0.4': '2.0'}
     log.info("Remove any epel packages installed on node %s", remote.shortname)
     remote.run(args=['sudo', 'yum', 'remove', run.Raw("leveldb xmlstarlet fcgi"), '-y'],check_status=False)
     for pkg in pkgs:
-        log.info("Check if ceph-deploy is already installed on node %s", remote.shortname)
+        log.info("Check if %s is already installed on node %s", pkg, remote.shortname)
         remote.run(args=['sudo', 'yum', 'clean', 'metadata'])
         r = remote.run(
              args=['yum', 'list', 'installed', run.Raw(pkg)],
@@ -748,7 +750,7 @@ def rh_install_pkgs(ctx, remote, installed_version):
             log.info("Installing %s " % pkg)
             remote.run(args=['sudo', 'yum', 'install', pkg, '-y'])
         else:
-            log.info("Removing and reinstalling ceph-deploy on %s", remote.shortname)
+            log.info("Removing and reinstalling %s on %s", pkg, remote.shortname)
             remote.run(args=['sudo', 'yum', 'remove', pkg, '-y'])
             remote.run(args=['sudo', 'yum', 'install', pkg, '-y'])