Stop updating and delete OpenEuler mirror content

It's been months since we announced a need for caretakers of
OpenEuler images in
https://lists.opendev.org/archives/list/service-discuss@lists.opendev.org/thread/ZLZ7OUFAOAZ7OS2PO2MHGJJKOBYVWB3G
to no avail, and image builds were paused for many months before
that due to being broken by mirror updates last year. Now we're
months past the switch off Nodepool and no longer have any OpenEuler
images to boot anyway.

A followup change will clean up the related support infrastructure
and delete cronjobs and keytabs from the server.

Change-Id: I63eaccb4cd7fb46f2df0ea68998d1a84fd1e95b2
This commit is contained in:
Jeremy Stanley
2025-09-17 17:51:12 +00:00
parent 9a8f2e5f7f
commit a6c0caa76c

View File

@@ -33,47 +33,12 @@ BASE="/afs/.openstack.org/mirror/openeuler"
K5START="k5start -t -f /etc/openeuler.keytab service/openeuler-mirror -- $TIMEOUT"
# Cleanup old repos
for REPO in openEuler-22.03-LTS ; do
for REPO in openEuler-24.03-LTS ; do
if [ -d $BASE/$REPO/ ]; then
$K5START rm -rf $BASE/$REPO/
fi
done
# Using a foreign mirror to rsync quickly.
# For a whole mirror list see https://www.openeuler.org/en/mirror/list/.
# 119.8.63.103 is the openEuler official mirror in HongKong
MIRROR="rsync://119.8.63.103:873/openeuler"
REPOS="openEuler-24.03-LTS"
for REPO in $REPOS; do
if ! [ -f $BASE/$REPO ]; then
$K5START mkdir -p $BASE/$REPO
fi
date --iso-8601=ns
echo_ts "Running $REPO rsync..."
$K5START rsync -rltvz \
--delete \
--delete-excluded \
--exclude="ISO/" \
--exclude="images/" \
--exclude="isolinux/" \
--exclude="debuginfo/" \
--exclude="docker_img/" \
--exclude="edge_img/" \
--exclude="embedded_img/" \
--exclude="loongarch64/" \
--exclude="ppc64le/" \
--exclude="raspi_img" \
--exclude="riscv64/" \
--exclude="source/" \
--exclude="stratovirt_img/" \
--exclude="virtual_machine_img/" \
--exclude="WSL/" \
$MIRROR/$REPO/ $BASE/$REPO/
echo_ts "$REPO rsync done."
done
date --iso-8601=ns | $K5START tee $BASE/timestamp.txt
echo_ts "rsync completed successfully, running vos release."
vos_release $MIRROR_VOLUME