From: Kyr Shatskyy Date: Wed, 6 Mar 2019 17:11:13 +0000 (+0100) Subject: teuthology: make sure teuthology logs directory exists X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8a87af314be400aa7b53cd6468f4e602f3250594;p=ceph-cm-ansible.git teuthology: make sure teuthology logs directory exists Signed-off-by: Kyr Shatskyy --- diff --git a/roles/teuthology/defaults/main.yml b/roles/teuthology/defaults/main.yml index a3fe570..d069418 100644 --- a/roles/teuthology/defaults/main.yml +++ b/roles/teuthology/defaults/main.yml @@ -1,11 +1,16 @@ --- +teuthology_scheduler_user: teuthology +teuthology_execution_user: teuthworker + teuthology_users: # for scheduling tests - - teuthology + - "{{ teuthology_scheduler_user }}" # for executing tests - - teuthworker + - "{{ teuthology_execution_user }}" teuthology_repo: https://github.com/ceph/teuthology.git teuthology_yaml_extra: "" +archive_base: "/home/{{ teuthology_execution_user }}/archive" + remote_crontab_url: "https://raw.githubusercontent.com/ceph/ceph/master/qa/crontab/teuthology-cronjobs" diff --git a/roles/teuthology/tasks/setup_users.yml b/roles/teuthology/tasks/setup_users.yml index e0d3c51..2a968a7 100644 --- a/roles/teuthology/tasks/setup_users.yml +++ b/roles/teuthology/tasks/setup_users.yml @@ -79,3 +79,9 @@ become_user: "{{ item }}" with_items: "{{ teuthology_users }}" changed_when: false + +- name: Ensure archive directory exists + shell: "mkdir -p {{ archive_base }}/worker_logs" + become_user: "{{ teuthology_execution_user }}" + tags: + - logs