RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1493489 - yum-config-manager --add-repo returns 0 on failure
Summary: yum-config-manager --add-repo returns 0 on failure
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: yum-utils
Version: 7.5
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Michal Domonkos
QA Contact: Eva Mrakova
URL:
Whiteboard:
: 1516432 (view as bug list)
Depends On: 1439514
Blocks: 1549618
TreeView+ depends on / blocked
 
Reported: 2017-09-20 10:36 UTC by Valentina Mukhamedzhanova
Modified: 2018-10-30 11:41 UTC (History)
9 users (show)

Fixed In Version: yum-utils-1.1.31-50.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1439514
Environment:
Last Closed: 2018-10-30 11:40:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3280 0 None None None 2018-10-30 11:41:13 UTC

Description Valentina Mukhamedzhanova 2017-09-20 10:36:41 UTC
This is done in dnf, should also be done in yum-utils.

+++ This bug was initially created as a clone of Bug #1439514 +++

[vagrant@localhost ~]$ sudo dnf config-manager --add-repo=http://download.devel.redhat.com/rel-eng/dist-git/fedora/rhpkg.repo
Adding repo from: http://download.devel.redhat.com/rel-eng/dist-git/fedora/rhpkg.repo
Curl error (6): Couldn't resolve host name for http://download.devel.redhat.com/rel-eng/dist-git/fedora/rhpkg.repo [Could not resolve host: download.devel.redhat.com]
[vagrant@localhost ~]$ echo $?
0

I believe it should return some other value on failure.

--- Additional comment from Honza Silhan on 2017-04-12 13:12:53 CEST ---

The behavior is same as in yum.

Valentina, what do you think? Can we set this as a bug and have this fixed in yum too?

--- Additional comment from Valentina Mukhamedzhanova on 2017-05-02 17:11:07 CEST ---

I have no objection to fixing this.

--- Additional comment from Jaroslav Mracek on 2017-06-19 20:46:22 CEST ---

I created a pull-request that should fix the issue (https://github.com/rpm-software-management/dnf-plugins-core/pull/225).

--- Additional comment from Fedora Update System on 2017-07-24 16:50:14 CEST ---

libdnf-0.9.3-1.fc26 dnf-plugins-core-2.1.3-1.fc26 dnf-2.6.2-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-6f4c06b2d7

--- Additional comment from Fedora Update System on 2017-07-25 06:26:23 CEST ---

dnf-2.6.2-1.fc26, dnf-plugins-core-2.1.3-1.fc26, libdnf-0.9.3-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-6f4c06b2d7

--- Additional comment from Fedora Update System on 2017-07-25 18:55:10 CEST ---

dnf-2.6.2-1.fc26, dnf-plugins-core-2.1.3-1.fc26, libdnf-0.9.3-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 2 Valentina Mukhamedzhanova 2018-03-01 11:30:29 UTC
*** Bug 1516432 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2018-10-30 11:40:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3280


Note You need to log in before you can comment on or make changes to this bug.