From: Loic Dachary Date: Wed, 23 Sep 2015 15:48:31 +0000 (+0200) Subject: openstack: clear the buildpackages directory on stop X-Git-Tag: 1.1.0~793^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F653%2Fhead;p=teuthology.git openstack: clear the buildpackages directory on stop 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 --- diff --git a/teuthology/openstack/openstack-teuthology.init b/teuthology/openstack/openstack-teuthology.init index 60e60486a..72c145fcf 100755 --- a/teuthology/openstack/openstack-teuthology.init +++ b/teuthology/openstack/openstack-teuthology.init @@ -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