mirror-update: stop mirroring old atomic version

We should be past the point we need to mirror this any more.  magnum
has moved on even in the oldest victoria branch.

Stop mirroring and remove the old atomic directory.

[1] https://opendev.org/openstack/magnum/src/branch/stable/victoria/devstack/plugin.sh#L16

Change-Id: I43df5d7d4a827d2e8fc4483b65c4e00c13d53c77
This commit is contained in:
Ian Wienand 2023-03-06 15:23:49 +11:00
parent a5dd619e24
commit 2ca267af40
No known key found for this signature in database

View File

@ -38,7 +38,7 @@ echo_ts "----- START FEDORA MIRROR RSYNC RUN -----"
# Purge old releases
echo_ts "Purging old mirrors"
$K5START rm -rf $BASE/releases/34 $BASE/updates/34
$K5START rm -rf $BASE/atomic
for REPO in releases/35 releases/36 development/rawhide; do
if ! [ -f $BASE/$REPO ]; then
@ -96,32 +96,6 @@ for REPO in updates/35 updates/36; do
echo_ts "... done"
done
# Atomic is EOL but this particular image is used by magnum. We mirror
# only this specific version.
MIRROR="rsync://pubmirror2.math.uh.edu/fedora-buffet/alt/atomic/stable/Fedora-29-updates-20190820.0"
if ! [ -f $BASE/atomic/stable/Fedora-29-updates-20190820.0 ]; then
$K5START mkdir -p $BASE/atomic/stable/Fedora-29-updates-20190820.0
fi
echo_ts "Running rsync atomic..."
$K5START rsync -rltvz \
--delete \
--delete-excluded \
--exclude="testing/" \
--exclude="Atomic/" \
--exclude="ppc64le/" \
--exclude="images/*.raw.xz" \
--exclude="images/*.box" \
--exclude="images/*.iso" \
--exclude="images/efiboot.img" \
--exclude="images/install.img" \
--exclude="iso/*.iso" \
--exclude="os/EFI/BOOT/" \
--exclude="pxeboot/" \
--exclude="isolinux/" \
$MIRROR/ $BASE/atomic/stable/Fedora-29-updates-20190820.0/
echo_ts "... done"
# TODO(pabelanger): Validate rsync process
date --iso-8601=ns | $K5START tee $BASE/timestamp.txt