]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
openstack: clear the buildpackages directory on stop 653/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 23 Sep 2015 15:48:31 +0000 (17:48 +0200)
committerLoic Dachary <ldachary@redhat.com>
Fri, 9 Oct 2015 16:00:55 +0000 (18:00 +0200)
When running /etc/init.d/teuthology stop, all OpenStack resources are
destroyed, including the instance hosting the repository where the
buildpackages task artefacts are archived. Remove /tmp/stampsdir so that
everything gets rebuilt.

Signed-off-by: Loic Dachary <loic@dachary.org>
teuthology/openstack/openstack-teuthology.init

index 60e60486a952a427b3f2ccddb489708d3b3eca7d..72c145fcff3c03b1953d795c7af552bf8e9a43d3 100755 (executable)
@@ -73,7 +73,7 @@ case $1 in
                     while read uuid ; do
                     eval openstack server delete $uuid
                 done
-                rm -fr /home/$user/src/*
+                rm -fr /home/$user/src/* /tmp/stampsdir
                 ;;
         restart)
                 $0 stop