aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2017-05-23 07:40:41 +0000
committerPeter Mikus <pmikus@cisco.com>2017-05-23 07:42:49 +0000
commit0bd1a1e649c66d3c1976ec07c06b3f759e78bb03 (patch)
tree49381bf307f8c4bdb31d810b99cd0801bc8408d9
parent0f2542f1bae6832503457d4b935783e2f1489746 (diff)
Modify garbage cleaning on VIRL
Decrease the threshold of old session directories and add cleaning of non-empty directories Change-Id: I77950065e5e09aaaf38cf2d9cb3f4c3f8cdcf58c Signed-off-by: Peter Mikus <pmikus@cisco.com>
-rw-r--r--resources/tools/testbed-setup/playbooks/01-host-setup.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml
index 93b2246ed8..fdf03b2f67 100644
--- a/resources/tools/testbed-setup/playbooks/01-host-setup.yaml
+++ b/resources/tools/testbed-setup/playbooks/01-host-setup.yaml
@@ -60,7 +60,7 @@
name: NFS scratch dir garbage collector
minute: 0
hour: 0
- job: "find /nfs/scratch/ -type d -mtime +14 -name 'session-*' -delete"
+ job: "find /nfs/scratch/ -type d -mtime +1 -name 'session-*' -exec rm -r "{}" \;"
- hosts: tg:sut
remote_user: testuser
sudo: yes