fedora-infra / mirrormanager2

Rewrite of the MirrorManager application in Flask and SQLAlchemy
https://mirrormanager.fedoraproject.org
GNU General Public License v2.0
65 stars 49 forks source link

Adjust for pungi4 repo layout changes #161

Open nirik opened 8 years ago

nirik commented 8 years ago

We are now using pungi4 to create development/24 and development/rawhide composes.

The layout has changed up as these are full composes now with all the images and metadata and such in them.

UMDL seems to have picked up on 24, but it did the wrong thing.

https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-24&arch=x86_64&country=global is currently pointing people to the Workstation repo, it should instead point to the Everything repo. Rawhide is still syncing but it likely will do the same.

We may need further adjustments, but short term s/Workstation/Everything/ should be a good start.

pypingou commented 8 years ago

For now I manually adjusted the DB.

Before:

# select * from repository where name like '%/24/%' ;
    id    |                             name                              |      prefix      | category_id | version_id | arch_id | directory_id | disabled 
----------+---------------------------------------------------------------+------------------+-------------+------------+---------+--------------+----------
 27707633 | pub/fedora/linux/development/24/Workstation/source/tree       | fedora-source-24 |           3 |          8 |       1 |        96681 | f
 27707634 | pub/fedora/linux/development/24/Workstation/armhfp/debug/tree | fedora-debug-24  |           3 |          8 |      13 |        96338 | f
 27707635 | pub/fedora/linux/development/24/Everything/armhfp/os          | fedora-24        |           3 |          8 |      13 |        95786 | f
 27707636 | pub/fedora/linux/development/24/Everything/x86_64/debug/tree  | fedora-debug-24  |           3 |          8 |       3 |        95942 | f
 27707637 | pub/fedora/linux/development/24/Workstation/x86_64/os         | fedora-24        |           3 |          8 |       3 |        96742 | f
 27707638 | pub/fedora/linux/development/24/Workstation/i386/os           | fedora-24        |           3 |          8 |       2 |        96648 | f
 27707639 | pub/fedora/linux/development/24/Workstation/i386/debug/tree   | fedora-debug-24  |           3 |          8 |       2 |        96618 | f

After:

# select * from repository where name like '%/24/%';
    id    |                             name                             |      prefix      | category_id | version_id | arch_id | directory_id | disabled 
----------+--------------------------------------------------------------+------------------+-------------+------------+---------+--------------+----------
 27707635 | pub/fedora/linux/development/24/Everything/armhfp/os         | fedora-24        |           3 |          8 |      13 |        95786 | f
 27707636 | pub/fedora/linux/development/24/Everything/x86_64/debug/tree | fedora-debug-24  |           3 |          8 |       3 |        95942 | f
 27707633 | pub/fedora/linux/development/24/Everything/source/tree       | fedora-source-24 |           3 |          8 |       1 |        96681 | f
 27707634 | pub/fedora/linux/development/24/Everything/armhfp/debug/tree | fedora-debug-24  |           3 |          8 |      13 |        96338 | f
 27707637 | pub/fedora/linux/development/24/Everything/x86_64/os         | fedora-24        |           3 |          8 |       3 |        96742 | f
 27707638 | pub/fedora/linux/development/24/Everything/i386/os           | fedora-24        |           3 |          8 |       2 |        96648 | f
 27707639 | pub/fedora/linux/development/24/Everything/i386/debug/tree   | fedora-debug-24  |           3 |          8 |       2 |        96618 | f
(7 rows)
nirik commented 8 years ago

Note that the debuginfo repos are also broken... they point to the last update before the pungi4 changes landed and have just a few mirrors. For example:

https://mirrors.fedoraproject.org/metalink?repo=rawhide-debug&arch=x86_64

pypingou commented 8 years ago

@nirik https://mirrors.fedoraproject.org/mirrorlist?repo=rawhide-debug&arch=x86_64 doesn't look too bad for me here, is it still problematic for you?

nirik commented 8 years ago

Dennis went and changed the directories in the admin web interface...

we still should fix it's detection perhaps so it knows them correctly.

pypingou commented 8 years ago

Hard to fix if we don't know the symptoms :-/

nirik commented 8 years ago

Yeah, I should have recorded what it was before it was changed. ;(

Perhaps we can test in stg?