From ffebacc480a02a478bf7885c9bced29d74f7d32b Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 19 Aug 2019 13:36:17 +0900 Subject: [PATCH] Use /var/tmp on host to store temporal files for image upload via Horizon Previously we use /tmp inside horizon container to store temporal files for image upload via Horizon, but this makes the image size grow for each upload operation. This patch makes sure that we use host directory to store temporal file, so that it is not written inside container. Conflicts: deployment/horizon/horizon-container-puppet.yaml Change-Id: Ic32e7a2db83bb5a0fb3c69708be9be96435dd030 Closes-Bug: 1840607 (cherry picked from commit a75cc9a9539bc8d6367f5771325914f15593e422) (cherry picked from commit 12ad0d83a4fbb1a6de92750dba1bae8dbd4bf22a) --- docker/services/horizon.yaml | 1 + puppet/services/horizon.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/docker/services/horizon.yaml b/docker/services/horizon.yaml index 0b3faa58dc..fd99805e53 100644 --- a/docker/services/horizon.yaml +++ b/docker/services/horizon.yaml @@ -132,6 +132,7 @@ outputs: - /var/lib/config-data/puppet-generated/horizon/:/var/lib/kolla/config_files/src:ro - /var/log/containers/horizon:/var/log/horizon - /var/log/containers/httpd/horizon:/var/log/httpd + - /var/tmp/:/var/tmp/ - /var/www/:/var/www/:ro - if: diff --git a/puppet/services/horizon.yaml b/puppet/services/horizon.yaml index ebdb99ce4b..f9651de5a3 100644 --- a/puppet/services/horizon.yaml +++ b/puppet/services/horizon.yaml @@ -142,6 +142,7 @@ outputs: horizon::listen_ssl: {get_param: EnableInternalTLS} horizon::horizon_ca: {get_param: InternalTLSCAFile} horizon::customization_module: {get_param: HorizonCustomizationModule} + horizon::file_upload_temp_dir: '/var/tmp' - if: - debug_unset