Hide Forgot
Also happens for yum-utils-1.1.30-37.el6 +++ This bug was initially created as a clone of Bug #1184912 +++ Description of problem: When /etc/yum.repos.d contains no .repo files, yum-config-manager fails to add a new repository via the --add-repo option, producing a traceback. Version-Release number of selected component (if applicable): yum-utils-1.1.31-29.el7.noarch Steps to Reproduce: # for repo in /etc/yum.repos.d/*; do mv $repo $repo.disabled; done # yum-config-manager --add-repo ceph.repo Loaded plugins: priorities, product-id adding repo from: ceph.repo Traceback (most recent call last): File "/usr/bin/yum-config-manager", line 209, in <module> grabber = yb.repos.listEnabled()[0].grabfunc IndexError: list index out of range ... --- Additional comment from Zdenek Juran on 2016-01-15 10:21:20 CET --- BTW you don't need to move repository definitions out it is enough to make them disabled by: yum-config-manager --disable <list-of-repos>
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available. The official life cycle policy can be reviewed here: http://redhat.com/rhel/lifecycle This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL: https://access.redhat.com/