From 889d0aba77fb79e3e34ad779456b8d3717c7a747 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 5 Feb 2019 21:58:16 +0100 Subject: [PATCH] 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 --- ceph-ansible-prs/build/build | 2 ++ ceph-ansible-prs/build/teardown | 3 +++ 2 files changed, 5 insertions(+) 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/* -- 2.47.3