#8134 MirrorManager: 'rawhide' as releasever doesn't work for modular repos
Closed: Fixed 2 years ago by adrian. Opened 2 years ago by kparal.

For standard repos, you can use both rawhide and a corresponding number (32) as releasever in MM URLs:
https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-32&arch=x86_64 - works
https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-rawhide&arch=x86_64 - works

However, for fedora-modular* repos, you can't use the rawhide keyword:
https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-modular-32&arch=x86_64 - works
https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-modular-rawhide&arch=x86_64 - broken
(the same for fedora-modular-debug and fedora-modular-source)

Please make sure the rawhide alias is always functional for all our repos (adjust a script that you use to edit it, create a lint to verify consistency after changes, etc).

This is important especially because I'm trying to make Rawhide use rawhide (and not a number) as releasever in the future:

Thank you!

Metadata Update from @kevin:
- Issue assigned to adrian
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: mirrorlists

2 years ago

The repository is named rawhide-modular and not fedora-modular-rawhide. All rawhide repositories are not aliases. Only N+1 repositories (N+1 is something Mirrormanager has no knowledge about) are aliases.

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

2 years ago

Unique repo names for Rawhide break system upgrades:

$ sudo dnf system-upgrade download --releasever=rawhide
Before you continue ensure that your system is fully upgraded by running "dnf --refresh upgrade". Do you want to continue [y/N]: y
Fedora Modular rawhide - x86_64                                                                56 kB/s |  54 kB     00:00    
Failed to download metadata for repo 'fedora-modular'
Error: Failed to download metadata for repo 'fedora-modular'

Why do all RPM repos have the same fedora-$releasever naming structure (where $releasever is NN or rawhide), but modular repos don't? Can you please consider renaming those repos?

Ideally all infra repos should use the same names and shouldn't special-case Rawhide, because that will just make our lives miserable. That's one of the reason's I'm trying to push https://pagure.io/releng/issue/7445 , to make Rawhide experience seamless with other system releases. Thank you for consideration.

Metadata Update from @kparal:
- Issue status updated to: Open (was: Closed)

2 years ago

I'd be open to fixing this... would this require moving repos on mirrors? or can we just do it all in the repo files and mm?

I'd be open to fixing this... would this require moving repos on mirrors? or can we just do it all in the repo files and mm?

The name is MirrorManager only: https://github.com/fedora-infra/mirrormanager2/blob/master/mirrormanager2/lib/repomap.py#L84

So it can be changed in the database easily. We can make add the current names to the repository_redirect table so nothing will break using the old names.

Let me know if that sounds acceptable?

+1 from me if it's just a mm change...

@adrian can you make the mm change? should we announce it anywhere, or just do it?

Sorry, forgot about this. I will do the changes. As it should be possible to do this without any user visible changes I do not think we need to announce it.

Just to make sure I do the right thing. Currently we have the following repositories with rawhide in their name and I would rename them like following:

  • rawhide => fedora-rawhide
  • rawhide-source => fedora-source-rawhide
  • rawhide-debug => fedora-debug-rawhide
  • rawhide-modular => fedora-modular-rawhide
  • rawhide-modular-source => fedora-modular-source-rawhide
  • rawhide-modular-debug => fedora-modular-debug-rawhide

Does that sound correct?

fedora-rawhide, fedora-source-rawhide and fedora-debug-rawhide work already.
fedora-modular-rawhide, fedora-modular-source-rawhide and fedora-modular-debug-rawhide don't work and need to be fixed somehow (e.g. renamed).

I think the first three work because you have a functionality in place that translates rawhide to a number. So not only fedora-rawhide works, fedora-32 also works. Perhaps the modular repos can be fixed by making sure the rawhide->number translation covers modular repos as well? Because fedora-modular-32, fedora-modular-debug-32 and fedora-modular-source-32 work already!

I added the necessary repository redirect entries. This should be live in one or two hours.

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

2 years ago

Thanks, it seems to work fine now.

Login to comment on this ticket.