From 614f032192bb2ea1d93f6eb3fb358d9737212191 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Mon, 17 Feb 2025 15:15:27 -0800 Subject: [PATCH] Use a dedicated zuul launcher temp dir on /opt When we download images, we use a lot of tmp space. Rather than writing them to the rood partition, which is not very large, use the slightly larger /opt disk. Change-Id: I6412a89890562728f4c5939065c0554f7698ff3e --- playbooks/roles/zuul-launcher/files/docker-compose.yaml | 1 + playbooks/roles/zuul-launcher/tasks/main.yaml | 8 ++++++++ playbooks/roles/zuul/templates/zuul.conf.j2 | 1 + 3 files changed, 10 insertions(+) diff --git a/playbooks/roles/zuul-launcher/files/docker-compose.yaml b/playbooks/roles/zuul-launcher/files/docker-compose.yaml index 61c8ad8731..6231958c5f 100644 --- a/playbooks/roles/zuul-launcher/files/docker-compose.yaml +++ b/playbooks/roles/zuul-launcher/files/docker-compose.yaml @@ -14,3 +14,4 @@ services: - /home/zuuld:/home/zuul - /var/lib/zuul:/var/lib/zuul - /var/log/zuul:/var/log/zuul + - /opt/zuul-launcher-tmp:/opt/zuul-launcher-tmp diff --git a/playbooks/roles/zuul-launcher/tasks/main.yaml b/playbooks/roles/zuul-launcher/tasks/main.yaml index bf20699ca2..f99d6fb57e 100644 --- a/playbooks/roles/zuul-launcher/tasks/main.yaml +++ b/playbooks/roles/zuul-launcher/tasks/main.yaml @@ -15,6 +15,14 @@ vars: logrotate_file_name: /var/log/zuul/launcher-debug.log +- name: Ensure launcher temp dir + file: + state: directory + path: /opt/zuul-launcher-tmp + mode: 0755 + owner: "{{ zuul_user }}" + group: "{{ zuul_group }}" + - name: Make docker-compose directory file: state: directory diff --git a/playbooks/roles/zuul/templates/zuul.conf.j2 b/playbooks/roles/zuul/templates/zuul.conf.j2 index d761cdd4b6..d04ac282d1 100644 --- a/playbooks/roles/zuul/templates/zuul.conf.j2 +++ b/playbooks/roles/zuul/templates/zuul.conf.j2 @@ -56,6 +56,7 @@ root=https://zuul.opendev.org [launcher] log_config=/etc/zuul/launcher-logging.conf +temp_dir=/opt/zuul-launcher-tmp [auth local] driver=HS256