In Ubuntu, the archive configures backports as something you must
explicitly request when installing packages. One does this by specifying
a package name of 'backports/$packagename'. But our reprepro mirrors of
backports do not have this flag set, and so, all systems get backported
versions of packages, instead of the one from the released stable
archive.
Change-Id: I8f266dc7045e971567ed934d1206c7b83cacd178
We can't colocation debian and ubuntu - so allow for each having their
own pool independent pool structure.
Change-Id: I9fe0fa9769a5c0f6a852844b2db0dfb620e91375
The packages in restricted and multiverse are either non-free or
unsupported. While they're usually useful for desktop, they aren't
something that OpenStack should grow a dependency on.
Also remove non-free and contrib from debian. We don't do anything with
debian yet - but if we did, I'm pretty sure we would not want these.
Note: The existing restricted and multiverse dirs should be purged,
although it's not urgent to do so. 'reprepro --delete clearvanished'
Change-Id: I1d98ab1dea52598d01e3ce3d9a24306280a190fe
In the current setup, the reprepro db and lists dirs are being written
into /root. Move them into AFS so that we store all the data in the same
place.
Also, update the script to point to the confdir for reprepro commands.
Note: This will require a manual move of the current db and lists dirs
from /root to /afs/.openstack.org/mirror/apt before this is run.
Change-Id: I2638621e6af98296704e680227fae174d8a0e541
Options are space delimited, not = delimeted. Also, AFS reports space
differently, so skip the space available check.
Change-Id: I097bc43481ecfb64d0c95f08c82bd3ceb5bd6be9
The reprepro class in this is in-tree rather than in its own module
purely for ease of getting started. It's also highly hard-coded rather
than flexible.
This change will need a mirror.apt volume and service/reprepro principal
and keytab to be created before it lands.
Allow for pool trimming after a 2 hour delay. Each devstack run of
apt-get update should be able to be assumed to be valid for the length
of the devstack. For that reason, only delete files that are
unreferenced during the subsequent mirror run, ensuring at least a 2
hour delay between becoming unreferenced and going away.
Local testing indicates that a trusty mirror is 86G.
Change-Id: I84f6a0391f80e6bf567c4bfc18a41bd270fe8c01