#5959 Run report_mirror on download-ib01
Closed: Fixed Opened by adrian.

Not sure how download-ib01 is synced but after the sync report_mirror should be run to update the status of download-ib01 in MirrorManager.

download-ib01 consists of two hosts in MirrorManager and therefore requires two report_mirror check ins.


If I recall correctly it's using quick-fedora-mirror. I'm not sure if it's running a version which supports mirormanager checkin or if it's configured to actually do one, though. But even if it is, q-f-m doesn't yet have the capability to do separate checkins for some modules. That's something I'm working on currently and will hopefully have working soon.

Could someone tell me how the two mirrormanager entries for that host are actually set up? I was coding with the assumption that you would split archive and/or alt to separate hosts, but if that you split both out, they would be on different hosts. Coding for all of the possibilities can get kind of complicated, since each "host" according to mirorrmanager has to check in everything it has, not just the things that changed.

  • Host download-ib01.fedoraproject.org

    • Fedora Linux
    • Fedora Secondary Arches
  • Host download-ib01.fedoraproject.org-2

    • Fedora EPEL
    • Fedora Other

It sounds really difficult to prepare quick-fedora-mirror for all combinations. Each MirrorManager category should probably be submitted separately. But that is a quick-fedora-mirror topic.

To get download-ib01 report_mirror checkins the easiest would be to have two configuration files and run report_mirror twice (once for each configuration file).

But you can't submit mirrormanager categories separately, can you? It would be far easier for me to code it that way if it were possible, but when I asked I was told that a host had to do one checkin for everything it carried, and that a partial checkin would result in the host being marked as not having the content that's not present in that checkin.

If you can confirm that I'm mistaken about how it works then I can rather trivially code up separate checkins for each module with potentially different "mirrormanager hosts".

download-ib01 is using quick-mirror. It would be very handy I think to just be able to handle this case in the script and not have to setup other stuff.

@tibbs: I am pretty sure you can checkin each module separately. I am testing it right now with my mirror. My report_mirror configuration only has 'Fedora Linux' enabled but 'Fedora EPEL' and 'Fedora Secondary Arches' is not changed in my host in MirrorManager.

So according to some discussion on IRC, I can check in just one module (in rsync/q-f-m parlance) or category (in mirrormanager parlance) without messing with the other categories the host is carrying. Which is actually great news, because we then can only check in what changed, and the configuration gets much easier. It also means way less load on mirorrmanager because every change won't have me doing a full checkin.

So let me bang out some code, and then we can get it on download-ib01 and mark this as solved.

The code to handle the split checkin is now in q-f-m. You can set these variables:

CHECKIN_HOST_fedora_epel=download-ib01.fedoraproject.org-2
CHECKIN_HOST_fedora_alt=download-ib01.fedoraproject.org-2

and it should do the right thing, assuming you had already configured it to check in. Otherwise you'll also need to set CHECKIN_SITE, CHECKIN_PASSWORD and maybe CHECKIN_HOST if it's not equivalent to the output of 'hostname'.

This is now done. Seems to be checking in fine.

:dragon_face:

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

Metadata