system-config/modules/openstack_project/files/bandersnatch-mirror-update.sh
Monty Taylor 4e5a0dc458 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
2016-05-05 07:44:35 +02:00

27 lines
987 B
Bash

#!/bin/bash
# Copyright 2016 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
set -e
echo "Obtaining bandersnatch tokens and running bandersnatch."
k5start -t -f /etc/bandersnatch.keytab service/bandersnatch -- timeout -k 2m 30m run-bandersnatch
# 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."