From: Guillaume Abrioux Date: Mon, 14 Dec 2020 09:03:33 +0000 (+0100) Subject: tests: force box removal X-Git-Tag: v6.0.0alpha4~10 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=011c97786bc08e306267b6cc4374e0f9df6cb416;p=ceph-ansible.git tests: force box removal This avoids interactive mode for `vagrant box remove`. This can happen for some reason when there's leftover from previous deployment (VMs not destroyed as expected) Signed-off-by: Guillaume Abrioux --- diff --git a/tests/scripts/vagrant_up.sh b/tests/scripts/vagrant_up.sh index edcb609a5..df8b3fb04 100644 --- a/tests/scripts/vagrant_up.sh +++ b/tests/scripts/vagrant_up.sh @@ -1,7 +1,7 @@ #!/bin/bash -vagrant box remove --provider libvirt --box-version 1905.1 centos/8 || true -vagrant box remove --provider libvirt --box-version 0 centos/8 || true +vagrant box remove --force --provider libvirt --box-version 1905.1 centos/8 || true +vagrant box remove --force --provider libvirt --box-version 0 centos/8 || true vagrant box add --provider libvirt --name centos/8 https://cloud.centos.org/centos/8/vagrant/x86_64/images/CentOS-8-Vagrant-8.3.2011-20201204.2.x86_64.vagrant-libvirt.box || true retries=0