Project

General

Profile

Bug #22434

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

Added by Daniel Kimsey over 1 year ago. Updated about 1 year ago.

Status:
Need more information
Priority:
Low
Category:
Client/Agent
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
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.

History

#1 Updated by Andrew Kofink over 1 year ago

  • Legacy Backlogs Release (now unused) set to 114

#2 Updated by Daniel Kimsey over 1 year ago

After any yum command I see output like the following:

...
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id, rhnplugin, subscription-manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository cr is listed more than once in the configuration
Repository base-debuginfo is listed more than once in the configuration
Repository c7-media is listed more than once in the configuration
Repository base-source is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
Repository extras-source is listed more than once in the configuration
Repository centosplus-source is listed more than once in the configuration
Repository C7.0.1406-base is listed more than once in the configuration
Repository C7.0.1406-updates is listed more than once in the configuration
Repository C7.0.1406-extras is listed more than once in the configuration
Repository C7.0.1406-centosplus is listed more than once in the configuration
Repository C7.0.1406-fasttrack is listed more than once in the configuration
Repository C7.1.1503-base is listed more than once in the configuration
Repository C7.1.1503-updates is listed more than once in the configuration
Repository C7.1.1503-extras is listed more than once in the configuration
Repository C7.1.1503-centosplus is listed more than once in the configuration
Repository C7.1.1503-fasttrack is listed more than once in the configuration
Repository C7.2.1511-base is listed more than once in the configuration
Repository C7.2.1511-updates is listed more than once in the configuration
Repository C7.2.1511-extras is listed more than once in the configuration
Repository C7.2.1511-centosplus is listed more than once in the configuration
Repository C7.2.1511-fasttrack is listed more than once in the configuration
Repository C7.3.1611-base is listed more than once in the configuration
Repository C7.3.1611-updates is listed more than once in the configuration
Repository C7.3.1611-extras is listed more than once in the configuration
Repository C7.3.1611-centosplus is listed more than once in the configuration
Repository C7.3.1611-fasttrack is listed more than once in the configuration
Repository fasttrack is listed more than once in the configuration
Repository ACME_fedora-epel-el7_fedora-epel-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_puppetlabs-puppet-el7_puppetlabs-dependencies-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_centos-el7_centos-extras-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_centos-el7_centos-updates-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_puppetlabs-puppet-el7_puppetlabs-pc1-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_puppetlabs-puppet-el7_puppetlabs-products-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_centos-el7_centos-os-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_zabbix_zabbix-3_0-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_katello-client-el7_katello-client-3_4-el7-x86_64-rpms is listed more than once in the configuration

Most of these repos aren't even enabled. (yum repolist only shows a subset).

#3 Updated by Justin Sherrill over 1 year ago

  • Legacy Backlogs Release (now unused) deleted (114)

#4 Updated by Justin Sherrill over 1 year ago

  • Target version set to 245

#5 Updated by Justin Sherrill over 1 year ago

  • Status changed from New to Need more information

I cannot for the life of me reproduce this. I tried on centos 7 and did not see the errors. I made sure i had all the same plugins installed and still could not reproduce:

Loaded plugins: fastestmirror, langpacks, product-id, rhnplugin, subscription-
: manager

One thing i can think is that it looks like your system is registered to a spacewalk server as well. If you unsubscribe it, does the problem go away?

#6 Updated by Daniel Kimsey over 1 year ago

Disabling the spacewalk plugin does seem to be related.

# yum repolist --disableplugin=rhnplugin
Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager,
              : tracer_upload
repo id                                                                      repo name                                    status
!ACME_centos-el7_centos-extras-el7-x86_64-rpms                          centos-extras-el7-x86_64-rpms                   675
!ACME_centos-el7_centos-os-el7-x86_64-rpms                              centos-os-el7-x86_64-rpms                    13,034
!ACME_centos-el7_centos-updates-el7-x86_64-rpms                         centos-updates-el7-x86_64-rpms                3,784
!ACME_centrify_centrify-centrifydc-rpms                                 centrify-centrifydc-rpms                        199
!ACME_fedora-epel-el7_fedora-epel-el7-x86_64-rpms                       fedora-epel-el7-x86_64-rpms                  19,178
!ACME_katello-client-el7_katello-client-3_2-el7-x86_64-rpms             katello-client-3.2-el7-x86_64-rpms               16
!ACME_katello-client-el7_katello-client-3_4-el7-x86_64-rpms             katello-client-3.4-el7-x86_64-rpms               18
!ACME_puppetlabs-puppet-el7_puppetlabs-dependencies-el7-x86_64-rpms     puppetlabs-dependencies-el7-x86_64-rpms          17
!ACME_puppetlabs-puppet-el7_puppetlabs-pc1-el7-x86_64-rpms              puppetlabs-pc1-el7-x86_64-rpms                  132
!ACME_puppetlabs-puppet-el7_puppetlabs-products-el7-x86_64-rpms         puppetlabs-products-el7-x86_64-rpms             225
!ACME_zabbix_zabbix-3_0-el7-x86_64-rpms                                 zabbix-3.0-el7-x86_64-rpms                      222
!base/7/x86_64                                                               CentOS-7 - Base                               9,591
!extras/7/x86_64                                                             CentOS-7 - Extras                               390
!updates/7/x86_64                                                            CentOS-7 - Updates                            1,941
repolist: 49,422
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id, rhnplugin, subscription-manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository cr is listed more than once in the configuration
Repository base-debuginfo is listed more than once in the configuration
Repository c7-media is listed more than once in the configuration
Repository base-source is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
Repository extras-source is listed more than once in the configuration
Repository centosplus-source is listed more than once in the configuration
Repository C7.0.1406-base is listed more than once in the configuration
Repository C7.0.1406-updates is listed more than once in the configuration
Repository C7.0.1406-extras is listed more than once in the configuration
Repository C7.0.1406-centosplus is listed more than once in the configuration
Repository C7.0.1406-fasttrack is listed more than once in the configuration
Repository C7.1.1503-base is listed more than once in the configuration
Repository C7.1.1503-updates is listed more than once in the configuration
Repository C7.1.1503-extras is listed more than once in the configuration
Repository C7.1.1503-centosplus is listed more than once in the configuration
Repository C7.1.1503-fasttrack is listed more than once in the configuration
Repository C7.2.1511-base is listed more than once in the configuration
Repository C7.2.1511-updates is listed more than once in the configuration
Repository C7.2.1511-extras is listed more than once in the configuration
Repository C7.2.1511-centosplus is listed more than once in the configuration
Repository C7.2.1511-fasttrack is listed more than once in the configuration
Repository C7.3.1611-base is listed more than once in the configuration
Repository C7.3.1611-updates is listed more than once in the configuration
Repository C7.3.1611-extras is listed more than once in the configuration
Repository C7.3.1611-centosplus is listed more than once in the configuration
Repository C7.3.1611-fasttrack is listed more than once in the configuration
Repository fasttrack is listed more than once in the configuration
Repository ACME_fedora-epel-el7_fedora-epel-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_centos-el7_centos-extras-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_puppetlabs-puppet-el7_puppetlabs-dependencies-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_centos-el7_centos-updates-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_puppetlabs-puppet-el7_puppetlabs-pc1-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_puppetlabs-puppet-el7_puppetlabs-products-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_centos-el7_centos-os-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_centrify_centrify-centrifydc-rpms is listed more than once in the configuration
Repository ACME_katello-client-el7_katello-client-3_4-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_zabbix_zabbix-3_0-el7-x86_64-rpms is listed more than once in the configuration
Repository ACME_katello-client-el7_katello-client-3_2-el7-x86_64-rpms is listed more than once in the configuration

However, if I disable the plugin via config, /etc/yum/pluginconf.d/rhnplugin.conf, the problem goes away.

yum repolist
Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-
              : manager, tracer_upload
repo id                                                                  repo name                                status
!ACME_centos-el7_centos-extras-el7-x86_64-rpms                      centos-extras-el7-x86_64-rpms               675
!ACME_centos-el7_centos-os-el7-x86_64-rpms                          centos-os-el7-x86_64-rpms                13,034
!ACME_centos-el7_centos-updates-el7-x86_64-rpms                     centos-updates-el7-x86_64-rpms            3,784
!ACME_centrify_centrify-centrifydc-rpms                             centrify-centrifydc-rpms                    199
!ACME_fedora-epel-el7_fedora-epel-el7-x86_64-rpms                   fedora-epel-el7-x86_64-rpms              19,178
!ACME_katello-client-el7_katello-client-3_2-el7-x86_64-rpms         katello-client-3.2-el7-x86_64-rpms           16
!ACME_katello-client-el7_katello-client-3_4-el7-x86_64-rpms         katello-client-3.4-el7-x86_64-rpms           18
!ACME_puppetlabs-puppet-el7_puppetlabs-dependencies-el7-x86_64-rpms puppetlabs-dependencies-el7-x86_64-rpms      17
!ACME_puppetlabs-puppet-el7_puppetlabs-pc1-el7-x86_64-rpms          puppetlabs-pc1-el7-x86_64-rpms              132
!ACME_puppetlabs-puppet-el7_puppetlabs-products-el7-x86_64-rpms     puppetlabs-products-el7-x86_64-rpms         225
!ACME_zabbix_zabbix-3_0-el7-x86_64-rpms                             zabbix-3.0-el7-x86_64-rpms                  222
!base/7/x86_64                                                           CentOS-7 - Base                           9,591
!extras/7/x86_64                                                         CentOS-7 - Extras                           390
!updates/7/x86_64                                                        CentOS-7 - Updates                        1,941
repolist: 49,422
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id, subscription-manager

#7 Updated by Justin Sherrill over 1 year ago

  • Legacy Backlogs Release (now unused) set to 114
  • Target version deleted (245)
  • Priority changed from Normal to Low

I think i'm okay closing this, but will move it to the backlog and lower the priority for now. Its likely that these two plugins are conflicting in some way, and these the two management systems were not meant to be used together anyways.

#8 Updated by Daniel Kimsey over 1 year ago

Understood, thanks for looking at it. I may poke at it some more in my downtime. Unfortunately Spacewalk isn't going away any time soon. Migrating our processes for Engineering artifacts to Katello is going to take quite some time.

I'll let you know if I have anything specific that might help.

Also available in: Atom PDF