xci: Wipe repositories at the beginning of the deployment 23/57523/1
authorMarkos Chandras <mchandras@suse.de>
Thu, 17 May 2018 08:43:11 +0000 (09:43 +0100)
committerMarkos Chandras <mchandras@suse.de>
Thu, 17 May 2018 08:43:11 +0000 (09:43 +0100)
We should not wipe the repositories in the localhost playbooks since
it makes it somewhat hard to debug problems. We should do that at the
beginning of the deployment to ensure that we start without any stale
git data.

Change-Id: I70b2ac77284a9ca304d6aa68dbf1654f59260dc4
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/files/xci-destroy-env.sh
xci/playbooks/configure-localhost.yml

index 97b76c7..3de2179 100755 (executable)
@@ -21,6 +21,8 @@ rm -rf /opt/stack
 # HOME is normally set by sudo -H
 rm -rf ${HOME}/.config/openstack
 rm -rf ${HOME}/.ansible
+# Wipe repos
+rm -rf ${XCI_CACHE}/repos
 
 # bifrost installs everything on venv so we need to look there if virtualbmc is not installed on the host.
 if which vbmc &>/dev/null || { [[ -e ${XCI_VENV}/bifrost/bin/activate ]] && source ${XCI_VENV}/bifrost/bin/activate; }; then
index 5f091c9..5b64c78 100644 (file)
@@ -25,7 +25,6 @@
         state: absent
         recurse: no
       with_items:
-        - "{{ xci_cache }}/repos"
         - "{{ log_path }} "
         - "{{ opnfv_ssh_host_keys_path }}"