Bug 1579854

Summary: The fedora 28 updates repofile has an errant "os" in the URI for baseurl
Product: [Fedora] Fedora Reporter: Eric Lake <ericlake>
Component: fedora-reposAssignee: Mohan Boddu <mboddu>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 28CC: alan.christopher.jenkins, dennis, kellin, kevin, mboddu, pbrobinson, yasuakit.imi
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: fedora-repos-28-3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-24 13:57:05 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 Flags
correct baseurl patch
none
correct testing baseurl patch none

Description Eric Lake 2018-05-18 13:34:49 UTC
Description of problem:

The /etc/yum.repos.d/fedora-updates.repo file has "os" listed in the baseurl and this will cause updates to fail because the repo does not contain this path.

[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/Everything/$basearch/os/
metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
enabled=1
repo_gpgcheck=0
type=rpm
gpgcheck=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False

Version-Release number of selected component (if applicable):

Still relevant as of the fedora-repos-28-2.noarch release.


How reproducible:

Very reproducible. 

Steps to Reproduce:
1. Install via ISO or using a docker container
2. Uncomment baseurl in /etc/yum.repos.d/fedora-updates.repo
3. Comment metalink in /etc/yum.repos.d/fedora-updates.repo
4. dnf clean all
5. dnf repolist

Actual results:

baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/Everything/$basearch/os/
#metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch

dnf clean all
18 files removed

dnf repolist
Error: Failed to synchronize cache for repo 'updates'

Expected results:

dnf repolist
Fedora 28 - x86_64 - Updates                    1.8 MB/s | 8.5 MB     00:04    
Fedora 28 - x86_64                              3.5 MB/s |  60 MB     00:17    
Last metadata expiration check: 0:00:04 ago on Fri May 18 13:32:36 2018.
repo id                    repo name                                      status
*fedora                    Fedora 28 - x86_64                             57327
*updates                   Fedora 28 - x86_64 - Updates                    4433

Additional info:

Comment 1 Yasuaki Taniguchi 2018-05-20 05:16:20 UTC
Created attachment 1439088 [details]
correct baseurl patch

Comment 2 Yasuaki Taniguchi 2018-05-20 05:29:42 UTC
Created attachment 1439089 [details]
correct testing baseurl patch

An incorrect baseurl is set in fedora-updates-testing.repo, too.

Comment 3 Kevin Fenzi 2018-05-20 20:58:32 UTC
These fixes are in progress at https://pagure.io/fedora-repos/pull-request/79 and https://pagure.io/fedora-repos/pull-request/80. 

Please do look over those and make sure they match up for you...

Comment 4 Eric Lake 2018-05-21 12:01:20 UTC
Looks good to me.

Comment 5 Fedora Update System 2018-05-21 13:33:02 UTC
fedora-repos-28-3 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-72972dcd35

Comment 6 Fedora Update System 2018-05-22 19:37:23 UTC
fedora-repos-28-3 has been pushed to the Fedora 28 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-2018-72972dcd35

Comment 7 Fedora Update System 2018-05-24 13:57:05 UTC
fedora-repos-28-3 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.