#7444 redirect "7Server" for EPEL on download.fedoraproject.org
Closed: Fixed Opened by ktdreyer.

  • Describe what you need us to do:
    Please redirect "7Server" for EPEL 7 on the download.fedoraproject.org server. "7" is redirected, but "7Server" is not.

This URL works (redirects to a mirror):
https://download.fedoraproject.org/pub/epel/7/x86_64/repodata/repomd.xml

This URL is a 404:
https://download.fedoraproject.org/pub/epel/7Server/x86_64/repodata/repomd.xml

I ran into this because Ansible's documentation example suggests using "$releasever" when adding a repository with yum_repository, and on RHEL 7 (not CentOS), $releasever is "7Server".

  • When do you need this? (YYYY/MM/DD)
    No specific date

  • When is this no longer needed or useful? (YYYY/MM/DD)
    When EPEL 7 is not supported on RHEL 7 server.

  • If we cannot complete your request, what is the impact?
    RHEL 7 hosts cannot easily use "$releasever" for the https://download.fedoraproject.org/pub/epel baseurl.


Metadata Update from @bowlofeggs:
- Issue priority set to: Waiting on Assignee (was: Needs Review)

Interesting. If you directly look at the download servers:

https://dl.fedoraproject.org/pub/epel/

there is a link: 7Server -> 7

but as this goes through Mirrormanager it does not work. The redirect to Mirrormanager looks like this:

RewriteRule ^/(.+) {{proxyurl}}/mirrorlist?path=$1&redirect=1 [P,QSA,L]
RewriteRule ^/$ {{proxyurl}}/mirrorlist?path=pub/fedora/linux/&redirect=1 [P,QSA,L]

as Mirrormanager does not know/care about links this request points to a path that does not exists.

So this either needs a smarter redirect which changes '7Server' to '7' or MirrorManager should know about links. Making Mirrormanager aware of links sounds like the better/cleaner solution.

Yeah, I agree... can someone file a mirrormanager issue on this to track this and close this one?

Unless there's anything we can do short term with a redirect...

Yeah, I agree... can someone file a mirrormanager issue on this to track this and close this one?

https://github.com/fedora-infra/mirrormanager2/issues/259

Unless there's anything we can do short term with a redirect...

Should be doable with something like

RewriteRule ^/pub/epel/7Server/(.+) {{proxyurl}}/mirrorlist?path=pub/epel/7/$1&redirect=1 [P,QSA,L]

Maybe...

Ansible commit 564fc0fbf17ea18833f1d21c35bb54dd65a0f2db adds this, we can track the other part in the upstream ticket.

:minibus:

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

Metadata