Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support parsing "mirror list" #27

Open
srbarrios opened this issue Nov 28, 2022 · 1 comment
Open

Support parsing "mirror list" #27

srbarrios opened this issue Nov 28, 2022 · 1 comment

Comments

@srbarrios
Copy link
Member

srbarrios commented Nov 28, 2022

Some of our products supported from our sumatoolbox, as an example:

https://mirrors.rockylinux.org/mirrorlist?repo=BaseOS-9&arch=x86_64

Are returning a mirror list. And we handle them properly from our Uyuni/SUMA server when repo-syncing.

But when we want to use a Minima mirror in between, we are forced to select specifically one of the mirrors and minima don't support the URL (with parameters) above. After that, in order to synchronize it properly with SUMA/Uyuni we are forced yet again to tweak the path of the folders downloaded by minima and create a symlink that match the URL passed to sumatoolbox, so again /mirrors.rockylinux.org/mirrorlist/<...>.

To make our solution more elegant, it will be great that minima can parse the kind of URL provided in sumatoolbox, those that returns a mirror_list text file, and select the most appropriate URL for it. We will then take care of having the mirror and the server at same location to avoid using different paths.

@Bischoff
Copy link

Example of symlinks I had to do on the mirror to work around this issue:

minima-mirror-bv:/srv/mirror/mirrors.rockylinux.org/mirrorlist/arch/x86_64/repo # ls -l */*
lrwxrwxrwx 1 root root 60 28 nov.  07:27 AppStream-9/Packages -> ../../../../../../pub/rocky/9.1/AppStream/x86_64/os/Packages
lrwxrwxrwx 1 root root 60 28 nov.  07:11 AppStream-9/repodata -> ../../../../../../pub/rocky/9.1/AppStream/x86_64/os/repodata
lrwxrwxrwx 1 root root 57 28 nov.  07:27 BaseOS-9/Packages -> ../../../../../../pub/rocky/9.1/BaseOS/x86_64/os/Packages
lrwxrwxrwx 1 root root 57 28 nov.  07:10 BaseOS-9/repodata -> ../../../../../../pub/rocky/9.1/BaseOS/x86_64/os/repodata
lrwxrwxrwx 1 root root 57 28 nov.  07:27 extras-9/Packages -> ../../../../../../pub/rocky/9.1/extras/x86_64/os/Packages
lrwxrwxrwx 1 root root 57 28 nov.  07:11 extras-9/repodata -> ../../../../../../pub/rocky/9.1/extras/x86_64/os/repodata

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants