From a729dcc4a2f5730ff649853c2a96ee2793b8d025 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Wed, 23 Aug 2017 08:49:01 +0800 Subject: [PATCH] Mount host /tmp folder to horizon container When uploading an image through horizon, the image is saved in /tmp folder temporarily. Since the container root is only 10GB, a big image will crash horizon container. This patch mounts the host /tmp folder to horizon container. [0] https://docs.djangoproject.com/en/1.11/topics/http/file-uploads/#where-uploaded-data-is-stored Change-Id: Idf6a137d09d9e45105c3ec86e6337dd1826f7a03 Closes-Bug: #1712453 --- ansible/roles/horizon/defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/horizon/defaults/main.yml b/ansible/roles/horizon/defaults/main.yml index cd3f859244..6381d33304 100644 --- a/ansible/roles/horizon/defaults/main.yml +++ b/ansible/roles/horizon/defaults/main.yml @@ -34,6 +34,7 @@ horizon_services: - "{{ kolla_dev_repos_directory ~ '/murano-dashboard/muranodashboard:/var/lib/kolla/venv/lib/python2.7/site-packages/muranodashboard' if horizon_murano_dev_mode | bool else '' }}" - "/etc/localtime:/etc/localtime:ro" - "kolla_logs:/var/log/kolla/" + - "/tmp:/tmp" ####################