#8649 http://dl.fp.o not reported as mirror by mirrormanager
Closed: Invalid 4 years ago by adrian. Opened 4 years ago by sharkcz.

http://dl.fedoraproject.org/ is not reported as a usable mirror by mirrormanager (likely for any repo/arch combination, except updates-testing-f31.ppc64le, updates-testing-debug-f31.ppc64le, but we were fixing these 2 repos few months ago). It breaks https://github.com/puiterwijk/check_metalink --check-master feature. I use it to verify we have all repos available when someone reports a problem, primarily for alt-arches.
Is it an intentional change?


Interesting. No one has complained yet. Without looking at any code I suspect this is related to the new mirrorlist-server (https://github.com/adrianreber/mirrorlist-server) and mirrors like our master which is marked as always_up2date are just ignored.

Looking at the old code I do not see a place where always_up2date were added.

I am not sure this is actually a change but a more result how the list of mirrors is created. As long as there are enough mirrors (https://github.com/adrianreber/mirrorlist-server/blob/master/src/main.rs#L1226) dl.fedoraproject.org is not added to the list. This might have been different a couple of years ago when we changed that number.

If I query the mirrorlist for archive mirrors from the US, dl.fedoraproject.org is added to the list. If there are enough answers:

$ curl "https://mirrors.fedoraproject.org/mirrorlist?repo=epel-8&arch=x86_64&ip=209.132.181.23" -s | grep fedoraproject.org
http://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/
https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/

Adding one if the fedoraproject.org IP to the mirrorlist queries ensure that you get that mirror returned.

So, I am not sure that this really is a change and if we want dl.fedoraproject.org always be part of the list if there are enough mirrors. The current results are working pretty good, except for that script. It probably works better the closer to the US you are.

@adrian, thanks for the info. I agree that for regular users the missing dl.fp.o isn't an issue.

I think I can work around the problem with https://github.com/sharkcz/check_metalink/commit/713747c9d1da99e467009ae26b17a91b0dbb735a. It works for me now, if there would be a problem later, we could start using the infra IP.

@sharkcz Closing this as the current situation works for you.

Metadata Update from @adrian:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

4 years ago

Login to comment on this ticket.

Metadata