Browse Source

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)
tags/9.4.1
Takashi Kajinami 10 months ago
parent
commit
ffebacc480
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      docker/services/horizon.yaml
  2. +1
    -0
      puppet/services/horizon.yaml

+ 1
- 0
docker/services/horizon.yaml View File

@@ -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:


+ 1
- 0
puppet/services/horizon.yaml View File

@@ -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


Loading…
Cancel
Save