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: VERIFIED
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 Dolezelova
URL:
Whiteboard:
: 1601911 (view as bug list)
Depends On: 1679648 1681084 1692453 1689401 1692454
Blocks: 1689400 1692452
TreeView+ depends on / blocked
 
Reported: 2019-02-21 09:55 UTC by Marek Blaha
Modified: 2019-07-04 10:32 UTC (History)
16 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:
Type: Bug


Attachments (Terms of Use)

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.


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