Project

General

Profile

Actions

Bug #22434

open

[enabled_repos_upload] emits "Repository X is listed more than once in the configuration" warnings in yum

Added by Daniel Kimsey over 7 years ago. Updated 8 months ago.

Status:
Need more information
Priority:
Low
Category:
Client/Agent
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Yum emits spam at the end of most commands about duplicate repositories. I've checked the .repo files, there are none. On 7 it goes so far as to spam about all the upstream-disabled-by-default-pinned-to-a-point-release repositories.

CentOS 7 Versions:
- yum-3.4.3-154.el7.centos.noarch
- katello-agent-3.0.2-1.el7.noarch

CentOS 6 Versions:
- yum-3.2.29-81.el6.centos.noarch
- katello-agent-3.0.2-1.el6.noarch

RedHat 5's (katello-agent-3.0.2-1.el5) works without warnings.

I've traced this to the yb.repos.listEnabled() call in enabled_repos_upload.py plugin. As best as I can tell, the re-initialization in YumBase._getRepos() triggers the warnings. If I modify enabled_repos_upload (del yb.prerepoconf), the warnings go away but no repos are reported/cached.

I rewrote a local copy using a @postreposetup_hook(conduit)@ instead, and it looked like it got all the correct repos. Though I didn't know how to pass the results to the close_hook.

Actions

Also available in: Atom PDF