Bug 1575998
Summary: | CentOS: dnf can't handle password-protected repos | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Adam Thompson <athompso> | ||||
Component: | dnf | Assignee: | Marek Blaha <mblaha> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | athompso, dmach, jmracek, mblaha, mhatina, packaging-team-maint, rpm-software-management, vmukhame | ||||
Target Milestone: | --- | Keywords: | Triaged | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-06-28 08:16:21 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: | |||||||
Attachments: |
|
Description
Adam Thompson
2018-05-08 13:51:29 UTC
/etc/yum.repos.d/bareos-latest.conf: *** [bareos-latest] name=bareos-latest type=rpm-md baseurl=https://avantsysadm%40avant.ca:********@download.bareos.com/bareos/release/latest/CentOS_7/ gpgcheck=1 gpgkey=https://download.bareos.com/bareos/release/latest/CentOS_7/repodata/repomd.xml.key enabled=1 *** Instructions provided to users (in the same vein as every other vendor with a password-protected repo) have always been to use a baseurl of "https://download.bareos.com/bareos/release/latest/CentOS_7/" and to add a "username=avantsysadm" and "password=*******" lines to the repo file. I should have titled the bug "dnf breaks backward compatibility for password-protected repos" but I didn't think of that when I was typing it, sorry. Hi, username / password in the repo config should work (i.e. this functionality is implemented). Please can you run any dnf command exclusively on this repo (e.g. dnf list --refresh --repo bareos-latest --available) and check dnf.librepo.log file? For root user, log file is located in /var/log/dnf.librepo.log, for ordinary user in /var/tmp/dnf-username-xxx/dnf.librepo.log. I suspect there could be an another problem then username/password with this repo. This is my quick experiment with the localy configured password protected repo. /etc/yum.repos.d/dummyrepo.conf: [dummyrepo] name=Dummy repo baseurl=http://localhost/dummyrepo/ enabled=1 gpgcheck=0 username=user password=pwd and this is what I've dumped on network when running the dnf command: GET /dummyrepo/repodata/repomd.xml HTTP/1.1 Host: localhost Authorization: Basic dXNyOnB3ZA== User-Agent: dnf/2.7.5 Accept: */* Cache-Control: no-cache Pragma: no-cache Created attachment 1434566 [details]
logfile showing lack of login
One possible difference is http vs https - dunno if it makes any difference or not. I've contacted bareos, because without active subscription I'm not able to test access to download.bareos.com. Thanks for reporting, we really had an issue with password protected repos in dnf. This PR should fix the bug in upstream: https://github.com/rpm-software-management/dnf/pull/1088 The issue is solved by dnf-3.0.1-1 that was released into rawhide. |