Bug 1940345

Summary: ip_resolve, timeout, username, password options are ignored for downloading remote "rpm"
Product: Red Hat Enterprise Linux 8 Reporter: Jaroslav Rohel <jrohel>
Component: dnfAssignee: Jaroslav Rohel <jrohel>
Status: CLOSED ERRATA QA Contact: Radek Bíba <rbiba>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 8.2CC: james.antill, pkratoch
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libdnf-0.63.0-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 19:52:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1951409    
Bug Blocks:    

Description Jaroslav Rohel 2021-03-18 09:09:17 UTC
Description of problem:
ip_resolve, timeout, username, password options are ignored for downloading remote "rpm".

How reproducible:
Try to use any command (install, reinstall, upgrade, download, ...) with any of the listed options (ip_resolve, timeout, username, password) and a remote "rpm". 

Example:
dnf --setopt=ip_resolve=ipv4 install http://existing.server.xy/package.rpm
dnf --setopt=ip_resolve=ipv6 upgrade http://existing.server.xy/package.rpm

Actual results:
Options are ignored.

Expected results:
Options are used.

Additional info:
Options now work only for repositories, but not for remote rpms.

Comment 1 Jaroslav Rohel 2021-03-18 09:16:06 UTC
The problem is in libdnf.
Fix PR: https://github.com/rpm-software-management/libdnf/pull/1162

Comment 10 errata-xmlrpc 2021-11-09 19:52:36 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 (Moderate: dnf security and bug fix update), 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-2021:4464