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.
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.
Updated by Andrew Kofink over 7 years ago
- Translation missing: en.field_release set to 114
Updated by Daniel Kimsey about 7 years 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).
Updated by Justin Sherrill about 7 years ago
- Translation missing: en.field_release deleted (
114)
Updated by Justin Sherrill about 7 years 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?
Updated by Daniel Kimsey about 7 years 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
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
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.
Updated by Daniel Kimsey about 7 years 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.