]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
teuthology: make sure teuthology logs directory exists 442/head
authorKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Wed, 6 Mar 2019 17:11:13 +0000 (18:11 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Wed, 6 Mar 2019 17:13:20 +0000 (18:13 +0100)
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@gmail.com>
roles/teuthology/defaults/main.yml
roles/teuthology/tasks/setup_users.yml

index a3fe5706c8f41fc6daeeeec6e36ffaf403721224..d0694182dc93662057c290d894ad4599bcc3150e 100644 (file)
@@ -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"
index e0d3c51eba50ef12e9eb24411d003f145c5266c6..2a968a7a582d30b6fa454d2985e883c5c98df057 100644 (file)
@@ -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