From a75cc9a9539bc8d6367f5771325914f15593e422 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. Change-Id: Ic32e7a2db83bb5a0fb3c69708be9be96435dd030 Closes-Bug: 1840607 --- deployment/horizon/horizon-container-puppet.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deployment/horizon/horizon-container-puppet.yaml b/deployment/horizon/horizon-container-puppet.yaml index 92178a5479..4c9fabf93d 100644 --- a/deployment/horizon/horizon-container-puppet.yaml +++ b/deployment/horizon/horizon-container-puppet.yaml @@ -184,6 +184,7 @@ outputs: horizon::horizon_ca: {get_param: InternalTLSCAFile} horizon::customization_module: {get_param: HorizonCustomizationModule} horizon::timezone: {get_param: TimeZone} + horizon::file_upload_temp_dir: '/var/tmp' - if: - websso_enabled @@ -272,6 +273,7 @@ outputs: - /var/lib/config-data/puppet-generated/horizon/:/var/lib/kolla/config_files/src:ro - /var/log/containers/horizon:/var/log/horizon:z - /var/log/containers/httpd/horizon:/var/log/httpd:z + - /var/tmp/:/var/tmp/:z - /var/www/:/var/www/:ro - if: