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 a75cc9a953)
(cherry picked from commit 12ad0d83a4)
tags/9.4.1
Takashi Kajinami 1 month 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:
132 132
                   - /var/lib/config-data/puppet-generated/horizon/:/var/lib/kolla/config_files/src:ro
133 133
                   - /var/log/containers/horizon:/var/log/horizon
134 134
                   - /var/log/containers/httpd/horizon:/var/log/httpd
135
+                  - /var/tmp/:/var/tmp/
135 136
                   - /var/www/:/var/www/:ro
136 137
                   -
137 138
                     if:

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

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

Loading…
Cancel
Save