: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)],
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'])