Fix: Remove deprecated mirror repos 44/73444/3 master v0.16.7
authorKevin Sandi <ksandi@contractor.linuxfoundation.org>
Mon, 7 Apr 2025 22:18:16 +0000 (16:18 -0600)
committerKevin Sandi <ksandi@contractor.linuxfoundation.org>
Tue, 8 Apr 2025 17:58:28 +0000 (11:58 -0600)
Signed-off-by: Kevin Sandi <ksandi@contractor.linuxfoundation.org>
Change-Id: I2d2b13958545a32216c3d2d82b108a06504890d3

.github/workflows/gerrit-verify.yaml
provision/install-python.sh

index 5cccdc3..2943c94 100644 (file)
@@ -120,7 +120,7 @@ jobs:
         if: steps.changes.outputs.src == 'true'
         shell: bash
         run: |
         if: steps.changes.outputs.src == 'true'
         shell: bash
         run: |
-          echo "${{ secrets.CLOUDS_ENV_B64 }}" | base64 --decode \
+          echo "${{ secrets.CLOUD_ENV_B64 }}" | base64 --decode \
                   > "${GITHUB_WORKSPACE}/cloud-env.pkrvars.hcl"
       - name: Create cloud.yaml file for openstack client
         id: create-cloud-yaml-file
                   > "${GITHUB_WORKSPACE}/cloud-env.pkrvars.hcl"
       - name: Create cloud.yaml file for openstack client
         id: create-cloud-yaml-file
index 76a83aa..71a130b 100755 (executable)
@@ -104,6 +104,11 @@ if is_ubuntu; then
 fi
 
 if is_centos8; then
 fi
 
 if is_centos8; then
+    echo "Clean up deprecated repos"
+    sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo
+    sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo
+    sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo
+
     echo "Install python38"
     dnf clean all
     dnf install -y python38
     echo "Install python38"
     dnf clean all
     dnf install -y python38