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 1679509 - [libdnf] Set skip_if_unavailable=false as default behavior for software management tools
Summary: [libdnf] Set skip_if_unavailable=false as default behavior for software manag...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libdnf
Version: 8.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 8.1
Assignee: Jaroslav Mracek
QA Contact: Jan Blazek
Marie Hornickova
URL:
Whiteboard:
: 1601911 (view as bug list)
Depends On: 1679648 1681084 1689401 1692453 1692454
Blocks: 1689400 1692452
TreeView+ depends on / blocked
 
Reported: 2019-02-21 09:55 UTC by Marek Blaha
Modified: 2020-11-14 20:41 UTC (History)
17 users (show)

Fixed In Version: libdnf-0.22.5-5.el8
Doc Type: Bug Fix
Doc Text:
.*YUM v4* no longer skips unavailable repositories by default *YUM v4* defaults to the "skip_if_unavailable=False" setting for all repositories. Previously, if the required repository was not available, the packages from the repository were not considered in the install, search, or update operations. Subsequently, some `yum` commands and yum-based scripts succeeded with exit code 0 even if there were unavailable repositories. With this update, `libdnf` has been modified, and *YUM v4* no longer skips unavailable repositories by default.
Clone Of:
: 1692452 (view as bug list)
Environment:
Last Closed: 2019-11-05 22:21:13 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:3583 0 None None None 2019-11-05 22:21:30 UTC

Description Marek Blaha 2019-02-21 09:55:13 UTC
Description of problem:

Unlike the YUM3, dnf in repo configuration defaults to skip_if_unavailable=True. We should consider adding `skip_if_unavailable=false` into important system repositories generated by subscription manager, because unavailability of these repos without noticing can cause a lot of troubles to customers.

How reproducible:
always

Steps to Reproduce:

On RHEL 8 system without network connection:

# yum makecache
Failed to set locale, defaulting to C
Updating Subscription Management repositories.
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream Beta (RPMs)            0.0 B/s |   0  B   00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS Beta (RPMs)               0.0 B/s |   0  B   00:00           
Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-beta-rpms', ignoring this repo.
Failed to synchronize cache for repo 'rhel-8-for-x86_64-baseos-beta-rpms', ignoring this repo.
Metadata cache created.

Actual results:
redhat repos are ignored
# echo $?
0

Expected results:
redhat repos are not ignored.

# yum makecache
Failed to set locale, defaulting to C
Updating Subscription Management repositories.
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - BaseOS Beta (RPMs)               0.0 B/s |   0  B   00:00           
Error: Failed to synchronize cache for repo 'rhel-8-for-x86_64-baseos-beta-rpms'

echo $?
1

Additional info:

Comment 6 Karel Srot 2019-03-14 20:48:32 UTC
*** Bug 1601911 has been marked as a duplicate of this bug. ***

Comment 16 Jaroslav Mracek 2019-03-20 08:28:42 UTC
I created a patch https://github.com/rpm-software-management/libdnf/pull/701 that changes a defaults for dnf, microdnf, and PackageKit to skip_if_unavailable=false.

Comment 41 edward Grey 2019-10-17 08:54:48 UTC
I understand why this option should be defaulted to 'false' for OS like RHEL8.

Now on fedora were the lifecycle are pretty fast, it can be a burden. I'm on fedora 31 with a repository that is not yet available for fedora31 (there is many, but let's give an example: postgresql repo).
 Without me checking why some library did not get upgraded automatically, I would have not detected that the cause is an unrelated repository. 


This comment is just to write what is on my mind, and make other people react

I did not check if this option can be set at repository level but I guess it is. On Fedora would it have been preferable to have this option set to true at global level and false for the core repositories (fedora, fedora update, fedora modular, fedora modular update)?

Comment 43 errata-xmlrpc 2019-11-05 22:21:13 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/RHSA-2019:3583


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