tools/centos-mirror-tools/yum.repos.d
Scott Little ae68691bf0 Enable starlingx mirror
StarlingX needs to download a variety of rpms and tarballs
from various upstream sources.  Unfortunately the upstream sources
are not always dependable. Either servers go down, are unreachable,
or drop older content that we still depend on.

Our proposed solution is to run our own mirror to capture an
independent copy of the content needed by StarlingX.
For this purpose, a server has been set up at
http://mirror.starlingx.cengn.ca/mirror/centos

The mirror will use deterministic paths derived from the upstream
urls.  Scripts will be used to convert an upstream url to
the mirror's equivalent url (see function url_to_stx_mirror_url in
url_utils.sh)

The mirror will be refreshed daily.  New .lst entries will be
processed at that time.  Processing of changes under yum.repos.d
is not automated by this update.  Expect a follow-up update to
address this issue soon.  These scripts are found under the
'stx_mirror_scripts' subdirectory.

Changes are made to the download_mirror.sh script, and it's
supporting scripts.  New arguments have been added to each
script to select the download source.
   -s  StarlingX mirror only
   -S  StarlingX mirror, with upstream source as backup
   -u  Upstream source only
   -U  Upstream source, with StarlingX mirror as backup

You do not need to provide any of these flags.  Continue to
us download_mirror.sh as you always have.  The default
behavior is currently set to '-S', i.e. first try the
StarlingX mirror, with upstream source as backup.
If this proves to place to heavy a load on the existing
server, we might switch the default to '-U', i.e. first
try the upstream source, with StarlingX mirror as backup.
If poor download performance is seen, you might want to try
explicitly adding -U as an argument.

The remaining two options are not recommended for regular use.
Upstream only, i.e. '-u', restores original behaviour, but
you may once again encounter rpms that have aged out, and
been removed from their original repos.  StarlingX only,
i.e. '-s', is vulnerable if a .lst file has been updated,
but the mirror has not yet processed it.

Change-Id: I7e0f3d9fb99253662f9f4bf12457d39250408c0b
Story: 2003906
Task: 26785
Signed-off-by: Scott Little <scott.little@windriver.com>
2018-11-02 13:33:00 -04:00
..
StarlingX-Centos-7.2.repo Enable starlingx mirror 2018-11-02 13:33:00 -04:00
StarlingX-Centos-7.3.repo Enable starlingx mirror 2018-11-02 13:33:00 -04:00
StarlingX-Centos-7.4.repo Enable starlingx mirror 2018-11-02 13:33:00 -04:00
StarlingX-Centos-7.5.repo Switch kubernetes-1.10.0-1.el7.src.rpm from 3rd-party download to centos_repo 2018-08-11 01:30:58 +08:00
StarlingX-EPEL-7.repo Enable starlingx mirror 2018-11-02 13:33:00 -04:00
StarlingX_3rd_buildlogs-seed_centos_org.repo Split and move repo data files to yum.repo.d subdirectory. 2018-08-07 16:48:16 -04:00
StarlingX_3rd_buildlogs_centos_org.repo Split and move repo data files to yum.repo.d subdirectory. 2018-08-07 16:48:16 -04:00
StarlingX_3rd_download_docker_com.repo Split and move repo data files to yum.repo.d subdirectory. 2018-08-07 16:48:16 -04:00
StarlingX_3rd_epel_blizoo_mk.repo Split and move repo data files to yum.repo.d subdirectory. 2018-08-07 16:48:16 -04:00
StarlingX_3rd_ftp_iij_ad_jp.repo Split and move repo data files to yum.repo.d subdirectory. 2018-08-07 16:48:16 -04:00
StarlingX_3rd_linuxsoft_cern_ch.repo Updating python2-pysocks version and mirror for kernel-rt 2018-10-24 15:05:37 +00:00
StarlingX_3rd_www_rpmfind_net.repo Split and move repo data files to yum.repo.d subdirectory. 2018-08-07 16:48:16 -04:00
StarlingX_CentOS-OpenStack-queens.repo Remove contentdir var from openstack queens repo 2018-08-23 18:49:58 +00:00