|
|
0591d7 |
# CentOS Mirror managements SOP
|
|
|
0591d7 |
|
|
|
0591d7 |
Depending on the CentOS version, (8-stream, 7 or 9-stream), yum/dnf repositories on client machines are configured to either use `mirrorlist.centos.org` or `mirrors.centos.org`.
|
|
|
0591d7 |
`mirrors.centos.org` is an alias to mirrors.fedoraproject.org and so is a MirrorManager instance hosted by Fedora infra team. Let's see which process to follow when we get a ticket (see [Howto on the wiki](https://wiki.centos.org/HowTos/CreatePublicMirrors) ) to add/remove/modify a mirror entry in corresponding DB.
|
|
|
0591d7 |
|
|
|
0591d7 |
## CentOS Stream 9
|
|
|
0591d7 |
|
|
|
0591d7 |
When we get a new request for CentOS Stream 9 mirror, the process goes like this :
|
|
|
0591d7 |
|
|
|
0591d7 |
* ticket is reviewed by infra-and-releng team and tagged with `mirrormanager` label
|
|
|
0591d7 |
* assignee should :
|
|
|
0591d7 |
* verify that mirror isn't located at GeoIP level from an [embargoed country](https://www.centos.org/legal)
|
|
|
0591d7 |
* verify that provided URLs (http/https and - optional - rsync) are working
|
|
|
0591d7 |
* follow the link to that mirror in mirrormanager (needs `sysadmin-web` FAS group membership)
|
|
|
0591d7 |
* add the `CentOS` category and then add the URLs
|
|
|
0591d7 |
* update ticket with info and close
|
|
|
0591d7 |
|
|
|
0591d7 |
## CentOS Linux 7 and 8-stream
|
|
|
0591d7 |
|
|
|
0591d7 |
When we get a new request for CentOS Linux 7 or 8-stream, the process goes like this :
|
|
|
0591d7 |
|
|
|
0591d7 |
* ticket is reviewed by infra-and-releng team and tagged with `mirror-linux` label
|
|
|
0591d7 |
* assignee should :
|
|
|
0591d7 |
* verify that mirror isn't located at GeoIP level from an [embargoed country](https://www.centos.org/legal)
|
|
|
0591d7 |
* verify that provided URLs (http/https and - optional - rsync) are working
|
|
|
0591d7 |
* update ticket with info and close
|
|
|
0591d7 |
|
|
|
0591d7 |
|
|
|
0591d7 |
### Adding new mirror
|
|
|
0591d7 |
To help with these steps, there is a simple wrapper/helper script on the machine behind https://mirror-status.centos.org.
|
|
|
0591d7 |
It will run some pre-flights checks and output the SQL statements to copy/paste into mysql to add the new mirror in mirmon DB.
|
|
|
0591d7 |
|
|
|
0591d7 |
The process to launch, when one has a shell on the mirmon node, is `/var/lib/centos-mirrors/mirror-geo-check.py`
|
|
|
0591d7 |
Follow the steps and then copy/paste mysql statement into mysql (against mirmon database)
|
|
|
0591d7 |
|
|
|
0591d7 |
|
|
|
0591d7 |
### Updating existing mirror
|