Start using read/write AFS volume for PyPI mirror

The vos release on AFS for PyPI is in a bad place emotionally right now.
So as not to stress it out too much more, stop vos releasing until we
can get it fixed. Also, point the AFS client mirrors to the read/write
path instead of the read only path so that the gate can get PyPI updates
again.

Change-Id: I5d9ac9cc56c16dacad22c1da157cad7f5480c301
This commit is contained in:
Monty Taylor 2016-05-04 11:39:24 -05:00 committed by Yolanda Robla
parent 75f069ee0f
commit 4e5a0dc458
3 changed files with 5 additions and 3 deletions

View File

@ -582,6 +582,7 @@ node /^mirror\..*\.openstack\.org$/ {
class { 'openstack_project::mirror':
vhost_name => $::fqdn,
pypi_root => '/afs/.openstack.org/mirror/pypi',
require => Class['Openstack_project::Server'],
}
}

View File

@ -19,7 +19,8 @@ set -e
echo "Obtaining bandersnatch tokens and running bandersnatch."
k5start -t -f /etc/bandersnatch.keytab service/bandersnatch -- timeout -k 2m 30m run-bandersnatch
echo "Bandersnatch completed successfully, running vos release."
k5start -t -f /etc/afsadmin.keytab service/afsadmin -- vos release -v mirror.pypi
# TODO(mordred): Re-enable this once vos release is running again
#echo "Bandersnatch completed successfully, running vos release."
#k5start -t -f /etc/afsadmin.keytab service/afsadmin -- vos release -v mirror.pypi
echo "Done."

View File

@ -1,11 +1,11 @@
# == Class: openstack_project::mirror
#
class openstack_project::mirror (
$pypi_root = "${mirror_root}/pypi",
$vhost_name = $::fqdn,
) {
$mirror_root = '/afs/openstack.org/mirror'
$pypi_root = "${mirror_root}/pypi"
$wheel_root = "${mirror_root}/wheel"
$npm_root = "${mirror_root}/npm"
$ceph_deb_hammer_root = "${mirror_root}/ceph-deb-hammer"