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 a75cc9a953)
(cherry picked from commit 12ad0d83a4)
This commit is contained in:
Takashi Kajinami 2019-08-19 13:36:17 +09:00
parent e89a6b7f99
commit ffebacc480
2 changed files with 2 additions and 0 deletions

View File

@ -132,6 +132,7 @@ outputs:
- /var/lib/config-data/puppet-generated/horizon/:/var/lib/kolla/config_files/src:ro - /var/lib/config-data/puppet-generated/horizon/:/var/lib/kolla/config_files/src:ro
- /var/log/containers/horizon:/var/log/horizon - /var/log/containers/horizon:/var/log/horizon
- /var/log/containers/httpd/horizon:/var/log/httpd - /var/log/containers/httpd/horizon:/var/log/httpd
- /var/tmp/:/var/tmp/
- /var/www/:/var/www/:ro - /var/www/:/var/www/:ro
- -
if: if:

View File

@ -142,6 +142,7 @@ outputs:
horizon::listen_ssl: {get_param: EnableInternalTLS} horizon::listen_ssl: {get_param: EnableInternalTLS}
horizon::horizon_ca: {get_param: InternalTLSCAFile} horizon::horizon_ca: {get_param: InternalTLSCAFile}
horizon::customization_module: {get_param: HorizonCustomizationModule} horizon::customization_module: {get_param: HorizonCustomizationModule}
horizon::file_upload_temp_dir: '/var/tmp'
- -
if: if:
- debug_unset - debug_unset