From 329764fba9292427ab3d4bf764a96623a19e4944 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Fri, 22 Jul 2022 10:20:04 -0400 Subject: [PATCH] Ansible: add playbook to delete the .lttng folder of the jenkins user The lttng-tools jobs currently do not use a custom LTTNG_HOME thus lttng-sessiond uses /home/jenkins/.lttng as its rundir. Files in this directory might not be always cleanup-up by lttng-sessiond during testing. Normally this is not a problem but it is if someone (me) is playing with the permissions of those files (lttng-sessiond side) and end up setting a read only permissions for the user. This prevent subsequent jobs from opening and overwriting the value of the files if they are already present. Removing the directory solves the problem for the CI infra. Signed-off-by: Jonathan Rajotte Change-Id: I102cd46368654999bd3d814dd0e09180700a129f --- automation/ansible/playbooks/delete-dot-lttng.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 automation/ansible/playbooks/delete-dot-lttng.yml diff --git a/automation/ansible/playbooks/delete-dot-lttng.yml b/automation/ansible/playbooks/delete-dot-lttng.yml new file mode 100644 index 0000000..3ab84bb --- /dev/null +++ b/automation/ansible/playbooks/delete-dot-lttng.yml @@ -0,0 +1,9 @@ +--- +- name: Delete .lttng folder for the jenkins user + hosts: all + + tasks: + - name: delete .lttng folder + file: + path: /home/jenkins/.lttng + state: absent -- 2.34.1