Bug 1330559

Summary: RFE: anaconda selects an unknown mirror
Product: [Fedora] Fedora Reporter: cornel panceac <cpanceac>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: anaconda-maint-list, cpanceac, g.kaviyarasu, jmracek, jonathan, jsilhan, mluscon, packaging-team-maint, pnemade, vanmeeuwen+fedora, vmukhame
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-16 11:49:14 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:

Description cornel panceac 2016-04-26 13:07:14 UTC
Description of problem:
When doing a netinstall, the mirror that anaconda selected is unknown.
It is important to know what mirror was selected because some mirrors are known to be very slow.

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

How reproducible:
always

Steps to Reproduce:
1.boot netinst
2.wait for anaconda to select mirror
3.check the source "tab"

Actual results:
the chosen mirror is not listed

Expected results:
the chosen mirror is displayed

Additional info:

Comment 1 Brian Lane 2016-04-26 23:53:48 UTC
Anaconda doesn't actually handle the mirror selection. It is handled by DNF and isn't available to display or edit in the source spoke.

Comment 2 cornel panceac 2016-04-27 05:40:11 UTC
Then please consider it a request for enhancement.

Comment 3 David Shea 2016-04-27 13:21:31 UTC
We would need some way of getting that information from dnf first.

Comment 4 Michal Luscon 2016-05-12 12:00:38 UTC
AFAIK, there is no such thing like strictly selected mirror for downloading. Librepo, the library used by DNF for downloading, skips slow mirrors on the basis of config options minrate and timeout. Therefore you should rather tweak those options to better suits your needs or consider fastestmirror=True.

Please let us know whether this solution is acceptable for you.

Comment 5 cornel panceac 2016-05-16 11:38:21 UTC
It's ok if librepo skips some mirrors but i'd like to add my own excluded mirrors, like in the yum times. Of course this needs to be done before the mirror is actually selected. I don't know if tweaking those config options is enough because i have resons to believe some mirrors use kinda cache which makes them fastest in the first 50 MB or so. Also i don't know where these options can be tweaked :)

Comment 6 Honza Silhan 2016-05-16 11:49:14 UTC

*** This bug has been marked as a duplicate of bug 1235982 ***

Comment 7 Jaroslav Mracek 2016-05-16 11:53:57 UTC
Please can you provide information how you did the selection in YUM. When we know your formal approach with yum, we can find a solution for dnf.

Comment 8 cornel panceac 2016-05-16 13:37:40 UTC
I have not selected a certain mirror to use,just excluded known bad mirrors as documented here:

https://wiki.centos.org/PackageManagement/Yum/FastestMirror