Project

General

Custom queries

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 9 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.

#1

Updated by Andrew Kofink over 7 years ago

  • Translation missing: en.field_release set to 114
#3

Updated by Justin Sherrill over 7 years ago

  • Translation missing: en.field_release deleted (114)
#4

Updated by Justin Sherrill over 7 years ago

  • Target version set to 245
#5

Updated by Justin Sherrill about 7 years ago

  • Status changed from New to Need more information
#7

Updated by Justin Sherrill about 7 years ago

  • Priority changed from Normal to Low
  • Target version deleted (245)
  • Translation missing: en.field_release set to 114
#9

Updated by Ian Ballou 9 months ago

  • Target version deleted (Katello Backlog)
Actions

Also available in: Atom PDF