]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-prs: clean fact cache in teardown 1249/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 5 Feb 2019 20:58:16 +0000 (21:58 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 5 Feb 2019 21:33:32 +0000 (22:33 +0100)
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 <gabrioux@redhat.com>
ceph-ansible-prs/build/build
ceph-ansible-prs/build/teardown

index 946e2fc2bf9c557ab5cb5cf251ef82e56387a713..7d3f90b7cdc774d2eee94943b149aa95c887d324 100644 (file)
@@ -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
index 350248e524d88f91e9dfd934189035bcf8d471ae..e4434d6483d6797e204086b42aee82c497e1c037 100644 (file)
@@ -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/*