From: Guillaume Abrioux Date: Tue, 5 Feb 2019 20:58:16 +0000 (+0100) Subject: ceph-ansible-prs: clean fact cache in teardown X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1249%2Fhead;p=ceph-build.git ceph-ansible-prs: clean fact cache in teardown This commit clean the fact cache after a run. Sometimes it might cause issue because ansible thinks the cache is valid in some cases making some tasks failing. Signed-off-by: Guillaume Abrioux --- diff --git a/ceph-ansible-prs/build/build b/ceph-ansible-prs/build/build index 946e2fc2b..7d3f90b7c 100644 --- a/ceph-ansible-prs/build/build +++ b/ceph-ansible-prs/build/build @@ -25,6 +25,8 @@ for scenario in $scenarios; do popd done popd +# In the same logic, clean fact cache +rm -rf $HOME/ansible/facts/* # stable-3.0 doesn't have ceph-volume and therefore doesn't support LVM scenarios. # Rather than running a bunch of conditional steps in the pipeline to check if diff --git a/ceph-ansible-prs/build/teardown b/ceph-ansible-prs/build/teardown index 350248e52..e4434d648 100644 --- a/ceph-ansible-prs/build/teardown +++ b/ceph-ansible-prs/build/teardown @@ -4,3 +4,6 @@ cd $WORKSPACE/tests # the method exists in scripts/build_utils.sh teardown_vagrant_tests + +# clean fact cache +rm -rf $HOME/ansible/facts/*