From 4641c1c00ea62efde4a7aa05dde331cc86c57faf Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 28 Sep 2020 16:12:13 -0700 Subject: [PATCH] Mirror the only Fedora Atomic image used by Magnum There is a single Fedora Atomic image used by Magnum at this point that we mirror. Lets mirror just that one image and then we can manually rm the others. Change-Id: I669247beb64bae41afddd0edce02c0b58e45aa6c --- .../roles/mirror-update/files/fedora-mirror-update | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/playbooks/roles/mirror-update/files/fedora-mirror-update b/playbooks/roles/mirror-update/files/fedora-mirror-update index e8b30a9311..40dd1afdc1 100755 --- a/playbooks/roles/mirror-update/files/fedora-mirror-update +++ b/playbooks/roles/mirror-update/files/fedora-mirror-update @@ -94,10 +94,12 @@ for REPO in updates/31 updates/32; do echo_ts "... done" done -MIRROR="rsync://pubmirror2.math.uh.edu/fedora-buffet/alt/atomic" +# 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 ]; then - $K5START mkdir -p $BASE/atomic +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..." @@ -106,10 +108,6 @@ $K5START rsync -rltvz \ --delete-excluded \ --exclude="testing/" \ --exclude="Atomic/" \ - --exclude="Fedora-Atomic-25-*/" \ - --exclude="Fedora-Atomic-26-*/" \ - --exclude="Fedora-Atomic-27-*/" \ - --exclude="Fedora-Atomic-28-*/" \ --exclude="ppc64le/" \ --exclude="images/*.raw.xz" \ --exclude="images/*.box" \ @@ -120,7 +118,7 @@ $K5START rsync -rltvz \ --exclude="os/EFI/BOOT/" \ --exclude="pxeboot/" \ --exclude="isolinux/" \ - $MIRROR/ $BASE/atomic/ + $MIRROR/ $BASE/atomic/stable/Fedora-29-updates-20190820.0/ echo_ts "... done" # TODO(pabelanger): Validate rsync process