Once CentOS is officially EOF (July 1, 2024) the mirrorlist repos are not available anymore.
If you plan to still using centos as LB you must to change virt-customize to fix the repo problem.
you must add those lines on virt-cutomize:
--run-command "sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo" \
--run-command "sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo" \
echo "====> Setting up Loadbalancer VM: "
virt-customize -a "${VM_DIR}/${CLUSTER_NAME}-lb.qcow2" \
--uninstall cloud-init --ssh-inject root:file:$SSH_KEY_PUB --selinux-relabel \
--run-command "sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo" \
--run-command "sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo" \
--install haproxy --install bind-utils \
--copy-in install_dir/bootstrap.ign:/opt/ --copy-in install_dir/master.ign:/opt/ --copy-in install_dir/worker.ign:/opt/ \
--copy-in "${CACHE_DIR}/${IMAGE}":/opt/ --copy-in tmpws.service:/etc/systemd/system/ \
--copy-in haproxy.cfg:/etc/haproxy/ \
--run-command "systemctl daemon-reload" --run-command "systemctl enable tmpws.service" || \
err "Setting up Loadbalancer VM image ${VM_DIR}/${CLUSTER_NAME}-lb.qcow2 failed"
Once CentOS is officially EOF (July 1, 2024) the mirrorlist repos are not available anymore.
If you plan to still using centos as LB you must to change
virt-customizeto fix the repo problem.you must add those lines on
virt-cutomize: