Commit Graph

67 Commits

Author SHA1 Message Date
Ian Wienand 45201f3d66 Remove puppet mirror support
Remove the separate "mirror_opendev" group and rename it to just
"mirror".  Update various parts to reflect that change.

We no longer deploy any mirror hosts with puppet, remove the various
configuration files.

Depends-On: https://review.opendev.org/728345
Change-Id: Ia982fe9cb4357447989664f033df976b528aaf84
2020-05-16 10:14:25 +10:00
Tobias Urdin de519d5617 Mirror Ceph Nautilus for Debian based
Ceph Nautilus is released and the official mirror
is available. This adds the Ceph Nautilus mirror
so we can sync it for Stretch and Bionic.

Based on the same change that was done when Mimic
was released [1]

[1] https://review.opendev.org/#/c/571989/

Change-Id: I9424d1f4df58acde8ea70dc16283d4de89189bae
2019-10-24 09:07:30 +11:00
Monty Taylor e69c7b7fb9 Rename review.openstack.org to review.opendev.org
There are many references to review.openstack.org, and while the
redirect should work, we can also go ahead and fix them.

Change-Id: I28f398796a6392a3dffea1d25cfe2ae3a36a3589
2019-05-09 14:38:51 +00:00
Ian Wienand 5acef2c004 Remove pypi symlink
Remove the pypi symlink from the mirrors in preparation for volume
removal

Change-Id: I0f1265857e204616e5e342afe764ff3a0215c4fe
Needed-By: https://review.openstack.org/618326
2018-11-22 16:14:12 +11:00
Zuul c057ec734b Merge "Revert "Remove mariadb link from mirrors"" 2018-08-16 00:33:15 +00:00
Zuul 044f25d101 Merge "Remove mariadb link from mirrors" 2018-08-14 21:57:47 +00:00
Zuul 6bbc01e7c0 Merge "Increase apache mirror cache to 70GB" 2018-07-05 18:46:34 +00:00
Ian Wienand 94ad759b2e More minor debian-security mirror fixes
As a follow-on to Ic33bca431ae19b44e5bc2938de425cc68785b331
... (reprepro configuration really is quite inscrutable outside "try
it and see if it works")

The update is just called "debian-security", no codename.

We want to use the debian-security key to validate the gpg signatures,
update that.

Use the "updates" suite, which seems to be where debian-security is

Add the symlink for mirror

Change-Id: Ice2a06f4274cdad766f427df70d9fe3e92f62e8c
2018-06-26 20:15:55 +10:00
Ian Wienand 32fe68f677 Revert "Remove mariadb link from mirrors"
This reverts commit a4f91315d5.

Change-Id: I0d075868f88dbde4d2e951b692ba2e7b9aed5cd7
2018-06-26 09:31:11 +10:00
Ian Wienand a4f91315d5 Remove mariadb link from mirrors
In I30bd6b658d87abc765b5caee5003e387981850b4 I missed that this one
symlink should be removed by puppet as it is on all mirror hosts.  We
can then remove this after puppet has run.

Change-Id: I37f52b0ed012ad680eb86f8905764a1c78212148
2018-06-26 09:29:37 +10:00
Mohammed Naser 3338761d3b Drop ubuntu-mariadb mirror
The mirror was put in place for OpenStack Ansible however the project
is not consuming it anymore.  In the parent change of this commit, the
addition of a reverse proxy cache will be used instead in the project
and it will allow usage across all distributions.

Change-Id: I30bd6b658d87abc765b5caee5003e387981850b4
2018-06-21 20:20:41 -04:00
Clark Boylan 8fa6a57462 Increase apache mirror cache to 70GB
We expect at least 100GB of disk available for the apache mirror caches
we run in each region. However, due to htcacheclean lagging apache's
ability to cache we cleaned up to 50GB to give us breathing room. Since
then we have reorganized the cache layout so that htcacheclean can
operate more quickly and don't need as much breathing room.

Increase this cache size value up to 70GB which still gives us a
conservative ~30GB or so of breathing room. We can continue to increase
this number if htcacheclean keeps up.

Change-Id: I8a13a5876cea930c5d981af2c7cd6ab36ba867fb
2018-06-14 11:21:31 -07:00
Tobias Urdin 046e793cd4 Mirror Ceph Mimic for Debian based
Ceph Mimic is now release and the official mirror
is available. This adds the Ceph Mimic mirror so we
sync the version for Stretch, Xenial and Bionic.

Change-Id: Id358d657b6d1daed3bc72447fa94aef198928e50
2018-06-03 23:20:49 +02:00
Emmet Hikory 011121b073 Add ARM64 Ubuntu mirror
Change-Id: Icdc38691b76fa9418ebd318710b73526e210ca48
2018-02-21 14:52:30 -05:00
Paul Belanger 688da7f0a5
Revert "Reduce apache reverse proxy cache to 40GB"
We are in the process of remove tripleo-test-cloud-rh1 and no longer
running jobs there. So we can start to increase our proxy cache again.

This reverts commit 5fed4c4c4c.

Change-Id: I94ec544c9a8ef3e4eed77635e736031207401be0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-01-30 12:06:49 -05:00
Emilien Macchi 83e0374dfa Revert "Revert "Add Puppetlabs mirror for CentOS7""
This reverts commit 9595c560a3.

Change-Id: I804b9ae0505b5f6088ec9cb9a9cb44fcd2c10da3
2018-01-25 17:17:04 +11:00
Ian Wienand 9595c560a3 Revert "Add Puppetlabs mirror for CentOS7"
This reverts commit 81174cce67.

Change-Id: I9b4132ec2b2389410b49b15b7b2d78f43c552929
2018-01-24 14:16:29 +11:00
Emilien Macchi 81174cce67 Add Puppetlabs mirror for CentOS7
Change-Id: I8a4f488f5a72878b81eec476213e12539071913b
2018-01-04 12:07:04 -08:00
Emilien Macchi eee900890d Add Puppetlabs mirror for Ubuntu Xenial
Change-Id: Ibf5bd302b121abd64b3c74a6ec0cf8fecc455e6b
2018-01-03 17:19:41 -08:00
Ian Wienand 7ace3799f1 Remove npm mirroring components
The npm mirror was removed with
Id539d336814cce2ce18898526e561b8b6977f62f.  This change is "inspired"
by a proposed puppet-nodejs update in
Ia7966fb9578d0d79f3a7f9480e3a956555737dc8.  Rather than fixing it up
for the new version, remove it (also, puppet is failing trying to
access /afs/.openstack.org/mirror/npm).

I believe the npmrc.erb file is actually a vestige of prior release
methods and is also no longer required.

Change-Id: I6fa48e4700779d2c90194f0129c770bf2d6d865f
2017-12-15 10:25:18 +11:00
Ian Wienand 3ca72939bc Revert "Switch to RW afs mirror"
This reverts commit 1eb7cc27c3.

Switch back to the RO mirror as we believe it to be in a good state,
and it has been released.

Change-Id: Id850ab5c06dc237395bf3d5e008c5c23c3d470c1
2017-10-13 13:43:11 +11:00
James E. Blair 1eb7cc27c3 Switch to RW afs mirror
We want to temporarily test a reconstructed ubuntu mirror before
vos releasing it.

Change-Id: I32bd2297dc2a320e69fb54c27bec1700a9963218
2017-10-12 18:10:54 -07:00
Mohammed Naser 1c338227fa
Add Ceph Luminous Debian mirrors
Change-Id: I60177c4783f5e0695ba4466fdbd181130b5934c1
2017-09-27 10:01:23 -04:00
Paul Belanger 5fed4c4c4c
Reduce apache reverse proxy cache to 40GB
We only have 100GB disk for tripleo-test-cloud-rh1, between AFS and
apache cache, we've filled the disk.  Drop down to 40GB until
tripleo-test-cloud-rh1 is removed, then we can revert.

Change-Id: I6e3d1b6f3202b375853919d1920bd945fe035855
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-09-21 11:45:15 -04:00
Ian Wienand 50afc033aa Add mirror01.iad.rax.o.o
This is a new Xenial-based mirror in the RAX IAD region

Add munging to have a serveralias for numerically named servers

Change-Id: I5690e231a53a45e33bd925cd1a4a87ffa025af04
2017-08-17 07:25:34 +10:00
Paul Belanger 6519fd18e9 Force delete /opt/apache_cache
This folder still exists on some of our mirrors, force delete it since
puppet complains.

  Aug 12 15:42:47 mirror puppet-user[14127]: (/Stage[main]/Openstack_project::Mirror/File[/opt/apache_cache]) Not removing directory; use 'force' to override

Change-Id: I02240c3bcd315e206f22351cbe40ea4fd34fb3c0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-12 12:07:51 -04:00
Paul Belanger af620b0b9d Reduce htcacheclean to 50GB
Right now rax-ord is are busiest mirror, however it appears to be on a
slow cinder volue.  Right now, our proxy cache is full, because we don't
have enough buffer between min / max.

Change-Id: I07117808e47fec5b7dd9ab385ace9dc1f3abe261
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-11 14:31:50 -04:00
Ian Wienand 1a63647da6 Run htcacheclean under lock
Users reported timeouts in citycloud lon1 jobs, upon logging into
mirror.lon1.citycloud.openstack.org I found it with a load average of
> 100 and htcacheclean going bananas

ianw@mirror:~$ ps -aef | grep htcacheclean | wc -l
172

I/O on this node seems extremely slow.  My guess is that the
htcacheclean's started piling up creating a big negative feedback loop.

Run this under a lock so at least we only have one running at a time.

Change-Id: I584ff99bfbb08a4c0d8ae7c8531b7c3357ebcd43
2017-08-10 21:29:09 +10:00
Jeremy Stanley 60524e49d8 Increase per-region caching proxy capacity
We want to start caching Kolla registry tarballs, but these
presently range upward of 4GiB each and need around 50GiB of
aggregate cache space. As a result, we'll increase the max cached
file size from 100MiB to 5GiB and the max cache content from 2GiB to
80GiB to support this.

Change-Id: Ic6e4ae6b44f134bce8a8873f6e4d4517f9d30e14
2017-07-10 21:08:13 +00:00
Jeremy Stanley 3c2d741e8b Move the per-region proxy caches into /var/cache
New volumes have been mounted at /var/cache/apache2 on our
per-region mirror instances and proxy sibdirectories warmed with
content from the old /opt/apache_cache directories. Switch to using
the newer locations and remove the old ones to free up space on root
filesystems.

Change-Id: I8834ee2098ed4d2b2bfb7d08784db5ba9f034efa
2017-07-10 21:06:17 +00:00
Jenkins 5e0ac4038d Merge "Add reprepro for docker" 2017-05-03 13:35:28 +00:00
Paul Belanger 93be2fd82e
Add reprepro for docker
Add the bits needed to mirror apt.dockerproject.org into
openstack-infra.

Change-Id: Id8b34407fcc5b1705f3db17a5fc26a4a79034baa
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-03 09:21:42 -04:00
Paul Belanger 2b54564fab Remove RDO AFS mirror
Sadly, RDO changes too much for us to mirror.  However, we have setup
a reverse proxy cache, so jobs are now using it.

Once landed, I'll remove the volume from AFS.

Change-Id: I249ba3719096aa24fab00fe6c660409a78168f23
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-09 14:45:57 -04:00
Jenkins ba3c607e2d Merge "Run htcacheclean to clean mirror caches" 2017-04-03 20:08:39 +00:00
Clark Boylan dbae6afeda Run htcacheclean to clean mirror caches
Now that we have reverse proxy caching on our mirror nodes set up
htcacheclean to run their hourly and reduce the size of the cache to
2GB. Based on using the cache lightly for a few days the max size of the
cache has been 648MB so 2GB should be plenty of headroom while still
being well under available disk on our mirror nodes.

Change-Id: I3fe41a3de669d08966357e10d4c121caa9bab6d4
2017-04-03 11:06:31 -07:00
Paul Belanger 4b1802fe26 Mirror rdo centos7 repo to AFS
Recently https://trunk.rdoproject.org enabled rsync, which allows us
to now mirror them.  Start with the centos7 repo before dealing with
stable branches.

Change-Id: I942ad30b1026554b1a1c8309b1725d76e7870c7f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-03 11:16:38 +10:00
Jenkins 21ce191d23 Merge "Mirror openSUSE Leap 42.2 repositories" 2017-04-03 01:09:57 +00:00
Paul Belanger 9108e18c5f Move proxy reverse cache to port 8080
As not to affect rewrite rules for our AFS mirrors, move caching to
port 8080. Also means we can more easily identify traffic.

Add missing setting for SSL support and http proxy. Note, mod ssl is
already enabled by puppet-httpd.

Change-Id: I4b3a13ff3ec2e1045ade18fc21741cba9e28f117
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-30 13:34:49 -04:00
Clark Boylan f27298869c Use caching reverse proxy for rdo repos
We can't sanely mirror the rdo packages beacuse they are constantly
updating. Instead put a caching reverse proxy in front of the repos in
each region on our existing mirror servers. This should allow us to get
region local data that is "hot" and hopefully improve reliability to the
rdo repos.

Change-Id: I6ab810f7b6788459da1cee00baf6b053f31843cf
2017-03-29 13:42:29 -07:00
Paul Belanger 1002b90018 Fix ubuntu-mariadb link in mirror.pp
Change-Id: I9889b4b260457d3e42b46f67797289bb10419c6e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-03-02 13:36:18 -05:00
Dirk Mueller 5435ae69e8 Mirror openSUSE Leap 42.2 repositories
Change-Id: Id3fad9ab92ac913f0f31a71873c8f85e14828796
2017-02-22 20:45:23 +01:00
Paul Belanger a953d095ca Add Fedora mirror to AFS
This has been on my list for some time, since we run fedora jobs in
the gate, we should also mirror this infra too.

Change-Id: I523bf263b5f9455ee51a712fc97cde3f8daeba80
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-01-11 11:21:44 -05:00
Emilien Macchi 8829fc8a69 Added Gem Mirror to Infra
This patch adds a static, read-only gem mirror to openstack-infra's regional
mirrors under the /gem path.

Change-Id: I2f67fe01d32c4472ff56862b9dc25b9915a695c0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-12-13 20:16:19 -05:00
Paul Belanger 2391536525
Update logrotate for mirror server
Since this is currently unmanaged by openstack-infra, the default is
to rotate logs every week, 52 times.  Needless to say, we are running
out of HDD space.  Now we rotate every day, 7 times.  This will cut
down on the amount of HDD space apache2 logs require.

Change-Id: I7baf62a36432f5d322e7f63e8c89bd6205974ca8
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-08-18 20:04:54 -04:00
Jesse Pretorius afa38f2a45
OpenStack-CI Apt mirror for MariaDB
This patch adds a mirror for MariaDB packages. The releases
mirrored is selective, only covering the currently supported
Ubuntu and MariaDB versions for OpenStack-Ansible.

Having this mirror available aids deployment projects which
consume these packages by ensuring that all apt packages needed
are available in mirror local to the nodepool cloud provider.

Change-Id: Ic549bbbd4f5dafc6555174f3ef3bd713b9a727d4
2016-07-21 12:20:00 -04:00
Jenkins 3a11ed3f07 Merge "Debian Jessie to AFS mirrors" 2016-07-20 18:14:59 +00:00
Paul Belanger c85859ca2d
Add debian-ceph-jewel mirror to AFS
As more teams will be switching to jewel from hammer, we also need to
provide a debian mirror for it.

Change-Id: I0f5097672c0afd092380d841c665c3fdfa25f280
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-07-19 13:58:27 -04:00
Paul Belanger f21939340c
Debian Jessie to AFS mirrors
So project using debian-jessie DIB can benefit from our AFS infra.

Change-Id: I30206d6802120f5b89f58f1c1dc3548515fcef76
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-07-18 15:51:16 -04:00
Paul Belanger 1aba2377a6
Add debian-openstack to AFS web mirrors
Change-Id: Ia4c3d41d209f7782baaa432ae36957eb4b90264c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-07-11 10:22:45 -04:00
Jesse Pretorius 0f291dc788 OpenStack-CI Apt mirror for Ubuntu Cloud Archive
This patch adds a mirror for Ubuntu Cloud Archive. The releases
mirrored is selective, only covering the currently supported
Ubuntu and OpenStack versions.

Having this mirror available aids deployment projects which
consume these packages by ensuring that all apt packages needed
are available in mirror local to the nodepool cloud provider.

Note:
I have no real understanding of how puppet/system-config works
and don't know how to test this patch. If there's no
system-config gate check to validate that this works, please can
someone assist by testing and providing feedback.

Change-Id: Id658f2f29ce4a42eee2ef1ecdf935ada882da51e
2016-06-17 11:44:14 +01:00