Since Fedora ships downstream RPMs that obsolete
python-ceph, those RPMs will be pulled in to resolve
dependencies instead of those hosted by ceph.com, leading
to package errors.
To prevent this, enable check_obsoletes in the Yum
priorities plugin.
Fixes: 10476
Signed-off-by: Travis Rhoden <trhoden@redhat.com>
if adjust_repos:
install_yum_priorities(distro)
+ distro.conn.remote_module.enable_yum_priority_obsoletes()
+ logger.warning('check_obsoletes has been enabled for Yum priorities plugin')
if version_kind != 'dev':
remoto.process.run(
f.write(size*'\0')
+def enable_yum_priority_obsoletes(path="/etc/yum/pluginconf.d/priorities.conf"):
+ """Configure Yum priorities to include obsoletes"""
+ config = ConfigParser.ConfigParser()
+ config.read(path)
+ config.set('main', 'check_obsoletes', '1')
+ with open(path, 'wb') as fout:
+ config.write(fout)
+
+
# remoto magic, needed to execute these functions remotely
if __name__ == '__channelexec__':
for item in channel: # noqa