From f78bbc569975971d0579bb75de9a0c6aaca8f6ab Mon Sep 17 00:00:00 2001 From: Teoman ONAY Date: Thu, 16 Mar 2023 22:27:57 +0100 Subject: [PATCH] Remove all vagrant boxes Remove all existing vagrant boxes to prevent vagrant from using older ones Signed-off-by: Teoman ONAY --- tests/scripts/vagrant_up.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/scripts/vagrant_up.sh b/tests/scripts/vagrant_up.sh index f685b0566..7346f793b 100644 --- a/tests/scripts/vagrant_up.sh +++ b/tests/scripts/vagrant_up.sh @@ -3,6 +3,7 @@ if [[ "${CEPH_ANSIBLE_VAGRANT_BOX}" =~ "centos/stream" ]]; then EL_VERSION="${CEPH_ANSIBLE_VAGRANT_BOX: -1}" LATEST_IMAGE="$(curl -s https://cloud.centos.org/centos/${EL_VERSION}-stream/x86_64/images/CHECKSUM | sed -nE 's/^SHA256.*\((.*-([0-9]+).*vagrant-libvirt.box)\).*$/\1/p' | sort -u | tail -n1)" + vagrant box remove "${CEPH_ANSIBLE_VAGRANT_BOX}" --all --force || true vagrant box add --force --provider libvirt --name "${CEPH_ANSIBLE_VAGRANT_BOX}" "https://cloud.centos.org/centos/${EL_VERSION}-stream/x86_64/images/${LATEST_IMAGE}" --force fi -- 2.39.5