From 3f9c73748381e92bfd226a075effe43fc3af5c87 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 22 Nov 2019 07:38:09 +1100 Subject: [PATCH] Fedora mirror update: use localauth release Use the new vos_release user on the remote host to release the volume via localauth, to avoid any timeouts. Change-Id: I56ecdb2511597197deeeadf51f50da7e02f56954 Depends-On: https://review.opendev.org/#/c/695554/ --- playbooks/roles/mirror-update/files/fedora-mirror-update | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/mirror-update/files/fedora-mirror-update b/playbooks/roles/mirror-update/files/fedora-mirror-update index 87cb45caad..0fef6ca32a 100755 --- a/playbooks/roles/mirror-update/files/fedora-mirror-update +++ b/playbooks/roles/mirror-update/files/fedora-mirror-update @@ -37,6 +37,7 @@ BASE="/afs/.openstack.org/mirror/fedora" # https://pagure.io/releng/issue/7921 MIRROR="rsync://pubmirror2.math.uh.edu/fedora-buffet/fedora/linux" K5START="k5start -t -f /etc/fedora.keytab service/fedora-mirror -- ${TIMEOUT}" +VOS_RELEASE="ssh -i /root/.ssh/id_vos_release vos_release@afs01.dfw.openstack.org vos release " echo_ts "----- START FEDORA MIRROR RSYNC RUN -----" @@ -151,7 +152,7 @@ sleep $(( 20 * 60 )) date --iso-8601=ns | $K5START tee $BASE/timestamp.txt echo_ts "Running vos release." -k5start -t -f /etc/afsadmin.keytab service/afsadmin -- vos release -v $MIRROR_VOLUME | \ +$VOS_RELEASE $MIRROR_VOLUME | \ while IFS= read -r line; do echo_ts "$line"; done echo_ts "... done"